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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Zip Files All The Way Down

92 点作者 l0stman大约 15 年前

7 条评论

scott_s大约 15 年前
Emailing that zip file would probably break most mail based virus checkers. I doubt the people who wrote them anticipated an infinite zip file. Too large, sure, but infinite? Probably not.
评论 #1202020 未加载
评论 #1202287 未加载
评论 #1201940 未加载
评论 #1202785 未加载
评论 #1202351 未加载
tlack大约 15 年前
This brings back memories of trying to crash BBS uploaded file verifiers by sending massively compressed files that would crash the board when unzipped. Ahhh the memories..
评论 #1202592 未加载
Deestan大约 15 年前
Quines are easy in Python. A 0-byte python source file outputs itself when run. :)
评论 #1202390 未加载
paulgb大约 15 年前
My favorite quine is in Factor:<p><pre><code> [ [ dup curry ] dup curry ] </code></pre> (Credit to Slava Pestov)<p>When called, it puts [ dup curry ] on the stack, then creates a copy of it on the stack. curry then takes the second block from the stack and prepends it to the first. Rather than being a program that evaluates to its code, it's a code block that evaluates to itself (similar to most Scheme/Lisp quines).<p>(Off topic note: I originally read the title of the article as "Zip Flies All The Way Down" and was wondering what zipping my fly down had to do with hacker news.)
InclinedPlane大约 15 年前
Note the relevance to HN and the y-combinator, since this represents a fixed point for the zip function.
评论 #1202512 未加载
windsurfer大约 15 年前
When I'm writing programs for myself, sometimes I make the perl program write itself out as the config file with a config hash as the __data__. When the program runs, it tests if the config file doesn't exist or is an older version of the program. I don't know if it has any real use, but it's fun to write :D
评论 #1202769 未加载
NathanKP大约 15 年前
This is really bad on Safari, which attempts to unzip archives automatically. Whatever you do don't download the zip if you have it set to unarchive automatically.