frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Let's compile Quake like it's 1997

https://fabiensanglard.net/compile_like_1997/index.html
62•birdculture•2h ago

Comments

webdevver•1h ago
love software archaeology like this.

there was another article where someone bootstrapped the very first version of gcc that had the i386 backend added to it, and it turns out there was a bug in the codegen. I'll try to find it...

EDIT: Found in, infact there was a HN discussion about an article referencing the original article:

https://miyuki.github.io/2017/10/04/gcc-archaeology-1.html

https://news.ycombinator.com/item?id=39901290

clarity_hacker•1h ago
Build environment archaeology like this matters more than people realize. Modern CI assumes containers solve reproducibility, but compiler version differences, libc variants, and even CPU instruction sets can silently change binary output. The detail about needing to reinstall Windows NT just to add a second CPU shows how tightly coupled OS and hardware were — there was no abstraction layer pretending otherwise. Exact toolchain reproduction isn't nostalgia; it's the only way to validate that a specific binary came from specific source.
webdevver•1h ago
there is something to be said about old windows installation CDs being essentially modern-day equivalents of immutable docker layers - i don't think one could say that about modern windows, but then i'm not super clued in into ms stuff.
kelnos•1h ago
> The detail about needing to reinstall Windows NT just to add a second CPU shows how tightly coupled OS and hardware were — there was no abstraction layer pretending otherwise.

In this case there was: the reason you need to reinstall to go from uniprocessor to SMP was because NT shipped with two HALs (Hardware Abstarction Layer): one supporting just a single processor, and one supporting more than one.

The SMP one had all the code for things like CPU synchronization and interrupt routing, while the UP one did not.

If they'd packed everything into one HAL, single-processor systems would have to take the performance hit of all the synchronization code even though it wasn't necessary. Memory usage would be higher too. I expect that you probably could run the SMP HAL on a UP system (unless Microsoft put extra code in to make it not let you), but you wouldn't really want to do that, as it would be slower and require more RAM.

So it wasn't that those abstraction layers didn't exist back then. It was that abstraction layers can be expensive. This is still true today, of course, but we have the cycles and memory to spare, more or less, which was very much not the case then.

vintermann•1h ago
Linux also used to have separate SMP kernels back when multi processor systems were rare.
Sesse__•1h ago
> If they'd packed everything into one HAL, single-processor systems would have to take the performance hit of all the synchronization code even though it wasn't necessary. Memory usage would be higher too.

Linux also used to be like this, but these days has unified MP/UP kernels; on single-CPU systems (or if you give nosmp), the extra code is patched away at boot time. It wouldn't have been an unheard of technique at the time.

knorker•1h ago
> The first batches of Quake executables, quake.exe and vquake.exe were programmed on HP 712-60 running NeXT and cross-compiled with DJGPP running on a DEC Alpha server 2100A.

Is that accurate? I thought DJGPP only ran on and for PC compatible x86. ID had Alpha for things like running qbps and light and vis (these took for--ever to run, so the alpha SMP was really useful), but for building the actual DOS binaries, surely this was DJGPP on x86 PC?

Was DJGPP able to run on Alpha for cross compilation? I'm skeptical, but I could be wrong.

Edit: Actually it looks like you could. But did they? https://www.delorie.com/djgpp/v2faq/faq22_9.html

qingcharles•28m ago
I thought the same thing. There wouldn't be a huge advantage to cross-compiling in this instance since the target platform can happily run the compiler?
bluedino•1h ago
I'd like to see someone build the Linux source code leak that came out not to far after Quake was released.
Maro•1h ago
Quake book incoming from Fabien?
torh•48m ago
I hope so. The other books have been great fun to read, with the detour of CP-SYSTEM as a nice surprise.
ErroneousBosh•1h ago
Funny, I've just been (re-)playing Quake 2 recently.
boznz•43m ago
On one particular project from 1995 where the hardware was very cost optimised, the C program compiled to 1800 bytes which meant we could save nearly a dollar by buying micro-controllers with 2KB flash rather than 4KB flash. We manufactured 20,000 units with this cheaper chip. 2 years down the line we needed a simple code change to increase the UART baud rate to the host, a change that should have resulted in the same sized binary, but instead increased it to 2300 bytes due to a newer C compiler. We ended up tweaking the assembly file and running an assembler, then praying there would be no more changes!

I have always over specified the micro-controllers a little from that point, and kept a copy of the original dev environment, luckily all my projects are now EOL as I am retired.

travoc•23m ago
"luckily all my projects are now EOL as I am retired."

I doubt that everything you ever worked on is end-of-life. Some of it is still out there...

7thpower•9m ago
Better have kept those environments.
direwolf20•18m ago
Visual C++ 6 was the first C(++) compiler I used. I'm fairly certain it had auto completion (Intellisense).

