logoalt Hacker News

emanuele-emlast Monday at 9:16 PM3 repliesview on HN

301 bytes! The base64 one-liner install is a nice flex. Accepting an infinite loop when energy_full doesn't exist is peak code golf, perfectly reasonable when every byte counts. Is there a writeup on the assembly somewhere?


Replies

zahlmantoday at 4:52 AM

The xz step doesn't seem to be doing very much, though. It seems the decoded data is currently 278 bytes versus a 298-byte decompressed result.

sjdv1982today at 6:04 AM

Haha this is great!

What about adding a Make rule to auto-generate the one-liner install from the binary?

billforsternztoday at 10:09 AM

I would prefer avoiding the infinite loop and printing a message to help the user understand what went wrong. I'm sure you could do that with an extra 100 bytes or so. Just my opinion of course.