TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

IOCCC Flight Simulator

251 点作者 xparadigm将近 8 年前

14 条评论

userbinator将近 8 年前
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.
cdevs将近 8 年前
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.
Grustaf将近 8 年前
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-1将近 8 年前
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>
senatorobama将近 8 年前
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-30499将近 8 年前
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 未加载
throwaway7645将近 8 年前
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 未加载
shakna将近 8 年前
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_Cmpwn将近 8 年前
I&#x27;ve been wondering when IOCCC 2017 is going to happen. Does anyone have the word?
评论 #15069610 未加载
ipunchghosts将近 8 年前
A writeup or video explaining how the code works would be fascinating.
mschuster91将近 8 年前
Is there any explanation on how this thing actually works?
_benj将近 8 年前
This might go beyond obfuscated to the art realm!
foota将近 8 年前
Thank God for orthogonal matrices
org3432将近 8 年前
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 未加载