News for hackers. Stuff that matters.
Re:Book – Writing a C Compiler: Build a Real Programming Lan... by spinningslate on Thursday August 15, 2024 @09:04AM (#41255505)
With no disrespect to the book that's the subject of this thread as I haven't read it, but Bob Nystrom's Crafting Interpreter [0] is a fantastic book. It covers all phases in compilation, including both an interpreter and a VM.

It's been covered on several threads here over the years [1].

[0]: https://craftinginterpreters.com/ [1]: https://hn.algolia.com/?q=crafting+interpreters

Re:Book – Writing a C Compiler: Build a Real Programming Lan... by jcpst on Thursday August 15, 2024 @10:28AM (#41256546)
I remember seeing this a while back. That typesetting is beautiful. Thank you for bringing it up here, I might have to pick that one up.

I’ve been bored with building line-of-business applications, despite designing for complex requirements in high-volume distributed systems.

In fact I took a break from CS learning entirely 9 months ago. Even reading HN. I’ve been studying electronics and analog signal processing instead.

But now that I’ve built about 50 guitar pedals of increasing complexity, I feel ready to switch back to CS studies again.

Re:Book – Writing a C Compiler: Build a Real Programming Lan... by agent281 on Saturday August 17, 2024 @10:51AM (#41274976)
This book covers compiling to assembly whereas Crafting Interpreters only has a bytecode VM implementation. We'll see how good this book is when it drops, but I think that's a worthwhile feature that Crafting Interpreters punted on.