Non-FictionInformativeEducational
How to Become a Compiler
How to Become a Compiler
How to Become a Compiler
Formats
About this book
Free sample
Chapter 1: The Metaprogrammer's Oath...–- You are about to do something strange. Most people learn to write code. You are about to learn to write code that writes code. That makes you not a programmer, but a metaprogrammer — and the first thing every metaprogrammer must understand is this: a compiler is not magic. It is not a black box.
It is not a mysterious artifact handed down from the gods of computing. A compiler is simply a program. A program that you, after reading this book, will be able to build from scratch.–- This is the Metaprogrammer's Oath: "I will no longer treat the compiler as a tool. I will understand it, bend it, and if necessary, replace it." By the final chapter of this book, you will have built your own working compiler for a real programming language. You will have written the lexer that reads source code.
You will have written the parser that understands structure. You will have written the optimizer that makes code fast. And you will have written the code generator that produces actual machine instructions — instructions that your CPU will execute. When you finish, you will look at every programming language differently. You will look at your own code differently.
You will see the hidden machinery beneath every keystroke.–- But first, you need to understand why compilers exist at all. And to understand that, you need to go back to a time when computers were women — not machines.The Computer Before Computers–- The word "computer" originally meant a person who computes. In the early 20th century, before electronic computers existed, laboratories and engineering firms employed rooms full of people — often women with degrees in mathematics — whose job was to sit at desks and perform calculations by hand. They would receive engineering problems, break them down into arithmetic operations, fill pages with numbers, and return results days or weeks later. These human computers were accurate, but they were slow.
Each new problem required starting from scratch.–- When electronic computers like the ENIAC emerged in the 1940s, they promised something revolutionary: speed. The…
This is the end of the free sample. Get the eBook to keep going. Buy now
Contents
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
Details
- Author
- Cooke Argelia
- Publisher
- SamEnrico
- Language
- English
- ISBN
- 9781505804225
- Genre
- Non-Fiction, Informative, Educational
- Released
- 2026-05-09
- Pages (approx.)
- 154
- Available as
- eBook, Paperback, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Cooke Argelia
Gen X Gamer DemographicsCooke Argelia$11.99
Lead Paint Safe RenovationCooke Argelia$11.99
Affirmations for LoversCooke Argelia$11.99
The Microaggression Address GuideCooke Argelia$11.99
Body Scan During Physical TherapyCooke Argelia$11.99
The Billionaire's Gamble: How Richard Branson Defied GravityCooke Argelia$11.99
Understanding PsychosisCooke Argelia$17.99
Brand Awareness One Page PlanCooke Argelia$12.99
Bridgewater GuideCooke Argelia$12.99You may also like
Hong Kong Handover 1997Dunn Johnnie$11.99
Zumba For Postnatal Recovery CourseNeal Christian$11.99
Zumba for BeginnersLadner Nikia$11.99
YouTube Comment Mining GuideHumes Pandora$12.99
Worry Box MeditationCarlin Rudy$11.99
Workplace Stress MeditationNguyen Lynn$11.99
Workplace Stress and Sleep RepairHawley Ivory$11.99
Workplace Perfectionism CureDelaney Jeffry$11.99
Workplace Injustice Anger GuideWallen Isabelle$11.99
Work Addiction and Burnout LinkGreenwood Ester$11.99
Women in Yoga and WellnessBeattie Galina$11.99
Women in Stand Up ComedyChun Evangeline$11.99