3 ms·
I am reminded of this 4 kilobyte demo: https://www.youtube.com/watch?v=jB0vBmiTr6o https://www.youtube.com/watch?v=jB0vBmiTr6o (Source code and discussion at h
by userbinator 9y ago
I am reminded of this 4 kilobyte demo: https://www.youtube.com/watch?v=jB0vBmiTr6o https://www.youtube.com/watch?v=jB0vBmiTr6o
(Source code and discussion at https://news.ycombinator.com/item?id=11848097 https://news.ycombinator.com/item?id=11848097 ; explanation at http://www.iquilezles.org/www/material/function2009/function2009.pdf http://www.iquilezles.org/www/material/function2009/function... )
although the flight sim is a little more interesting from a technical perspective, since it's interactive and also not using the GPU to do most of the computation.
Also, despite the source code being obfuscated, observe that that "external symbols" which are still visible, e.g. XDrawLine, XSetForeground, etc. already give a pretty good overview of how it does what it does --- and in general, when reverse-engineering or analysing software, inspecting where the "black box" interacts with the rest of the world is an important part of understanding it.