frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Quake ported to safe Rust, playable in browser

https://quake-srp.pages.dev/
75•ilreb•1h ago

Comments

NSUserDefaults•47m ago
Safe rocket jumping? Unlikely.
shoobiedoo•10m ago
It's much safer now that it's written in rust

.... /s, if it needed to be said

Panzerschrek•42m ago
How? Was it a LLM-assisted rewrite?
schleck8•42m ago
Naturally
NooneAtAll3•17m ago
who's on first?
tw1984•39m ago
probably done completely by LLM
aizk•26m ago
Mindboggling that people used to do this by hand.
rvz•15m ago
Of course it was.
CBLT•39m ago
Damn, no results when I grep for 0x5f3759df in the source[0].

[0] https://github.com/terrapapagalli1516/quake-srp

airesQ•29m ago
That's for quake 3, the fast inverse square root was not present in quake 1.
onion2k•39m ago
Code lives here - https://github.com/terrapapagalli1516/quake-srp (SRP stands for 'slop rust port'.)

I think 'standing on the shoulders of giants' is the phrase for something like this. It's the confluence of browser rendering, WASM, Rust, and LLMs. For me it's less a demo of what AI can do, and more a showcase of the human effort from the past few decades on the parts that needed to fall into place for an LLM to come in at the (relatively speaking) last second and claim a win. Sure, an LLM did the port from C to Rust, but think of all the things needed for it to all work. That's pretty damn amazing, and it wasn't done with AI.

pixelpoet•29m ago
The port to Rust was superfluous though, could've gone directly from C to wasm. But then you miss out being able to say Rust Rust Rust...
flowerthoughts•39m ago
That's darn nice. I didn't even have to push the turbo button to be able to run it on my phone.

I wholeheartedly bless this slop.

Found the repo in the Reddit post:

https://github.com/terrapapagalli1516/quake-srp

https://www.reddit.com/r/quake/comments/1x1ch14/quake_srp_sl...

koala_man•37m ago
I would never have imagined a phone web browser capable of this in 1996 between playing Quake and testing out the hot new JavaScript powered mouse rollover image effects in Netscape Navigator 2.0
aroman•32m ago
Oh my god, and the author even supplied a "proof"[0] visual diff harness... that it replicates the original game pixel for pixel.

Just the cherry on top of great demonstration of our collective new superpower: asking computers to do something we can describe how to do, but would (probably) never take the time to do ourselves.

[0] https://github.com/terrapapagalli1516/quake-srp/tree/main/or...

ChickeNES•29m ago
tbh I thought this was a commonly used technique even prior to LLMs? I know I've been using it extensively myself, but I was inspired by Dolphin's extensive visual CI system.
aroman•27m ago
If it is common in the world of video game porting, that just shows my ignorance. I'm familiar with visual diffs in CI for e.g. web development (comparing a static component), but to do that to compare frames over time in a video game/3D environment is new to me.

There are so many more degrees of freedom, which I can see Claude handled... mipmaps, subtle differences in lighting/positioning/compositing etc.

koito17•23m ago
Even then, visual diffs were pretty flakey for web development, because one's OS and browser choice would slightly alter the exact pixels blitted to the screen. At least this was the case for the tests that would simply match pixels instead of computing a sort of visual hash.

It's also partly why some people preferred snapshot tests that compared the DOM tree instead, though that was brittle in other ways (e.g. tests would break if an application's frontend used a major UI library and an update to the library permuted the order of classes in some part of the HTML).

cush•32m ago
It's so smooth
pixelpoet•29m ago
It was smooth on a 90 MHz Pentium1 from 1996
dr_hooo•10m ago
Mr moneybags over here... True, but for mere mortals that was a pretty high bar. Speaking from experience from fighting a 486DX2-80
sergiotapia•29m ago
We're in a renaissance, every day more and more games are just playable in browser: https://x.com/RadiantOpti/status/2108068632991256995

You can play Half Life right now, with one click.

franze•28m ago
ok this beats my doom minesweaper mashup [1] by far

[1] https://dreadsweeper.franzai.com/

fragmede•14m ago
Hah! That's great!
aizk•22m ago
This may sound funny but I feel games would lose a lot of fun if they were all written in rust and had classes of bugs just not available to them. For better or for worse quirks and bugs in games have shaped how people approach games, and also have given games charm for decades.
kibwen•8m ago
Fortunately for gamers, Rust doesn't do anything to stop physics engines from going haywire or preventing players from clipping out of bounds. A Mario 64 written in Rust still has parallel universes.
DylanMerigaud•15m ago
Clean launch, good luck!
dwroberts•9m ago
‘Safe rust’ just being used to mean ‘no unsafe’ is kind of a shallow understanding of the language. You can write code without unsafe that is not really ideal at all eg abusing vector/slice indexing to create a kind of interior mutability that the borrow checker is blind to. Which as a C port I’m going to guess it probably ends up doing
iwassayinbourns•7m ago
This is cool. Do Quake 3 next.
tnolet•10m ago
For web UI tests this is mainly solved, at least when using Playwright. It allows setting thresholds, percentages and some other config items to allow some small differences in pixels. https://playwright.dev/docs/test-snapshots#options
King-Aaron•19m ago
Yeah cool.

How long before the same thing is done to like, banking back ends? Wallstreet proprietary software? Amazons logistics and distribution systems?

It seems like we might be weeks/days/hours before a situation where someone back engineers and spoofs a system so pivotal to modern human society that the plug needs to be pulled.

