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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

City in a Bottle – A 256 Byte Raycasting System

362 点作者 bubblehack3r大约 1 年前

11 条评论

peter_d_sherman大约 1 年前
Related:<p>How [Atari 2600] Pitfall Builds its World:<p><a href="https:&#x2F;&#x2F;evoniuk.github.io&#x2F;posts&#x2F;pitfall.html" rel="nofollow">https:&#x2F;&#x2F;evoniuk.github.io&#x2F;posts&#x2F;pitfall.html</a><p>Procedural Generation [Elite, early 8-bit game]:<p><a href="https:&#x2F;&#x2F;procedural-generation.tumblr.com&#x2F;post&#x2F;112509130817&#x2F;elite-1984-elite-created-by-ian-bell-and-david" rel="nofollow">https:&#x2F;&#x2F;procedural-generation.tumblr.com&#x2F;post&#x2F;112509130817&#x2F;e...</a><p>Procedural Generation [general article]:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Procedural_generation" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Procedural_generation</a><p>Somewhat related:<p>Lazy Evaluation [from Functional programming (FP) languages]:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lazy_evaluation" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lazy_evaluation</a><p>Random observation:<p>If a given raytracing algorithm (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ray_tracing_(graphics)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Ray_tracing_(graphics)</a> only evaluates visible points for a 2D image created as a view from a set of 3D data -- then that&#x27;s sort of similar to the FP concept of Lazy Evaluation, that is, &quot;delay the evaluation of an expression until its value is needed&quot;...<p>Which in turn, prima facie, seems at least cursorily related to <i>&quot;Observation collapses the wave function&quot;:</i><p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Wave_function_collapse" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Wave_function_collapse</a>
nabla9大约 1 年前
From the same author: 1K Pinball Game in JavaScript <a href="https:&#x2F;&#x2F;frankforce.com&#x2F;lu1ky-pinball-code-deep-dive&#x2F;" rel="nofollow">https:&#x2F;&#x2F;frankforce.com&#x2F;lu1ky-pinball-code-deep-dive&#x2F;</a>
immibis大约 1 年前
Remnants by Alcatraz - similar 256-byte MS-DOS demo - youtube link included: <a href="https:&#x2F;&#x2F;www.pouet.net&#x2F;prod.php" rel="nofollow">https:&#x2F;&#x2F;www.pouet.net&#x2F;prod.php</a><p>I think this one is more impressive for being in Javascript, which often has worse density than 16-bit x86 machine code.
评论 #40424522 未加载
评论 #40426859 未加载
评论 #40424855 未加载
elijahbenizzy大约 1 年前
that’s spectacular — the information density we perceive is off he charts for such a small amount of code.<p>Makes me wonder if LLMs aren’t the best way to model the world at all…
评论 #40427966 未加载
评论 #40426962 未加载
评论 #40424887 未加载
tedunangst大约 1 年前
This is very cool, but it&#x27;s a bit unfortunate the loop runs continuously the entire time I&#x27;m trying to read the article and overheating my laptop.
评论 #40426841 未加载
评论 #40426360 未加载
Marazan大约 1 年前
If you like this you&#x27;ll love #tweetcart on Twitter.<p>Tweet sized programs for the Pico-8 virtual console.
评论 #40427637 未加载
taylorius大约 1 年前
Oh I like that! That&#x27;s awesome, nice one man!
codetiger大约 1 年前
This is amazing, both the work and the article
EpiMath大约 1 年前
that&#x27;s a pretty fun read.
Shocka1大约 1 年前
This is why I come here.
rossant大约 1 年前
That was amazing.