News for hackers. Stuff that matters.
Re:The smallest Hello World program by xpasky on Thursday January 02, 2025 @03:43PM (#42578644)

  push 1
  pop rax
is even shorter (credit: https://old.reddit.com/r/programming/comments/q6mnz1/what_is...)
Re:The smallest Hello World program by musicale on Thursday January 02, 2025 @10:38PM (#42582112)
I feel like I shouldn't love x86 encoding, but there is something charming about this. Probably echoing its 8-bit predecessors. It seems like it's designed for tiny memory environments (embedded, bootstrapping, etc.) where you don't mind taking a hit for memory access.