Ask HN: “Write your own” or “Build your own” software projects
576 pointsI am looking for writings/tutorials/videos which describe a specific technology or feature by implementing them, ideally in no more than few thousands lines of code (and not just 10-20 line code snippets). Idea is to teach about underlying technology by a hands-on project, which is not overwhelming like trying to implement full-feature game engine and yet captures the essence of technology. Some examples are -
* Build a simple database (https://cstack.github.io/db_tutorial/)
* Containers in 500 lines (https://blog.lizzie.io/linux-containers-in-500-loc.html)
* Malloc tutorial (https://danluu.com/malloc-tutorial/)
* Nativecoin - build your own crypto-currency (https://lhartikk.github.io/)
I'm sure there are great such projects/tutorials in domains like networking, filesystem, databases, compiler, web design, messaging, game design, fintech, etc. If you have come across such writings/projects, kindly share.
Comments (82) 50 threads
https://hitch-tls.org/
There's also Handmade Hero (https://handmadehero.org/)
The Raytracing books by Peter Shirley are also very interesting, starting with "Raytracing in one weekend" (https://www.amazon.com/Ray-Tracing-Weekend-Minibooks-Book-eb...)
And lastly there's Crafting Interpreters (http://www.craftinginterpreters.com/)
[0]: http://nand2tetris.org/
Continue this thread — 2 replies
Continue this thread — 1 reply
Peter also uses area lighting derived from the surroundings, whereas my implementation uses point lights that result in sharp specular highlights. There are no surroundings in my image, only the lights.
No doubt Peter's materials look great. I wish I had time to cover more in my course, but I wanted to make sure I covered the prerequisite vector math as well for students without strong mathematical backgrounds.
Create Your Own Programming Language http://createyourproglang.com/
Build Your Own Sinatra: https://getgood.at/build-your-own/sinatra (disclaimer: I'm the author of this)
Vanilla JS series https://javascript30.com/
Super Tiny Compiler https://github.com/jamiebuilds/the-super-tiny-compiler
It gives a concise explanation for the techniques and theories for signal processing while showing practical code examples.
[0]: https://mitpress.mit.edu/books/audio-programming-book
[1]: https://github.com/badosu/sine_synth.lv2
All comments shown.
Couldn't load more comments. Check your connection and try again.