5 comments

  • Eric_Xua39 minutes ago
    Love this kind of tiny, over‑engineered hack—totally impractical, but pure Show HN energy.
  • vparseval2 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.
  • emanuele-em2 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?
    • sjdv198223 minutes ago
      Haha this is great!<p>What about adding a Make rule to auto-generate the one-liner install from the binary?
    • zahlman1 hour ago
      The xz step doesn&#x27;t seem to be doing very much, though. It seems the decoded data is currently 278 bytes versus a 298-byte decompressed result.
  • captn3m02 hours ago
    I have a use for this: A somewhat portable one-liner to go in my waybar&#x2F;sway&#x2F;i3 configs!
  • darioterror1 hour ago
    [dead]