# How to write a tiny compiler

> Write your own compiler: introduction. Code genetation. AST. Abstract syntax tree. lisp. javascript.

Page: https://nowfound.app/launch/how-to-write-a-tiny-compiler

- Launched: 2017-02-09
- Launch-day votes: 224, 63 comments; #94 of 2,696 launches that month (top 3%)
- Website: [blog.klipse.tech](http://blog.klipse.tech/javascript/2017/02/08/tiny-compiler-intro.html?tiny), online when checked 2026-09-19
- Category: [Dev tools](https://nowfound.app/c/developer-tools.md)
- Forecast: 93% chance its website is still online in November 2031 (99% in November 2027, 96% in November 2029). Made 2026-11-29 and not revised. Typical launch of 2017: 80%. [Method](https://nowfound.app/forecast.md)
- Originality: 34/100 (crowded field). More original than 34% of products launched in 2017. On its launch day the archive already held 8 similar products; 23 products like it have launched since.

## 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, 2026-09-18._

## Does a similar job

- [Ultra Tiny Compiler in less than 90 lines of](https://nowfound.app/launch/ultra-tiny-compiler-in-less-than-90-lines-of-code): Ultra Tiny Compiler. (2016-04-04, 61 votes, free, forecast: 90% online in 2031, github.com)
- [A compiler for a small language into x86-64](https://nowfound.app/launch/a-compiler-for-a-small-language-into-x86-64-assembly): Compiler for a small language into x86-64 Assembly (2020-04-29, 74 votes, free, forecast: 95% online in 2031, github.com)
- [A self-hosted js compiler in 1k loc](https://nowfound.app/launch/a-self-hosted-js-compiler-in-1k-loc): Minimal self-hosted JavaScript compiler in 1k lines of code (2017-02-10, 47 votes, free, forecast: 93% online in 2031, github.com)
- [TinyGo](https://nowfound.app/launch/tinygo-llvm-based-go-compiler-for-microcontrollers): Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM. (2018-08-18, 177 votes, free, forecast: 91% online in 2031, github.com)
- [A compiler and VM for a simple language, in 150](https://nowfound.app/launch/a-compiler-and-vm-for-a-simple-language-in-150-lines-of-code): A complete compiler for a simple language (in less than 150 LoC) - 00\_readme.md (2022-07-16, 200 votes, forecast: 97% online in 2031, gist.github.com)
- [My C compiler compiled itself](https://nowfound.app/launch/my-c-compiler-compiled-itself): One of the most challenging projects of my life :) (2024-12-03, 275 votes, free, forecast: 97% online in 2031, github.com)

All alternatives: https://nowfound.app/alternatives/how-to-write-a-tiny-compiler.md

## For the maker of How to write a tiny compiler

- Feature it at the top of the NowFound home page for $19 for 30 days, marked sponsored: https://nowfound.app/feature/how-to-write-a-tiny-compiler
- Free: put the badge on the product's own site and it joins Featured products after the paid spots, and this page links to the site with a normal link search engines follow. HTML for the footer: `<a href="https://nowfound.app/launch/how-to-write-a-tiny-compiler"><img src="https://nowfound.app/badge/how-to-write-a-tiny-compiler.svg" alt="How to write a tiny compiler on NowFound" height="32"></a>`

Source: [Show HN post](https://news.ycombinator.com/item?id=13608810)
