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.

City in a Bottle – A 256 Byte Raycasting System

362 pointsby bubblehack3rabout 1 year ago

11 comments

peter_d_shermanabout 1 year ago
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>
nabla9about 1 year ago
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>
immibisabout 1 year ago
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 未加载
elijahbenizzyabout 1 year ago
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 未加载
tedunangstabout 1 year ago
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 未加载
Marazanabout 1 year ago
If you like this you&#x27;ll love #tweetcart on Twitter.<p>Tweet sized programs for the Pico-8 virtual console.
评论 #40427637 未加载
tayloriusabout 1 year ago
Oh I like that! That&#x27;s awesome, nice one man!
codetigerabout 1 year ago
This is amazing, both the work and the article
EpiMathabout 1 year ago
that&#x27;s a pretty fun read.
Shocka112 months ago
This is why I come here.
rossantabout 1 year ago
That was amazing.