500 Lines or Less A 3D Modeller

myth_drannon 103 points 21 comments November 13, 2026
aosabook.org · View on Hacker News

Discussion Highlights (8 comments)

italiansolider

Based legacy Open-GL enjoyer.

knollimar

Using a big library like OpenGL and then playing code golf seems at ends. Cool writeup but these always confuse me

omoikane

The code appears to be here (about ~903 lines): https://github.com/aosabook/500lines/tree/master/modeller/co...

jasonjmcghee

Another great read is Daniel Hooper’s write up on his SDF 3D modeler ShapeUp. https://news.ycombinator.com/item?id=40239164 It’s about 2k lines and was built in a week… but it uses raylib which is a fundamentally different task, but i still find it interesting.

Krei-se

Beware brave traveler, this great read will make you think oh that's not so hard! In the jungle of 3000+ lines spaghetti renderer-code you will be tangled in RenderTargets and concatenated ShaderCode with your boots in quicksands of BindGroups. Only the noble get to see the light after fixing their struct alignment traps!! 10/10 though, can recommend to get caught up

nnevatie

Is this released in 2026? It looks like it came from 20 years ago, to be quite honest.

forgotpwd16

The entire "Architecture of Open Source Applications" is amazing, and among those "500 Lines or Less" is imo the most enjoyable. Many, that can perhaps be considered fundamental (e.g. databases, crawler, etc), projects from plan to implementation, Most in Python, but also CLisp, Clojure, JS, Julia.

bentt

We must preserve pages and projects like this. In 5 years this will look like hand editing x86 ASM to most programmers.

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed