Re:Ask HN: What piece of code/codebase blew your mind when y...
by cloogshicer on Monday October 31, 2022 @06:46PM
(#33414383)
Hey, could you recommend an episode of Handmade Hero to get started with? Should you just start at the very beginning or somewhere later in the process?
Re:Ask HN: What piece of code/codebase blew your mind when y...
by jesse__ on Monday October 31, 2022 @07:26PM
(#33414824)
Its a pretty big comittment at this point, but if youve got the time I'd recommend starting at the beginning. There's also an annotated episode guide if you wanted to learn about a specific topic in a more targeted way
Re:Ask HN: What piece of code/codebase blew your mind when y...
by gleenn on Monday October 31, 2022 @06:46PM
(#33414387)
Reminds me of the author of the K programming language, Arthur Whitney, wrote is own language, then database, and now he's working on his own OS.
Re:Ask HN: What piece of code/codebase blew your mind when y...
by hoosieree on Monday October 31, 2022 @08:24PM
(#33415333)
Speaking of K, a way to generate the first N+1 Fibonacci numbers is what made me take notice of the language:
N(|+\)\1 1
I'm not sure where I first saw this snippet (maybe in the Kona documentation) but it stuck with me enough that I was able to recreate it from memory.
Re:Ask HN: What piece of code/codebase blew your mind when y...
by 0xbadc0de5 on Monday October 31, 2022 @07:07PM
(#33414618)
Big fan of both Casey's and Jon's streams.
Re:Ask HN: What piece of code/codebase blew your mind when y...
by eps on Monday October 31, 2022 @07:18PM
(#33414733)
Did Blow really finish the compiler? Got a link?
Last time I checked (a couple of months ago) there wasn't even a formal language spec yet.
Re:Ask HN: What piece of code/codebase blew your mind when y...
by jesse__ on Monday October 31, 2022 @07:23PM
(#33414787)
AFAIK it is done enough to be in closed beta
Re:Ask HN: What piece of code/codebase blew your mind when y...
by badpun on Wednesday November 02, 2022 @04:49AM
(#33432886)
It's been in closed beta for a couple years now IIRC. His approach is very different from what's prevalent in the industry today - he prefers to only release a product that's reasonably well done, instead of frustrating his audience with a buggy moving target. That's why the language is in its seventh/eight year of closed development at this point.
Re:Ask HN: What piece of code/codebase blew your mind when y...
by adrift on Monday October 31, 2022 @07:29PM
(#33414857)
Definitely this. Lots of good practical advice in his videos too.
Re:Ask HN: What piece of code/codebase blew your mind when y...
by thoughtFrame on Monday October 31, 2022 @07:30PM
(#33414863)
I've been thinking a lot lately about those two examples related to experience in programming, domain knowledge and producing good work. Jon had written 12 compilers by the time he got to Jai, and many more games before his Sokoban, and he started making games as a contemporary to Abrash, in an era where you had to really learn what was going on to produce something good. That knowledge from constrained environments adapted really well to the increasing power of computers (both in terms of processing power and ergonomics), whereas coming at it from a modern programmer's POV you can get away with very little in terms of know-how (which is both good and bad)
I'm working on trying to reach their level (it is reachable) but I sometimes feel like I started with a handicap of comfort from modern OSs and tools
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.
Before warching Casey program, it had not occurred to me you could sit down with a compiler and write an entire video game from scratch.
Then, I found out Jonathan Blow sat down and wrote his own compiler, followed by an engine, and now has a game in flight.
It's a truly incredible what these guys (and their teams) get done.