Back to front pageView on Hacker News (opens in a new tab)Show HN: Redbean – Single-file distributable web server (opens in a new tab)justine.lol1998 pointsby jart (on Hacker News)5 years agoComments (249) 71 threadsEarlier comments[-]Lorin5 years ago1 reply#No relation to http://redbeanphp.com/ I guess :Drebelpixel5 years ago#I think that's still worth mentioning considering they're roughly in the same sphere of interest, to avoid the confusion.BiteCode_dev5 years ago#And now we have a portable format to embed cross platform an entire interractive book with zero knowledge needed from the reader.bjarneh5 years ago#> 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?:-)[-]kidsil5 years ago1 reply#Odd, I'm getting $ ./printimage.com image.jpgrun-detectors: unable to find an interpreter for ./printimage.com[-]jart5 years ago2 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![-]est5 years ago1 reply#Does it work on cheap Xen vps? Because "/proc/sys/fs/binfmt_misc/register" looks absent from mine.jart5 years ago1 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[-]FeepingCreature5 years ago1 reply#Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)npongratz5 years ago1 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 replyLoad more commentsAll comments shown.Couldn't load more comments. Check your connection and try again.
Show HN: Redbean – Single-file distributable web server (opens in a new tab)justine.lol1998 pointsby jart (on Hacker News)5 years ago
rebelpixel5 years ago#I think that's still worth mentioning considering they're roughly in the same sphere of interest, to avoid the confusion.
BiteCode_dev5 years ago#And now we have a portable format to embed cross platform an entire interractive book with zero knowledge needed from the reader.
bjarneh5 years ago#> 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?:-)
kidsil5 years ago1 reply#Odd, I'm getting $ ./printimage.com image.jpgrun-detectors: unable to find an interpreter for ./printimage.com
jart5 years ago2 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!
est5 years ago1 reply#Does it work on cheap Xen vps? Because "/proc/sys/fs/binfmt_misc/register" looks absent from mine.
jart5 years ago1 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.
FeepingCreature5 years ago1 reply#Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)
npongratz5 years ago1 reply#Do you mean less syntactical nesting? The pipe to sudo tee creates a new child shell, just as sudo sh -c does.
Comments (249) 71 threads
Earlier comments> Is the Cosmopolitan Runtime lean and mean like Go's 2mb Hello World executables?
:-)
run-detectors: unable to find an interpreter for ./printimage.com
Continue this thread — 1 reply
Continue this thread — 1 reply
All comments shown.
Couldn't load more comments. Check your connection and try again.