The Unix Executable as a Smalltalk Method — a neat bit of hacker craft

April 17, 2026
Professional man in a suit talking on the phone and working on a laptop indoors.
Photo by Vitaly Gariev on Pexels

It has been reported that a YouTube talk shared on Hacker News demonstrates how to make a single binary that behaves both as a Unix executable and as a Smalltalk method. The clip is short, nerdy and, yes, oddly beautiful. It asks a simple question: what happens when low-level ELF layout meets the Smalltalk object model? The answer: magic — if you like your magic with a soldering iron and a hex editor.

The demo

The presenter walks through the construction of a file whose bytes are interpreted correctly by the kernel loader and, at the same time, by a Smalltalk image as a method object. By carefully arranging headers and payloads, the same sequence of bytes satisfies two very different format parsers. It has been reported that the video shows both the assembler/source and the running image, so you can see the executable run on the shell and then the Smalltalk method invoked in the image. Clever, precise, and a little bit mischievous.

Why it matters

This isn't just a party trick. It's a reminder that formats are contracts — and if you understand both sides of a contract, you can sometimes make one artifact play two roles. Think polyglot files, but taken up a notch into executable and runtime territory. For hackers, educators and language nerds, that’s a lovely bridge between systems programming and dynamic language design. Is it practical? Maybe not. Is it inspiring? Absolutely.

Comments on Hacker News praised the ingenuity and the craftsmanship; some called it playful proof that there's still room for surprise in systems programming. Allegedly, the clip sparked discussion about the limits of format design and where else this kind of cross-pollination might turn up. For now, it's a wink from the past — and a bright little reminder that creativity still thrives at the byte level.

Sources: youtube.com, Hacker News