113KB pure-assembly bare-metal OS boots no-Linux and runs a 2.5B LLM on CPU
john_lam · x · 2026-12-01
Developer superalesha demoed an extreme bare-metal project: a 113KB OS written entirely in hand-written x86-64 NASM (115,160-byte kernel, 19,138 lines) that runs a 2.5B LLM directly on CPU with no Linux, no Windows, no C/Rust/gcc, and zero preinstalled apps.
- Boots straight into 64-bit Long Mode; wakes every core over APIC
- Maps a 2.50 GiB Q80 MiniCPM5-2B model directly over NVDIMM
- Streams x86-64 assembly into a built-in Ring-0 micro-assembler and runs apps in a hardware-isolated Ring-3 W^X sandbox
- Prompt "flappy bird" and it writes, assembles at runtime, and launches Flappy Bird live
johnlam comments that unikernels on a bare-metal hypervisor feel like the future, and this project makes that idea real.
More from Fun
- 2 of 3 CBC Literary Prize winners flagged as AI-written, each beating ~3,000 entries — alejandroll10 · 2026-12-01
- 'The Last Protector': A Dark Pixel-Art Fantasy Episode Made with AI — ZaydAlFaris · 2026-12-01
- 'Never build uncontrollable superintelligence' pledge mocked with O.J. Simpson meme — NathanpmYoung · 2026-12-01
- #keepsonnet45: fans petition Anthropic to save the 'cutest' Sonnet 4.5 — repligate · 2026-12-01
- AI-generated Shire theme park drive-through video wows Reddit — Mother-Pear-2392 · 2026-12-01
- Nate Silver slams EA's 'presumptuousness' as community debates how to fix the movement — NathanpmYoung · 2026-12-01