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.

Zip Files All The Way Down

92 pointsby l0stmanabout 15 years ago

7 comments

scott_sabout 15 years ago
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 未加载
tlackabout 15 years ago
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 未加载
Deestanabout 15 years ago
Quines are easy in Python. A 0-byte python source file outputs itself when run. :)
评论 #1202390 未加载
paulgbabout 15 years ago
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.)
InclinedPlaneabout 15 years ago
Note the relevance to HN and the y-combinator, since this represents a fixed point for the zip function.
评论 #1202512 未加载
windsurferabout 15 years ago
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 未加载
NathanKPabout 15 years ago
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.