How to write a tiny compiler
Write your own compiler: introduction. Code genetation. AST. Abstract syntax tree. lisp. javascript.
How to write a tiny compiler launched on February 9, 2017 with 224 votes, #94 of 2,696 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 9 years on.
In plain words
How to Write a Tiny Compiler is a blog series that teaches the fundamentals of compiler design by building a simple compiler in JavaScript. The compiler translates LISP-like syntax into C-like syntax, covering key concepts including code generation and abstract syntax trees. It is designed for developers interested in understanding how compilers work, breaking down what seems like a complex topic into manageable concepts and practical implementation.
written by AI from its launch page and website · 18 September 2026
Originality
34/100
Crowded field. 66% of products launched in 2017 entered a less crowded field.
crowded fieldone of a kind
The score compares the words of this launch with every earlier launch in the archive: the fewer close matches on launch day, the higher the score. It says how new the idea was, not how good the product is. Similar products counted on November 30, 2026. See the similar products →This week’s most original launches →
Forecast
93%
chance that How to write a tiny compiler’s website is still online in November 2031. Typical launch of 2017 gets 80%.
- 1 year · Nov 2027
- 99%
- typical 96%
- 3 years · Nov 2029
- 96%
- typical 88%
- 5 years · Nov 2031
- 93%
- typical 80%
- How to write a tiny compiler
- Typical launch of 2017
Launch signals stronger than 99% of the archiveweakest → strongest
Made on November 29, 2026, when the site was online, from what was public on launch day. It is not revised, and it is graded when the site is checked again. How the forecast works and how often it is right →
From the sources
Nothing in computer science sounds more challenging than writing a compiler. And indeed, it is challenging - very challenging. You probably have to be one of those genius guys in order to be able to write a real compiler. Nevertheless, in this series of blog posts, we are going to show the basic structure of a compiler by implementing a very simple compiler in javascript : our compiler is going to compile code in LISP -like syntax into C -like syntax. This is not going to be easy - but I can guarantee you that you are going to enjoy. I know that for sure because in this series there will be a lot of code snippets and all the code snippets are going to be interactive. You can modify the code…from blog.klipse.tech
Does a similar job
free ones →all alternatives →
A compiler for a small language into x86-642020 · github.com · ▲74Compiler for a small language into x86-64 Assembly
A self-hosted js compiler in 1k loc2017 · github.com · ▲47Minimal self-hosted JavaScript compiler in 1k lines of code
TinyGo2018 · github.com · ▲177Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
A compiler and VM for a simple language, in 1502022 · gist.github.com · ▲200A complete compiler for a simple language (in less than 150 LoC) - 00_readme.md
My C compiler compiled itself2024 · github.com · ▲275One of the most challenging projects of my life :)
More dev tools this month
the category →



Put a game, quiz or survey in your next email. No coding
Dev tools · 24d ago · stripo.email

This is a GitHub repository for a development tool focused on data brokers.
Dev tools · 9d ago · github.com
ExitPath▲252Find, compare and switch to open-source alternatives for the tools you depend on. Honest ratings, migration difficulty scores and step-by-step checklists. Nothing you do here leaves your browser.
Dev tools · 17d ago · exitpath-ruddy.vercel.app
Is How to write a tiny compiler yours? Feature it on the home page: $19, or free with the badge →
Source: Show HN post ↗
Launched alongside, February 2017
the whole month →
Web Gradients▲906180 free CSS gradient backgrounds for websites and UI. Copy the CSS code instantly, or open the Generator to build your own gradient.
Work · 2017 · webgradients.com


Milanote▲763Milanote is an easy-to-use tool to organize your ideas and projects into visual boards. Add notes, images, links and files, organize them visually and share them with your team.
Work · 2017 · milanote.com

A free guide to all HTML elements and attributes.
Dev tools · 2017 · htmlreference.io
Amazon Chime▲725Frustration-free video calls. Amazon's Skype competitor.
Life & fun · 2017 · aws.amazon.com