Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
1–10 of 23 posts
Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#2Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#3Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#4Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#5Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#6301 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?
Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#7Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#8301 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?
What about adding a Make rule to auto-generate the one-liner install from the binary?
Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#9[1] In the late 80s and early 90s, the battle between those writing handwritten Asm and those using compiled HLLs has many similarities to AI-generated vs non-AI code today.
Re: Show HN: A (marginally) useful x86-64 ELF executable in 301 bytes
#10It doesn't even look like particularly optimised Asm (could immediately spot a few savings, despite how horrible GAS syntax is to read...), but is definitely not "compiler slop"[1] either, which shows just how inefficient the majority of programs actually are. Of course even the ELF header takes up a significant amount of space, but this reminds me of how PC magazines would print short listings of utilities like this…
[1]: https://github.com/meribold/btry/commit/8ef5a4ce58ae73c489d2...