- File Size: 3349 KB
- Print Length: 354 pages
- Simultaneous Device Usage: Unlimited
- Publication Date: July 29, 2018
- Sold by: Amazon.com Services LLC
- Language: English
- ASIN: B07FZWWVQT
- Text-to-Speech: Enabled
- Word Wise: Not Enabled
- Lending: Not Enabled
- Amazon Best Sellers Rank: #461,530 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
|Print List Price:||$39.00|
Save $19.00 (49%)
Writing A Compiler In Go Kindle Edition
|New from||Used from|
To get the free app, enter your mobile phone number.
Customers who bought this item also bought
Would you like to tell us about a lower price?
There was a problem filtering reviews right now. Please try again later.
The compiler book went much faster because the basics are the same as the interpreter book. Instead of tree-walk to eval, the compiler emits instructions for the vm to execute. Since early in my career I was an assembly language programmer. The vm's stack architecture is quite natural to me so the vm portion, though new, was easy for me to follow as well.
Both books are wonderfully written. Code in both book work as advertised. I enjoyed reading and following the code immensely.
Ever since I left school I wanted to someday write a compiler. I did it! :-) . I am thinking about re-implementing the programs in Python. That should be quite fun, I would think.
It's super easy to read and not weighed down by theory. It's like the practical, up-to-date version of the Dragon book. If I was trapped on an island and forced to build a programming language (hint hint!), this is the only book I would take.
What’s very unique about both books is that they make complex, intimidating problems approachable. Better still, they’re not doing that by pretending it’s a simple topic or by denying or hiding its complexity.
Rather than a steep learning curve, the author makes it feel like a walk in the park by slicing it in tiny (digestible) chunks and presenting them in the order that makes the most logical sense. At the end, you will gain the same knowledge as the one you would have gained from more demanding books except that it will be a far more enjoyable experience.
So whether you are an experienced programmer or just curious about those things, you will be a better programmer (and possibly writer/teacher) after reading the book.
I would be as bold as to say that even if you don’t really know/appreciate Go (which would be a shame) you could learn a lot even if you were to end-up implementing the code in the language of your choice.
I’m very much looking forward to volumes 3 and 4 : “Writing a micro-processor in VHDL” and “Writing an operating system in Monkey”.
Top international reviews
Comme pour le premier opus, le cheminement est extrêmement progressif (sans pour autant prendre de raccourcis) et le style très agréable.
A la fin du livre vous aurez réellement écris 100% d’un compilateur (byte code et machine virtuelle) sans utiliser aucun outil externe et aucune librairie autre qu’une toute petite portion de la librairie standard Go.
Même si vous ne pratiquez pas ou n’aimez pas Go (ce qui serait vraiment dommage), vous pouvez faire abstraction du langage utilisé, ce livre reste un des rares ouvrages accessible sur le sujet et rien ne vous empêche de porter le code dans votre langage préféré (quelqu’un la fait pour Rust sur le premier volume).
J’ai vraiment hâte de découvrir ce que sera son prochain livre. Suggestions (improbables) : « Writing a micro-processor in VHDL » ?!? « Writing an operating system in Monkey » ?!?