Show HN: Redbean – Single-file distributable web server
I just spent 30 minutes reading about this. I'm so shocked that I'm logging in to comment after 5 years of lurking.<p>Justine has built a c library that allows you compile a binary once and have it run it on any os or baremetal. The SAME binary. Quite frankly, that sentence doesn't even make sense to me.<p>Check out <a href="https://storage.googleapis.com/justine/cosmopolitan/index.html" rel="nofollow">https://storage.googleapis.com/justine/cosmopolitan/index.ht...</a><p>As far as I'm concerned, this is literal magic. Look at the magic numbers: 
<a href="https://github.com/jart/cosmopolitan/blob/37a4c70c3634862d8d005955c032b5a2fa8737c5/libc/sysv/consts.sh" rel="nofollow">https://github.com/jart/cosmopolitan/blob/37a4c70c3634862d8d...</a><p>I could go on, but there's no binary portability comparison with any other language. And she has made some pretty neat optimizations.<p>Back in the day, I saw some pretty neat stuff with the ELF format, but this takes the cake.<p>Wow.<p>Edit: 
I'm editing because this is just so bloody absurd.<p><a href="https://storage.googleapis.com/justine/printimage.html" rel="nofollow">https://storage.googleapis.com/justine/printimage.html</a><p>$ ./printimage.com someimage.jpg<p>Like wow. And also video.<p><a href="https://storage.googleapis.com/justine/printvideo.html" rel="nofollow">https://storage.googleapis.com/justine/printvideo.html</a><p>I'm struggling to put my shock into words. I've been around.<p>There's engineering. There's academia.<p>But this falls into straight-up wizardry.