Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by ben174

8 years ago

Thank you. I was going crazy trying to think of what the contents of that 42 bytes would have been.

2 comments

ben174

Reply

rootlocus  8 years ago

Without any headers, metadata or padding and using RLE one byte for 0 and 8 bytes for the number of zeroes: 10^15 will easily fit 9 bytes and can be used to generate a file filled with one petabyte of zeroes.

  • gberger  8 years ago

    Well, yes, but that's not ZIP encoding.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities