Lurker News

Comments (249) 71 threads

Earlier comments
rebelpixel#
I think that's still worth mentioning considering they're roughly in the same sphere of interest, to avoid the confusion.
BiteCode_dev#
And now we have a portable format to embed cross platform an entire interractive book with zero knowledge needed from the reader.
bjarneh#
> exes still end up being roughly 100x smaller than Go Hello World

> Is the Cosmopolitan Runtime lean and mean like Go's 2mb Hello World executables?
:-)

kidsil1 reply#
Odd, I'm getting $ ./printimage.com image.jpg

run-detectors: unable to find an interpreter for ./printimage.com

jart2 replies#
Author here. That error happens if you have binfmt_misc enabled. The solution is simple:

    sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
I intend to upstream a patch with the Linux kernel so it can do this automatically. If any kernel devs are reading, please email me!
est1 reply#
Does it work on cheap Xen vps? Because "/proc/sys/fs/binfmt_misc/register" looks absent from mine.
jart1 reply#
That's strange. I'd recommend filing an issue. Any details on how I can reproduce the error will be helpful, even if I have to temporarily rent one of those things. I'm on a mission to make binaries portable.

Continue this thread — 1 reply

FeepingCreature1 reply#
Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)
npongratz1 reply#
Do you mean less syntactical nesting? The pipe to sudo tee creates a new child shell, just as sudo sh -c does.

Continue this thread — 1 reply

Load more comments