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.

Bouncing Beholder, my winning JS1K entry (2012)

72 pointsby wonger_3 months ago

8 comments

calibas3 months ago
&gt; I&#x27;ve heard people wax poetic about programming old, limited-memory machines. I wouldn&#x27;t know anything about those---at the time they were current, I was writing rudimentary number-guessing games in BASIC. But doing this competition entry gave me a taste of what they might be talking about.<p>One rather big difference here though, the limitation is on the size of the code, not the compiled binary. Most of the &quot;optimizations&quot; here have little to no effect on the code after it&#x27;s compiled.<p>With older computers, instead of removing line breaks from the code, you&#x27;re doing things like tweaking compiler flags to shrink the size.
评论 #42936038 未加载
jitl3 months ago
This person is also the author of CodeMirror and ProseMirror, the best choices in my opinion for plain text editing and rich text editing respectively for the web platform
评论 #42932921 未加载
madflame9913 months ago
I can&#x27;t recommend &quot;return true to win&quot; (<a href="https:&#x2F;&#x2F;alf.nu&#x2F;ReturnTrue" rel="nofollow">https:&#x2F;&#x2F;alf.nu&#x2F;ReturnTrue</a>) enough to learn how to golf JS. I think it&#x27;s more accessible to learn one 10-20 char snippet at a time than a big project like a 1k submission.
kookamamie3 months ago
To those it was not obvious - the result of the entry is the top banner, a keyboard-controllable &quot;game&quot;.
KingOfCoders3 months ago
I wrote boot sector stuff (1k) on the Amiga (68k assembler). Today I wonder if I could have written a game (tech wise and skill wise).
评论 #42936301 未加载
mohsen13 months ago
I did a JS1K back in the day [1] such a fun concept!<p>I wonder these days if anyone is using multi-character emoji (don&#x27;t know what do you call those exactly) to compress more data in 1024 &quot;bytes&quot;?<p>Since HackerNews does not allow emojis, here is a demo of what I mean:<p><a href="https:&#x2F;&#x2F;output.jsbin.com&#x2F;nebemihuhe" rel="nofollow">https:&#x2F;&#x2F;output.jsbin.com&#x2F;nebemihuhe</a><p>[1] <a href="https:&#x2F;&#x2F;js1k.com&#x2F;2013-spring&#x2F;demo&#x2F;1426" rel="nofollow">https:&#x2F;&#x2F;js1k.com&#x2F;2013-spring&#x2F;demo&#x2F;1426</a>
评论 #42933286 未加载
评论 #42935443 未加载
评论 #42934353 未加载
评论 #42936553 未加载
评论 #42935850 未加载
rob743 months ago
See also: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Beholder_(Dungeons_%26_Dragons)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Beholder_(Dungeons_%26_Dragons...</a>
66yatman3 months ago
Marijn wants to eat all the money . Love you bro.