500 Lines or Less – Writing a useful program in fewer than 500 line code – AOSA

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
  1. gifDisco

    It takes a png and builds a disco-gif version

    I could write a fairly useless program with nearly half the amount of lines!!:

    https://github.com/egeozcan/gifDisco

    Being able to write silly stuff because you can is immensely satisfying.

  2. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  3. ioccc-obfuscated-c-contest

    IOCCC International Obfuscated C code contest entries

    For that you can go savor the archives of IOCCC : https://www.ioccc.org/

  4. shite

    The little hot-reloadin' static site maker from shell.

    Bookmarked! These look like amazing study projects; the kind one can copy and learn from. Quite like how they do it in art school. Each one of them looks like it solves a nontrivial problem, and edifies the reader on the basic contours/tenets of the problem/solution space.

    I love this kind of stuff, because it shows one _can_ solve a pretty juicy problem with not that much code, honestly. Also because it suggests that the industrial-strength equivalent has a lot more in for use cases, corner cases, and/or optimisations that are not relevant for one's requirements (at least not yet, maybe not ever).

    I aspire to write code like that. Useful, concise, but not obtuse. Some of my code is not as significant as those examples, and maybe falls short of my ideals, but it gets a lot done in well under 500 loc. e.g. my website maker in Bash [1] (hot-builds and hot-refreshes without JS), or the JS that drives text art animations for Hanukkah of Data [2].

    [1] https://github.com/adityaathalye/shite is about 350 LoC counted this way (excluding the script containing HTML templates).

      $ grep -E -v "^$|\\s?#" bin/{events,metadata,templating,utils,hotreload}.sh | wc -l

  5. scamp-cpu

    A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.

    Re the text editor, when I was writing an editor for my homemade CPU I used the one from this tutorial: https://viewsourcecode.org/snaptoken/kilo/index.html - it is 1000 lines of C.

    I have diverged a bit from the tutorial because I didn't want syntax highlighting and I really wanted vi-style keybindings. Mine is at https://github.com/jes/scamp-cpu/blob/master/sys/kilo.sl (in my made-up programming language).

  6. naiveproxy

    Make a fortune quietly

  7. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Shite: The little hot-reloadin' static site generator from shell

    2 projects | news.ycombinator.com | 12 Mar 2025
  • Static Site Generator for Emacs Lisp Programmers

    2 projects | news.ycombinator.com | 7 Mar 2025
  • Status.sh: Bash script to generate a static status page

    1 project | news.ycombinator.com | 13 Feb 2025
  • How to use 📔FuzPad!

    1 project | dev.to | 1 Feb 2025
  • Notes-bash: A simple note taking TUI bash script powered by fzf

    2 projects | news.ycombinator.com | 20 Jan 2025

Did you know that C++ is
the 7th most popular programming language
based on number of references?