Rendered at 16:55:09 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
forgotpwd16 1 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.
It's not about golfing as much functionality as possible into those lines, at the cost of rendering it incomprehensible.
forgotpwd16 24 hours ago [-]
There isn't much attempt at code golf really, and OpenGL is a standard graphics API. Plus project is a 3D modeller, not renderer.
ablob 1 days ago [-]
so printf("%i", 42) is fine and dandy golfing, but glTriangle(x, y, z) is too much?
The next thing you're gonna tell me is that a true golfer manually invokes syscalls.
swiftcoder 1 days ago [-]
OpenGL has a tiny API surface compared to the other 3D APIs. Of course, that means it has a painfully complicated state machine hiding under the hood...
bentt 24 hours ago [-]
We must preserve pages and projects like this. In 5 years this will look like hand editing x86 ASM to most programmers.
Krei-se 1 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
vconnor 1 days ago [-]
You didn’t even read the article to notice they went for old-style fixed function OpenGL, you know, the one that doesn’t have shader or bind groups or render targets?
What is the point of your sarcastic comment then?
nnevatie 1 days ago [-]
Is this released in 2026? It looks like it came from 20 years ago, to be quite honest.
jamessb 1 days ago [-]
The "500 lines or less" book that this is a chapter from was published in 2016 (according to OpenLibrary [1], and the commit dates in the source repo [2])
https://github.com/aosabook/500lines/tree/master/modeller/co...
* It's a catch-phrase related to a guy from Barstool Sports that reviews pizza places, on a YouTube channel called One Bite Pizza Reviews
* The idea is that you take one bite and review the pizza, and this is a "rule"
* The catch-phrase is used ironically; you may say it and then take multiple bites
* The guy you're replying to apparently thinks this is similar to "500 lines or less" being more than 500 lines, but can't just say this with words
https://www.reddit.com/r/barstoolsports/comments/6szlym/one_...
It's not about golfing as much functionality as possible into those lines, at the cost of rendering it incomprehensible.
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
What is the point of your sarcastic comment then?
[1]: https://openlibrary.org/books/OL39940112M/500_Lines_or_Less
[2]: https://github.com/aosabook/500lines
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.