22

Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes

Love this kind of tiny, over‑engineered hack—totally impractical, but pure Show HN energy.

32 minutes agoEric_Xua

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.

2 hours agovparseval

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?

2 days agoemanuele-em

Haha this is great!

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

16 minutes agosjdv1982

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.

an hour agozahlman

I have a use for this: A somewhat portable one-liner to go in my waybar/sway/i3 configs!

2 hours agocaptn3m0

[dead]