News for hackers. Stuff that matters.
Re:1k minecraft by sysk on Tuesday November 25, 2014 @10:18PM (#8660975)
I wonder if a few bytes could be saved by encoding the source in 7bit ascii, decoding and running through eval. Not sure if that makes sense.
Re:1k minecraft by unwind on Wednesday November 26, 2014 @08:45AM (#8662236)
I don't think 7-bit ASCII behaves the way you think. It's typically the same 8-bit bytes but with the most significant bit clear. So, there's no saving to be had, it doesn't "contract" the bits across neighboring bytes.
Re:1k minecraft by sysk on Saturday November 29, 2014 @04:18PM (#8675116)
Yes but that's exactly what I meant. ASCII wastes 1 bit by character (the 8th bit isn't used). What if the source was encoded in such a way that it is "contracted" (the unused bit of the first character is the first bit of the second character, etc). Sorry for the 3 days late reply. The decoding function would have to be very small to make it worth it though.