Does someone know similar series on other subjects than raytracing? I know there is the Advent of Code, but that's more like solving a puzzle.
Ask HN: Similar books to “Raytracing in one Weekend”?
1–10 of 28 posts
Re: Ask HN: Similar books to “Raytracing in one Weekend”?
#2Re: Ask HN: Similar books to “Raytracing in one Weekend”?
#3I would recommend Crafting Interpreters ( https://craftinginterpreters.com ) or Interpreter Book ( https://interpreterbook.com/ ). Excellent ways to learn how to build an interpreter. You have a functioning interpreter by the end of it, and it's easy enough to extend it into new concepts! I'm using some of the lessons learned from that to build a custom interpreter for a small project I'm working on. It's really fun!
Re: Ask HN: Similar books to “Raytracing in one Weekend”?
#4Re: Ask HN: Similar books to “Raytracing in one Weekend”?
#5"Build your own X" - "This repository is a compilation of well-written, step-by-step guides for re-creating our favorite technologies from scratch." [0]
Re: Ask HN: Similar books to “Raytracing in one Weekend”?
#6Re: Ask HN: Similar books to “Raytracing in one Weekend”?
#7I would recommend Crafting Interpreters ( https://craftinginterpreters.com ) or Interpreter Book ( https://interpreterbook.com/ ). Excellent ways to learn how to build an interpreter. You have a functioning interpreter by the end of it, and it's easy enough to extend it into new concepts! I'm using some of the lessons learned from that to build a custom interpreter for a small project I'm working on. It's really fun!
I've been struggling to decide which one (of the two interpreter books you mentioned) to read. Any specific reason I should read one over the other?
They are surprisingly alike. Mine takes you through two complete implementations of the same language: first as a tree-walk interpreter and then as a bytecode compiler. His first book does the former and his second book does the latter.
Both are written in an informal friendly style and focus on working code. If you like one, you'll probably like the latter.
Mine uses Java for the first language and C for the second. Thorsten's books use Go for both. I think mine has more background information, theory, and historical context. His will get you to a working interpreter with less prose to wade through.
I think it's mostly a question of style and preference. I'd dip into the first chapter of each and see which resonates with you.
Re: Ask HN: Similar books to “Raytracing in one Weekend”?
#8Re: Ask HN: Similar books to “Raytracing in one Weekend”?
#9[0]: https://gamephysicsweekend.github.io/
[1]: https://matthias-research.github.io/pages/tenMinutePhysics/