Ultra Compression - Fortune [possible satire]

tnzrdoes anyone happen to know what std::allocator.allocate() does when you try to allocate 0 bytes? I get a pointer back but I can't tell what it's pointing at and I can't seem to find anything on the web that gives a definitive answer
GeDaMoWhy are you allocating zero bytes?
Billiardtnzr: the same thing it always returns
tnzrGeDaMo: we are implementing our own allocator for an assignment, and when asked what we should do if the user tries to allocate 0 bytes, the prof said to find out what std::allocator does and mimic that
GeDaMohttp://stackoverflow.com/questions/6065814/standard-compliant-custom-allocator
tnzroh snap, thanks GeDaMo
GeDaMo:)
rindolfGeDaMo: zero bytes are enough to hold the Complete Works of Shakespeare.
GeDaMoDepends on how many monkeys you have to decompress it :P
rindolfGeDaMo: heh.
rindolfOf course, I defined a custom decompressor that emits the complete works of Shakespeare on empty input and uses gzip compression otherwise.
rindolfIt's pretty large though.
Billiardredeemed: compress the decompressor using the same algo
Billiarderrr rindolf
rindolfBilliard: OK.
rindolfBilliard: heh.
Billiard0 bytes = a decompressor for the entire works of Shakespeare
Channel##programming
NetworkFreenode
TaglineShakespeare, compressed
Published2012-10-11