11. A minimal kernel in Swift, running in QEMU (carette.xyz)

Update (28th of September 2026)
Max Desiatov told me that the @c swift attribute should work, instead of declaring the functions using @_cdecl. The @c attribute marks a global function as a C function implemented in Swift, which formalizes the @_cdecl attribute. A link to the proposal is available here. I did update the blog post and the code accordingly to that comment. Thanks Max!
I started a small experiment: writing a very basic kernel in Swift, and running on QEMU.

17. 'The eels were climbing out of the water to die' (www.theguardian.com)

Furnace Brook in East Sussex was home to carp, tench, bream, roach and trout – and 15 trailer-loads had to be buried. The mystery led to a neighbouring farm, and a story of waste, pollution and dirty rivers that reveals a lot about Britain today

Article Details

Browse by Date

Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open