Crafting Interpreters is probably the best programming book I’ve ever read, it covers so many topics: - lexing - parsing - tree walk interpreter - bytecode and VMs - How to write C - memory management - GC - hash tables - dynamically resizable arrays - nanboxing - bit twiddling
Reading it like 3.5 years ago was one the most pivotal moments in my coding journey
@zack_overflow my only gripe is that it is so OOP heavy for absolutely no reason, like if he only knew how much easier it would be to write it in something like OCaml, F#, or Haskell
@zack_overflow Dude, I just love the book (I notice your shoes though) x.com/yuchenj_uw/sta…
@zack_overflow Dude, I just love the book (I notice your shoes though) x.com/yuchenj_uw/sta…
@zack_overflow I learned how to make compilers and interpreters from watching Terry Davis videos
@zack_overflow What a chance
@zack_overflow Check out Engineering a Compiler. I think you’ll enjoy.
@zack_overflow 1000% agree and I also felt this way for a long time, then I read Writing a C Compiler and had to move it to first place. It teaches you so much about how a CPU actually works. Cant recommended enough nostarch.com/writing-c-comp…
@zack_overflow @thorstenball 's book is also a really good book to dive into Interpreter design
@zack_overflow That's much better than posting dragon book slop.
@zack_overflow ngl I still don't understand the part where the book uses the visitor pattern
@zack_overflow Does it not make you code in Java for the first half ? Writing a compiler in C is much better imo.
@zack_overflow I love Rob’s books. I first read his game patterns book. It’s so fun and engaging, compared to other books’ varying degrees of tedium. (Which I accept, it’s not comics.)
@zack_overflow Totally agree. I'm reading for the second time, implementing the first part in C#, using all the modern capabilities and planning do the second part in Zig. Also, it's really worth to do every challenge.
@zack_overflow can we get this for the office @__drewface
@zack_overflow @Samuraizann are you familiar with this book ? might need to get it on the shelf at the @SFOxZo & have @zack_overflow over to chill in workspace . Good Books , Bean Bag Chairs , & Coffee /Chai perfect match
@zack_overflow Neat, just added to my Amazon list.
@zack_overflow should I get a physical copy so I can read it in public and be seen?
@zack_overflow I might have to get a copy .
@zack_overflow And for some reason, it doesn't cover adding a type system to the language, which is by far the most important feature a language needs to prevent bugs.
@zack_overflow C is an amazing language that never gets boring for such an amateur coder like myself. Easy to read, never out of the path.
@zack_overflow Which version do you recommend? Hard copy or kindle?
@zack_overflow Once you build interpreters/compilers — it’s the equivalent of knowing “standard model” of computer science 😌
@zack_overflow Sounds like the ultimate guide to making interpreters. Now if only it could interpret my coffee maker.
@zack_overflow Writing our own lisp interpreter in lisp was the best part of the first course in compsci at LiU....