TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

IOCCC Flight Simulator

251 pointsby xparadigmover 7 years ago

14 comments

userbinatorover 7 years ago
I am reminded of this 4 kilobyte demo: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=jB0vBmiTr6o" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=jB0vBmiTr6o</a><p>(Source code and discussion at <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11848097" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11848097</a> ; explanation at <a href="http:&#x2F;&#x2F;www.iquilezles.org&#x2F;www&#x2F;material&#x2F;function2009&#x2F;function2009.pdf" rel="nofollow">http:&#x2F;&#x2F;www.iquilezles.org&#x2F;www&#x2F;material&#x2F;function2009&#x2F;function...</a> )<p>although the flight sim is a little more interesting from a technical perspective, since it&#x27;s interactive and also not using the GPU to do most of the computation.<p>Also, despite the source code being obfuscated, observe that that &quot;external symbols&quot; 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 &quot;black box&quot; interacts with the rest of the world is an important part of understanding it.
cdevsover 7 years ago
And yet it looks like my coworkers everyday php code. Seriously though way to go above and beyond in the competition with something so interesting on its own as a x windows flight sim with easy to modify scenery.
Grustafover 7 years ago
Wow thats really impressive. I just wrote a flight sim the other day that i thought was frugal because it&#x27;s less than 10 kloc. This on is about 100 times shorter!
评论 #15060642 未加载
iso-8859-1over 7 years ago
I have modified the Linux SABRE flight sim to compile and run on modern Linux systems. Only requires DirectFB (replaced SVGALIB) or SDL2. Build with scons.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ysangkok&#x2F;sabre" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ysangkok&#x2F;sabre</a><p>Images and review at:<p><a href="http:&#x2F;&#x2F;www.tldp.org&#x2F;LDP&#x2F;LG&#x2F;issue30&#x2F;ayers3.html" rel="nofollow">http:&#x2F;&#x2F;www.tldp.org&#x2F;LDP&#x2F;LG&#x2F;issue30&#x2F;ayers3.html</a>
senatorobamaover 7 years ago
I have been low-level systems coder for about 10 years, and have no clue how demos are made besides the fact they use the technique of procedural generation and&#x2F;or shader(s).<p>Is there a guide on how to start making one?
评论 #15061756 未加载
549362-30499over 7 years ago
Pretty cool! I don&#x27;t know why I expected otherwise, but the makefile works just fine despite being from 1998. It took 30 seconds to download the files, compile, and start playing the game!
评论 #15060788 未加载
throwaway7645over 7 years ago
I love using small amounts of code to write beautiful code...preferably games. I wish there was a book with 20 programs like this, just not obfuscated. I bet I would learn a lot.
评论 #15060641 未加载
评论 #15061528 未加载
shaknaover 7 years ago
Downloaded, ran &quot;make banks&quot;... And played. [0] Works like a charm!<p>And despite the seriously obfuscated nature, I only got three warnings on compilation.<p>Banks compiled down to 19kb (though dynamically linked), which is still fairly tiny (though much larger than the source code).<p>Now excuse me, I&#x27;m going to have some old school fun.<p>[0] <a href="https:&#x2F;&#x2F;imgur.com&#x2F;RvEM5q2" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;RvEM5q2</a>
Sir_Cmpwnover 7 years ago
I&#x27;ve been wondering when IOCCC 2017 is going to happen. Does anyone have the word?
评论 #15069610 未加载
ipunchghostsover 7 years ago
A writeup or video explaining how the code works would be fascinating.
mschuster91over 7 years ago
Is there any explanation on how this thing actually works?
_benjover 7 years ago
This might go beyond obfuscated to the art realm!
footaover 7 years ago
Thank God for orthogonal matrices
org3432over 7 years ago
The IOCCC is fun, but isn&#x27;t it time for C&#x2F;C++ to get standard formatting for consistent readability? Like Go and Python.
评论 #15061796 未加载
评论 #15061513 未加载
评论 #15062433 未加载
评论 #15061422 未加载