For me:

- Browser: works after renaming to .html

- Linux: "./snake.com: line 20: lzma: command not found". Installing the xz package makes it work (already had XWayland enabled so X11 worked, but may be needed if you have a strict Wayland session).

- Windows: As either .com or renaming to .exe I get "The application was unable to start correctly (0xc0000005). Click OK to close the application." Not sure how to make this one work, it's definitely not AV related though (I have that stripped in this sandbox VM).

Edit: Got it working in all 3 now. On Windows I still had DEP enabled on all programs to test some apps earlier, turning that back off allowed it to launch.

[deleted]

Works for me on Windows 11

Hmm, Windows 11 25H2 here as well. Redbean works so there must be something about this particular approach combined with some unknown setting on my install.

Edit: Got it working, was DEP.

If I ran it with just

    $ chmod +x snake.com
    $ ./snake.com
... then it would try to use Mono to launch it:

    Cannot open assembly './snake.com': File does not contain a valid CIL image.
But, running it explicitly with Bash works:

    $ bash snake.com
Pretty nifty but doesn't work out of the box on any Linux, at least :p Running Debian 13.

> ... then it would try to use Mono to launch it:

That's because of the binfmt handler that Mono installs which matches the PE header.

its written in the post

If you mean lzma it wasn't immediately apparent to me it was a binary requirement, but inspecting the hex dump at the end + the message is how I figured out it was. I wonder how much space you lose dropping lzma and doing some other method as "tail -c+4294 $0|head -c 5061|lzma -dc>/tmp/a;chmod +x /tmp/a;(/tmp/a&rm /tmp/a);exit" would be more universal and the linux portion isn't all that big.

If you mean the .html rename or whatever my Windows problem was, I must be missing it. Edit: Windows was DEP.