# A minimal kernel in Swift runs on QEMU, no OS required

Original title: A minimal kernel in Swift, running in QEMU

> Hacker News story 49977351 · language: en · submitted 2026-10-06
> Web version: https://zeli.app/story/49977351
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 104 · by [surprisetalk](<https://news.ycombinator.com/user?id=surprisetalk>) · 💬 28
[original](<https://carette.xyz/posts/minimal_swift_kernel_on_qemu/>) · [HN discussion](<https://news.ycombinator.com/item?id=49977351>)

## Summary

A developer built a bare-metal AArch64 kernel in Embedded Swift, running on QEMU's virt machine. The project uses a custom assembly entry point, a hand-written linker script, and minimal implementations of putchar and memmove to bridge Swift's runtime to the PL011 UART. After printing "Hello, Embedded Swift", the kernel was extended to echo typed characters via polling, turning a one-way greeting into a basic interactive prompt.

## Key quote

> This is the first point where the project stops being ordinary application programming. Here, I am no longer calling an operating-system API to print a string, but I am implementing the lower-level functions that the language runtime needs in order to exist.

## HN discussion (28 comments)

### [Narishma](<https://news.ycombinator.com/item?id=50001298>)

> More of a hello world than a kernel.

### [qubex](<https://news.ycombinator.com/item?id=49977514>)

> “machine emulators for hackers”
>
> “Hack the Planet!”? “Mess with the best die like the rest”? WTF?

---

## Cite

- Page: https://zeli.app/story/49977351
- Date: 2026-10-06
- Source: carette.xyz (https://carette.xyz/posts/minimal_swift_kernel_on_qemu/)
- Hacker News: https://news.ycombinator.com/item?id=49977351

## Other languages

- zh: https://zeli.app/zh/story/49977351 · markdown: https://zeli.app/zh/story/49977351.md
- ja: https://zeli.app/ja/story/49977351 · markdown: https://zeli.app/ja/story/49977351.md
- ko: https://zeli.app/ko/story/49977351 · markdown: https://zeli.app/ko/story/49977351.md
- de: https://zeli.app/de/story/49977351 · markdown: https://zeli.app/de/story/49977351.md
- es: https://zeli.app/es/story/49977351 · markdown: https://zeli.app/es/story/49977351.md
- ru: https://zeli.app/ru/story/49977351 · markdown: https://zeli.app/ru/story/49977351.md