Casey Muratori would point out the debugger ran faster on hardware from the era than modern versions run on today's hardware, though I don't have a link to the side–by–side video comparison.

Vouch

https://github.com/mitchellh/vouch
181•chwtutha•16h ago•92 comments

Roundcube Webmail: SVG feImage bypasses image blocking to track email opens

https://nullcathedral.com/posts/2026-02-08-roundcube-svg-feimage-remote-image-bypass/
29•nullcathedral•1h ago•2 comments

I put a real-time 3D shader on the Game Boy Color

https://blog.otterstack.com/posts/202512-gbshader/
116•adunk•2h ago•9 comments

The Little Bool of Doom

https://blog.svgames.pl/article/the-little-bool-of-doom
32•pocksuppet•1h ago•4 comments

Show HN: I created a Mars colony RPG based on Kim Stanley Robinson's Mars books

https://underhillgame.com/
35•ariaalam•2h ago•17 comments

GitHub Agentic Workflows

https://github.github.io/gh-aw/
114•mooreds•5h ago•60 comments

RFC 3092 – Etymology of "Foo" (2001)

https://datatracker.ietf.org/doc/html/rfc3092
91•ipnon•4h ago•16 comments

Running Your Own As: BGP on FreeBSD with FRR, GRE Tunnels, and Policy Routing

https://blog.hofstede.it/running-your-own-as-bgp-on-freebsd-with-frr-gre-tunnels-and-policy-routing/
86•todsacerdoti•5h ago•35 comments

Omega-3 is inversely related to risk of early-onset dementia

https://pubmed.ncbi.nlm.nih.gov/41506004/
126•brandonb•2h ago•66 comments

Exploiting signed bootloaders to circumvent UEFI Secure Boot

https://habr.com/en/articles/446238/
47•todsacerdoti•4h ago•13 comments

Formally Verifying PBS Kids with Lean4

https://www.shadaj.me/writing/cyberchase-lean
28•shadaj•6d ago•0 comments

Bun v1.3.9

https://bun.com/blog/bun-v1.3.9
50•tosh•1h ago•17 comments

Billing can be bypassed using a combo of subagents with an agent definition

https://github.com/microsoft/vscode/issues/292452
120•napolux•2h ago•63 comments

Dave Farber has died

https://lists.nanog.org/archives/list/nanog@lists.nanog.org/thread/TSNPJVFH4DKLINIKSMRIIVNHDG5XKJCM/
153•vitplister•7h ago•22 comments

The First Sodium-Ion Battery EV Is a Winter Range Monster

https://insideevs.com/news/786509/catl-changan-worlds-first-sodium-ion-battery-ev/
64•andrewjneumann•2h ago•33 comments

Let's compile Quake like it's 1997

https://fabiensanglard.net/compile_like_1997/index.html
62•birdculture•2h ago•16 comments

Curating a Show on My Ineffable Mother, Ursula K. Le Guin

https://hyperallergic.com/curating-a-show-on-my-ineffable-mother-ursula-k-le-guin/
111•bryanrasmussen•9h ago•39 comments

Why E cores make Apple silicon fast

https://eclecticlight.co/2026/02/08/last-week-on-my-mac-why-e-cores-make-apple-silicon-fast/
181•ingve•7h ago•187 comments

Show HN: It took 4 years to sell my startup. I wrote a book about it

https://derekyan.com/ma-book/
133•zhyan7109•4d ago•27 comments

Kolakoski Sequence

https://en.wikipedia.org/wiki/Kolakoski_sequence
44•surprisetalk•6d ago•10 comments

Reverse Engineering Raiders of the Lost Ark for the Atari 2600

https://github.com/joshuanwalker/Raiders2600
74•pacod•10h ago•2 comments

OpenClaw is changing my life

https://reorx.com/blog/openclaw-is-changing-my-life/
132•novoreorx•13h ago•226 comments

Matchlock – Secures AI agent workloads with a Linux-based sandbox

https://github.com/jingkaihe/matchlock
122•jingkai_he•11h ago•47 comments

Slop Terrifies Me

https://ezhik.jp/ai-slop-terrifies-me/
256•Ezhik•8h ago•236 comments

Attention Media ≠ Social Media

https://susam.net/attention-media-is-not-social-media.html
3•susam•2h ago•0 comments

Rabbit Ear "Origami": programmable origami in the browser

https://rabbitear.org/book/origami.html
107•molszanski•4d ago•4 comments

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
301•yi_wang•17h ago•141 comments

Beyond agentic coding

https://haskellforall.com/2026/02/beyond-agentic-coding
220•RebelPotato•17h ago•81 comments

DoNotNotify is now Open Source

https://donotnotify.com/opensource.html
343•awaaz•11h ago•47 comments

We mourn our craft

https://nolanlawson.com/2026/02/07/we-mourn-our-craft/
607•ColinWright•1d ago•714 comments