Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
21 points by meribold 3 days ago | 6 comments

Eric_Xua 23 minutes ago
Love this kind of tiny, over‑engineered hack—totally impractical, but pure Show HN energy.
reply
vparseval 2 hours ago
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.
reply
emanuele-em 3 days ago
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?
reply
sjdv1982 6 minutes ago
Haha this is great!

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

reply
zahlman 2 hours ago
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.
reply
captn3m0 2 hours ago
I have a use for this: A somewhat portable one-liner to go in my waybar/sway/i3 configs!
reply
darioterror 2 hours ago
[dead]
reply