x-in-y-lines
x-in-y-lines copied to clipboard
Succintly written (<1000 non-obfuscated loc), fully-functional software in any language
x-in-y-lines
Succintly written (<1000 non-obfuscated loc), fully-functional software in any language.
Databases
- Pydis – Redis clone in 250 lines of Python, for performance comparison link
- SQL query builder in 150 lines of Python link
- A functional, relational database in about 250 lines of Common Lisp link
- A mini redis in 411 lines of Python link
Version Control
- Gitlet.js – Git implemented in 1k lines of JS link
Text Editors
- A small text editor in less than 1K lines of C link
Spreadsheets / Calculators
- A spreadsheet in fewer than 30 lines of JavaScript, no library used link
WWW / Networks
- Strace in 60 lines of Go link
- Traceroute, 71 lines, Python link
- News Scraper with 100 Lines of Python link
- A bare-bones but usable Gemini client in 100 lines of Python link
- A bare-bones but usable Gemini client in 100 lines of Lua link
- A bare-bones but usable Gemini client almost 100 lines of Go link
Games / Graphics
- Simple Minecraft Clone in 580 lines of Python link
- snake in 12 lines of Pytorch link
- Pokemon game in 70 lines of Javascript link
- A first-person engine in 265 lines of JS link
- Sunfish: A simple but strong chess engine in 111 lines of Python link
- Recursive raytracer in 35 lines of JavaScript link
- A top-down 2d game engine, written from scratch in under 1000 lines of C link
- Tile map editor in 70 lines of JavaScript link
Emulators
- LaiNES – Cycle-accurate NES emulator in around 1000 lines of C++/SDL link
Engines/Frameworks
- State-of-the-art (ranked #1 Aug 2022) German Speech Recognition in 284 lines of C++ link
- C++: How OpenGL works: software rendering in 500 lines of code link
- JavaScript: Gooact: React in 160 lines of JavaScript link
- JavaScript: Build Your own Simplified AngularJS in 200 Lines of JavaScript link
- JavaScript: Build a Regex Engine in Less than 40 Lines of Code link
- JavaScript: JavaScript template engine in just 20 lines link
- Ruby: How to write a template engine in less than 30 lines of code link
- Node.js: Build a static site generator in 40 lines with Node.js link
- A React (+ Redux) replacement in 40 lines of code link
- Building a full-text search engine in 150 lines of Python code link
- Noact – React-like Virtual DOM library in 70 lines of TypeScript link
Cryptocurrency
- Go: Code your own blockchain in less than 200 lines of Go link
- JavaScript: A cryptocurrency implementation in less than 1500 lines of code link
- Make an NFT in 15 Lines of Solidity link
Cryptography
- Minimal TOTP generator in 20 lines of Python link
Containers
- C: Linux containers in 500 lines of code link
- Go: Build Your Own Container Using Less than 100 Lines of Go link
- Shell: Docker implemented in around 100 lines of bash link
AI/ML
- Python: A Neural Network in 11 lines of Python link
- Abstractive Text Summarizer in 94 Lines of Tensorflow link
- Parsing English with 500 lines of Python link
Compilers / Interpreters / Languages
- A programming language in 450 lines of JavaScript link
- C: Build Your Own Lisp: Learn C and build your own programming language in 1000 lines of code link
- C subset lexer, parser, code generator, and VM in 291 lines of C link
- A simple parser for mathematical expressions in 26 lines of Python link hn thread
- Self-hosting Lisp-to-C compiler in 384 lines of Lisp link
- Regular expression engine in 14 lines of Python link
- Lisp compiler in 89 lines of Python link
- An extensible multi-markup reader in less than 100 lines of python code link
- A λ-calculus interpreter in less than 300 lines of JavaScript link
- Casual Markdown - a regex based markdown parser in less than 190 lines of JavaScript link
- Snarkdown - another regex based markdown parser in 109 lines of JS link
Video
- C: How to Write a Video Player in Less Than 1000 Lines link