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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

3998-byte executable reduced to 45 bytes

55 点作者 mudge超过 17 年前

5 条评论

some超过 17 年前
45 bytes? Lets see...<p>wget -O - <a href="http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html" rel="nofollow">http://www.muppetlabs.com/~breadbox/software/tiny/teensy.htm...</a> | wc<p>result: 41150 bytes<p>
dzorz超过 17 年前
It still doesn't beat plain old com files in DOS/Windows. Take a look at site <a href="http://www.256b.com" rel="nofollow">http://www.256b.com</a>. There are a bunch of 256 bytes programs that do (visually) amazing stuff. My favourite is called lattice: <a href="http://www.256b.com/download/256" rel="nofollow">http://www.256b.com/download/256</a><p>
zandorg超过 17 年前
My problem with the article is that it's not really theoretically useful, it's just a case for one particular program.<p>Writing large programs in C, I rarely see the need to optimise program size - I'm more interested in execution time. Even so, with thousands of lines of code, the executable is typically &#60; 200kb, which would run on an Amiga, never mind a PC.<p>I think this article is slightly outdated as we don't run 64kb 8-bit machines anymore.<p>My last comment is that you could use an executable 'packer' which uncompresses at runtime, and that's far easier than his methods.
评论 #68149 未加载
评论 #68206 未加载
ratsbane超过 17 年前
Neat! Optimization is fun. But you can also shrink code by going to higher-level languages... (yes, I know, it won't run as fast and will take a lot more memory when it runs, but still...)<p><pre><code> mbp:~/test doug$ cat tiny.pl return 42; mbp:~/test doug$ ls -la tiny.pl -rw-r--r-- 1 doug doug 12 Oct 15 11:31 tiny.pl </code></pre>
评论 #68092 未加载
评论 #68103 未加载
arvid超过 17 年前
Off the subject but on this site: A list of Martin Gardner Puzzle Books: Martin Gardner's Collections of "Mathematical Games" Columns <a href="http://www.muppetlabs.com/~breadbox/books/gardner.html" rel="nofollow">http://www.muppetlabs.com/~breadbox/books/gardner.html</a>