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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Bouncing Beholder, my winning JS1K entry (2012)

72 点作者 wonger_3 个月前

8 条评论

calibas3 个月前
&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 个月前
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 个月前
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 个月前
To those it was not obvious - the result of the entry is the top banner, a keyboard-controllable &quot;game&quot;.
KingOfCoders3 个月前
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 个月前
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 个月前
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 个月前
Marijn wants to eat all the money . Love you bro.