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
A compiler and VM for a simple language, in 150 lines of code launched on July 16, 2022 with 200 votes, #104 of 2,916 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 4 years on.
In plain words
This is a compiler and virtual machine implementation for a simple programming language, written in just 150 lines of code. It's designed for developers interested in learning how compilers and VMs work or for those seeking a minimal, lightweight language implementation. The project demonstrates core compiler concepts in an unusually compact form, making it useful as an educational reference or starting point for language design projects.
written from the facts on this page · September 2026
From the sources
Search Gists Search Gists Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Instantly share code, notes, and snippets. Clone this repository at <script src="https://gist.github.com/p4bl0-/9f4e950e6c06fbba7e168097d89b0e46.js"></script> Save p4bl0-/9f4e950e6c06fbba7e168097d89b0e46 to your computer and use it in GitHub Desktop. Embed Select an option Embed Embed this gist in your website. Share Copy sharable link for this gist. Clone via HTTPS Clone using the web…from gist.github.com
Does a similar job
all alternatives →
A complete compiler for a simple language (less than 150 LoC of OCaml)2021 · gist.github.com · ▲7A complete compiler for a simple language (in less than 150 LoC) - 00_readme.md
Simple virtual machine, assembler, and C compiler2016 · github.com · ▲99simple virtual machine and assembler. Contribute to ronsoros/rvm development by creating an account on GitHub.
A small virtual machine written in C2014 · github.com · ▲212"interesting" VM in C. Let's see how this goes. Contribute to tekknolagi/carp development by creating an account on GitHub.
I wrote a VM and Compiler for a small language in Go2020 · github.com · ▲37My implementation of Thorsten Bell's book (Writing an Interpreter in Go) - actuallyachraf/monkey-giggle
How to write a tiny compiler2017 · blog.klipse.tech · ▲224Write your own compiler: introduction. Code genetation. AST. Abstract syntax tree. lisp. javascript.
Ultra Tiny Compiler in less than 90 lines of code2016 · github.com · ▲61Ultra Tiny Compiler. Contribute to antonmedv/ultra-tiny-compiler development by creating an account on GitHub.
More dev tools this month
the category →

Contribute to oosexgang/hackios-xnu-kernel development by creating an account on GitHub.
Dev tools · 22h ago · github.com

open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 29d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 27d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 24d ago · openbot.run
Talanoa▲346Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 22d ago · talanoa.email
Source: Show HN post ↗
Launched alongside, July 2022
the whole month →
Locofy.ai▲720Hey there, I am Honey - Co-founder at Locofy. We, along with other makers, have been building Locofy.ai to help massively accelerate the builders - the designers, developers, product managers & founders, and we're excited to share it today with the HN Community. Locofy.ai simply converts designs into production-ready frontend code for web and mobile apps. It adapts to your preferred design tools, tech stack, and workflows with ease and lets you launch upto 4x faster, while letting designers design the way they want and giving high-quality responsive code that developers love. With this…
Dev tools · 2022 · locofy.ai
- PO
Life & fun · 2022 · justine.lol

Open Source realtime backend in 1 file. Contribute to pocketbase/pocketbase development by creating an account on GitHub.
Dev tools · 2022 · github.com
ruttl▲552Visual & Design Feedback Tool that helps you review design, content and report bugs on websites, applications, PDFs and images.
Dev tools · 2022 · ruttl.com

Hello, HN - I wanted to share this puzzle game I made during my vacation. I'm rather fond of the pipes puzzle where your goal is to restore a scrambled network of connections by rotating tiles. It's usually played on a grid of squares and this all started when I decided to make a programmatic solver for that kind of puzzle. Then I realized that with some minor changes the solver could generate new puzzle instances. I thought about what kind of puzzle to make and someone suggested a hexagonal grid. Adapting the generator wasn't too hard but then I had to create a way to play this variant. So…
Life & fun · 2022 · hexapipes.vercel.app

We're building Parsnip to create a "tech tree" of cooking skills that allows anyone to level up on the building blocks of cooking knowledge while tracking their progress over time. It took us a few iterations to figure out the right product; here's the story of our latest pivot: [https://parsnip.substack.com/p/a-new-hope] The goal is to create a personalized way to learn any recipe on the Internet, then use this as a springboard to help home cooks of all levels solve the problem of repeated meal planning in a 10x better way:…
Work · 2022 · parsnip.ai