News for hackers. Stuff that matters.
Re:Ask HN: What piece of code/codebase blew your mind when y... by myself248 on Monday October 31, 2022 @08:53PM (#33415589)
I'll see your Handmade Hero and raise you "But without a compiler".

Specifically, Roller Coaster Tycoon, hand-written in x86 assembler by Chris Sawyer.

Re:Ask HN: What piece of code/codebase blew your mind when y... by jesse__ on Monday October 31, 2022 @09:01PM (#33415667)
Damn is the source code for that available somewhere? I loved that game.

Edit: guess I could just download it and disassemble ;)

Re:Ask HN: What piece of code/codebase blew your mind when y... by unsafecast on Tuesday November 01, 2022 @05:41AM (#33418922)
Not really. It's actually more difficult than disassembling a C codebase. Chris used a macro assembler and wrote _a lot_ of macros. You'd only see what the assembler expanded, but you'd have no idea how the code _actually_ looked like.
Re:Ask HN: What piece of code/codebase blew your mind when y... by jesse__ on Tuesday November 01, 2022 @10:37AM (#33421805)
Right, thats what I assumed. TIL!
Re:Ask HN: What piece of code/codebase blew your mind when y... by musicale on Tuesday November 01, 2022 @12:54AM (#33417102)
Assembler is low-level C. Also probably easy to learn compared to Rust. ;-)

What impresses me though are old Atari games that were implemented in hardware without a microprocessor.