Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

500 Lines or Less A 3D Modeller (https://aosabook.org)

103 points by myth_drannon 7 days ago | 21 comments | View on ycombinator

forgotpwd16 5 days ago |

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.

omoikane 5 days ago |

The code appears to be here (about ~903 lines):

https://github.com/aosabook/500lines/tree/master/modeller/co...

knollimar 5 days ago |

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

jasonjmcghee 5 days ago |

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 5 days ago |

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 5 days ago |

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

bentt 5 days ago |

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

mikevannelli 4 days ago |

[flagged]

italiansolider 5 days ago |

Based legacy Open-GL enjoyer.