Training an LLM in Swift, Part 1: Taking matrix mult from Gflop/s to Tflop/s
10 implementations of handwritten matrix multiplication: from plain C and Swift through to Metal
Cocoa with Love is Matt Gallagher's long-form blog about Swift, Cocoa, software design and programming.
Visit cocoawithlove.com → RSS feedOn Hacker News May 2011 – May 2026
Software Engineering 4Programming Languages 2History & Retro Computing 1AI & Machine Learning 1
10 implementations of handwritten matrix multiplication: from plain C and Swift through to Metal
A light hearted look back at my time programming in the 1990s as I try to get an old Minesweeper implementation of mine from 1999, written in C++ using PowerPlant for Mac OS 8, compiling in Xcode 8 and running on macOS Sierra.
One of the most annoying problems in Swift is when the compiler gives an 'Expression was too complex to be solved in a reasonable time' error. I look at why this error occurs, how to avoid it and talk about how this should be solved in a future compiler update.
Objective-C remains an impediment for many programmers coming to the Mac or iPhone platforms — few programmers have ever experienced it before learning Cocoa, forcing two learning curves at once for new Cocoa developers. How did Apple end up with such a weird language? And for a company known to replace CPU…