frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: DOOM in the kernel, or fibers in eBPF

https://ayles.github.io/doom-in-kernel/
10•ayles•1d ago
Some time ago my coworker who was working on first version of Perforator (https://github.com/yandex/perforator) kept talking about eBPF, so I got curious about its ISA and restrictions. That was around the time I read about DOOM on pregnancy test, so I thought: "what if someone run DOOM inside of Linux kernel in eBPF? Surely, with some restrictions, this should still be possible?"

I started to play around with it somewhere in 2024 - first stripping DOOM to bare minimum that is needed for showcase, simplifying code and trying to pass first restrictions that I encountered - function limit, recursion, memory access and checks. I tried to do this by hand, but it was, well, tedious labor. So I changed direction and instead started to do some of the things with LLVM-passes - rewriting memory access, simplifying and rewriting loops etc. But there were just so many corners. And given absence of time and all, I forgot about this project.

But couple months ago I thought: "LLMs are quite good nowadays, so why not try again this time with more hands". I tried different approaches on how memory access could be "virtualized", how loops can be made bounded, and in general - how to run unbounded logic on such a machine.

When I got DOOM running, I got carried away. Approach was so "generic", so it would be a crime not to try to run more things. And now we have it - lua running on xdp hot path, llama2 working with softfloats, and even cpython, that did not fit initially into 1M verifier budget, is running there now thanks to freplace.

There is ton of work to do in order to make programs run faster, to make integration easier, but working examples are already there.

Comments

tptacek•28m ago
There's so much good content in here, it's a shame you sandblasted your writeup with AI. "To the verifier, it is a number with a biography" is where I veered off the road and into a culvert.
ayles•20m ago
Yes, there is a language barrier. And I was in a hurry because of ongoing life events, so it was kinda "today or in a month" for me. Couldn't keep it much longer for myself and wanted to share.
rvz•12m ago
Damn. That is a real shame. This whole writeup has some slop in it then.

Rust is tier-1 language at Microsoft

https://rustfoundation.org/media/guest-post-rust-is-tier-1-language-at-microsoft/
358•mmastrac•4h ago•173 comments

Cognition launches new SWE-2 model, Rivaling Fable 5.1 and GPT-Astra

https://cognition.com/blog/swe-2
136•seelos•2h ago•69 comments

More questions about whether researchers can trust OpenAI with unpublished math

https://mathstodon.xyz/@andreasthom/117240535270608201
221•pred_•11h ago•367 comments

I have a theory that software drives people insane

https://graybeard.ing/software-drives-people-insane/
96•rglover•1h ago•48 comments

NASA Color Trick Was Meant for Mars. Now It's Unveiling Rock Art on Earth

https://gizmodo.com/this-nasa-color-trick-was-meant-for-mars-now-its-unveiling-rock-art-on-earth-...
82•gumby•2h ago•13 comments

Shopify moves back to Native from React Native

https://shopify.engineering/back-to-native
486•fnthawar2•4h ago•348 comments

Forgejo <=16.0.3 Critical RCE

https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/16.0.4.md
41•weierstass•2h ago•17 comments

Neki

https://planetscale.com/blog/introducing-neki
87•simon_weber•2h ago•21 comments

Douglas Hofstadter: Analogy as the Core of Cognition [video]

https://www.youtube.com/watch?v=n8m7lFQ3njk
41•tosh•4d ago•14 comments

Silicon Valley Is Transforming the Military-Industrial Complex

https://costsofwar.watson.brown.edu/paper/how-big-tech-and-silicon-valley-are-transforming-milita...
44•paimapi•2h ago•55 comments

>10x More Efficient Pretraining

https://magic.dev/blog/pretraining#
74•ronfriedhaber•2d ago•43 comments

Hitachi launches CO2 heat pump water heaters with solar-friendly tariff controls

https://www.pv-magazine.com/2026/09/07/hitachi-launches-co2-heat-pump-water-heaters-with-solar-fr...
223•thelastgallon•1d ago•189 comments

DeepSeek v4.1 Flash

https://twitter.com/deepseek_ai/status/2097930608790167907
803•Liwink•11h ago•450 comments

Cognition's SWE-2 achieves 92.8 on Terminal-Bench 2.1

https://tokenstead.ai/models/swe-2
12•cdnsteve•1h ago•0 comments

Neki is sharded Postgres by PlanetScale

https://neki.dev/
68•handfuloflight•2h ago•18 comments

Casablanca: How an unproduced play marched into movie history

https://www.thecollector.com/casablanca-unproduced-play-movie-history/
30•mdp2021•2h ago•8 comments

Music Theory for the 21st-Century Classroom

https://musictheory.pugetsound.edu/mt21c/MusicTheory.html
7•aanet•56m ago•2 comments

What algorithm did Windows XP use to choose your initial user picture?

https://devblogs.microsoft.com/oldnewthing/20260909-00/?p=112683
279•soheilpro•9h ago•138 comments

List of references on Sony websites to players "owning" their digital games

https://consumerrights.wiki/w/Sony_PlayStation_digital_game_ownership_lawsuit
258•haunter•5h ago•87 comments

Python sets and dictionaries can have quadratic-time performance

https://lemire.me/blog/2026/09/03/python-sets-and-dictionaries-can-have-quadratic-time-performance/
46•ibobev•2d ago•15 comments

JEP 544: Ahead-of-Time Code Compilation

https://openjdk.org/jeps/544
8•Skinney•40m ago•4 comments

Stockfish 19

https://stockfishchess.org/blog/2026/stockfish-19/
216•atiedebee•3d ago•126 comments

iPhone Duo

https://www.apple.com/iphone-duo/
1351•thecosmicfrog•23h ago•2358 comments

To write non-fiction, draw the trunk, then the rest of the tree

https://devz.cl/posts/how-to-write/
60•DanielVZ•2d ago•20 comments

Show HN: MultiMatte, a Promptable Image Background Removal Model

https://usefeyn.com/blog/multimatte/
10•snyy•2h ago•2 comments

Show HN: DOOM in the kernel, or fibers in eBPF

https://ayles.github.io/doom-in-kernel/
10•ayles•1d ago•3 comments

Anthropic Says It Blocked Possible Efforts to Build Biological Weapons

https://www.nytimes.com/2026/09/10/us/politics/anthropic-ai-biological-weapons.html
27•jbegley•1h ago•14 comments

The Four-Color Theorem Gets a Rare New Proof

https://www.quantamagazine.org/the-four-color-theorem-gets-a-rare-new-proof-20260910/
12•pavel_lishin•3h ago•1 comments

Show HN: Syq – copy files between machines fast (better than rsync)

https://greaber.github.io/syq/
17•greaber•3h ago•19 comments

Serverless DTLS

https://proxylity.com/docs/listeners/dtls.html
8•mlhpdx•2h ago•5 comments