A minimal kernel in Swift, running in QEMU

·Hacker News··

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.

Read full article →

Related Articles

Mistral Large 4
Philpax · Hacker News · 1d ago
The Mathocalypse
6bitquant · Hacker News · 6h ago
Shipping JPEG XL in Chrome
AshleysBrain · Hacker News · 14h ago
Navier–Stokes Lost in Translation
nill0 · Hacker News · 10h ago
JetBrains reported a net financial loss first time in its tracked history
thw_9a83c · Hacker News · 1d ago