brobdingnagians•9m ago
If someone recreates Amazon's logistics and distribution systems they could try to compete with Amazon? But they'd also need the connections, distributors, transportation, etc. same with banking software, you need capital to be a bank not just software, and if they have the capital then the technology is working we intended making it easier to make new things and innovate, or at least just compete?
dyauspitr•7m ago
Or they can just take your money and not send out anything.
King-Aaron•6m ago
No, I am not talking about "taking over" companies and trying to emulate them and do business yourself. You just need to be able to break trust in the api calls and no one knows if a purchase order or transaction is legitimate.

Obviously you need to have access to the keys, BUT I don't see this as a dealbreaker anymore because you just get your agents to go and find them.

hypfer•8m ago
I mean some people (me included) have been begging society to pull that plug since over 10 years now.

The plug being "the cloud" and "hooking everything up to the same internet".

These confusion attacks can only confuse people, because critical systems can exist in the same space where entertainment systems and all other categories of systems live. This was wrong even before LLMs.

brobdingnagians•5m ago
The visual diff harness was probably how they got rid of a lot of visual bugs, just tell the LLM to keep going until the pixels match exactly as the verification criteria

Show HN: Quake ported to safe Rust, playable in browser

https://quake-srp.pages.dev/
79•ilreb•1h ago•45 comments

Reducing undefined behavior in the C language

https://lwn.net/Articles/1095811/
87•signa11•4h ago•50 comments

Why isn't the industry freaking out about DeepSeek 4.1 Flash?

https://www.dgt.is/blog/2026-10-07-deepseek-freek-out/
572•jonotime•1d ago•459 comments

Whistle: Speech to Text in 16.9 MB

https://cactuscompute.com/blog/whistle
692•gmays•13h ago•143 comments

Keyboard differences between Windows and Macs

https://unsung.aresluna.org/deeper-dive-keyboard-differences-between-windows-and-macs/
62•sohkamyung•3h ago•52 comments

Man discovers his parents' coffee machine used 1TB of data in 10 days

https://www.dexerto.com/entertainment/man-discovers-his-parents-coffee-machine-used-1tb-of-data-i...
588•ck2•1d ago•346 comments

Theranos.world

https://www.theranos.world/
392•kbyatnal•12h ago•136 comments

I hired an illustrator to draw my house. Now it's my Home Assistant dashboard

https://antonfrolov.substack.com/p/i-hired-an-illustrator-to-draw-my
530•soheilpro•2d ago•93 comments

Yes, and

https://htmx.org/essays/yes-and/
332•Michelangelo11•20h ago•89 comments

OpenAI, the Partition Principle, and Mathematics

https://karagila.org/2026/openai-pp/
88•md224•6h ago•116 comments

The value of not getting to the point (2015)

https://ken.arneson.name/2015/11/the-value-of-not-getting-to-the-point/
144•NaOH•11h ago•48 comments

AI-ready biological data: $1.8B global commitment

https://biohub.org/news/virtual-biology-initiative-expansion/
105•ray__•9h ago•14 comments

ETH-68: Ethernet Audio Interface for Linux

https://naturalsystems.io/eth68
132•chabad360•1d ago•80 comments

Ask HN: What do you run on a $5 VPS that's worth keeping online 24/7?

191•mariocesar•2d ago•283 comments

Beauty in DVD Menus

https://vale.rocks/posts/dvd-menus
289•speckx•17h ago•156 comments

What should we tell our students?

https://terrytao.wordpress.com/2026/10/08/what-should-we-tell-our-students/
73•sajid•3h ago•76 comments

Show HN: Making a flexible "neon" t-shirt with LED filaments

http://scottbezek.blogspot.com/2026/10/making-flexible-neon-t-shirt-with-leds.html
149•scottbez1•13h ago•30 comments

A Terminal Protocol for Program Status (OSC 7501)

https://mitchellh.com/writing/program-status-osc7501
135•mfiguiere•2d ago•44 comments

DuckDB Ducklake

https://github.com/duckdb/ducklake
160•saikatsg•1d ago•20 comments

Bevy 0.20

https://bevy.org/news/bevy-0-20/
132•Philpax•7h ago•22 comments

Step 5 Preview, a 1M-context MoE from StepFun, shows up on OpenRouter

https://openrouter.ai/stepfun/step-5-preview
121•AnneWodell•14h ago•28 comments

A 5.3M-year-old deep-sea whale necropolis in the Diamantina Zone

https://www.nature.com/articles/s41586-026-10546-z
121•bryanrasmussen•1d ago•8 comments

ADHD as a circadian rhythm disorder: evidence and implications for chronotherapy (2025)

https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1697900/full
262•bookofjoe•9h ago•153 comments

Scaling and benchmarking a critical message bus using a new indexing strategy

https://blog.janestreet.com/scaling-and-benchmarking-a-critical-message-bus/
37•eatonphil•12h ago•3 comments

Show HN: Jevman – AI decision models play Pac-Man

https://opper.ai/jevman-benchmark/
55•felix089•13h ago•10 comments

Orkut.com

https://orkut.com/
176•andreynering•16h ago•131 comments

Archaeologists Are Reconstructing the 'Invisible' Technologies of the Stone Age

https://www.smithsonianmag.com/science-nature/archaeologists-are-reconstructing-the-invisible-tec...
121•Hooke•1d ago•54 comments

OpenAI withdraws three mathematical results

https://twitter.com/danintheory/status/2108065033070789090
281•sashank_1509•23h ago•561 comments

US man given prison sentence for bot-farming music streams

https://thequietus.com/news/us-man-given-prison-sentence-for-bot-farming-music-streams/
162•cdrnsf•1d ago•254 comments

Tell HN: I've been paying for a rural Tanzanian's education for 10 years

687•lukehandcool•15h ago•211 comments