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

87% of the Anthropic power will come from gas and 11% from coal in 2028
happosai · Hacker News · 19h ago
Lean verification of the Riemann Hypothesis
g-b-r · Hacker News · 1d ago
Agent swarm trying to solve P vs. NP
bananaflag · Hacker News · 6h ago
Detonating a pile of lead azide
beginning_end · Hacker News · 1d ago
Pill to treat pancreatic cancer hailed as 'biggest breakthrough in decades'
rafaelc · Hacker News · 2d ago