Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
github.com22 points by meribold 2 days ago
22 points by meribold 2 days ago
Love this kind of tiny, over‑engineered hack—totally impractical, but pure Show HN energy.
Love it! It's entirely inapplicable and useless to me but it embodies the spirit of Show HN and what the spirit of programming in the 80s and 90s was.
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?
Haha this is great!
What about adding a Make rule to auto-generate the one-liner install from the binary?
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.
I have a use for this: A somewhat portable one-liner to go in my waybar/sway/i3 configs!
[dead]