Re:Show HN: Redbean – Single-file distributable web server
by drran on Saturday February 27, 2021 @04:18PM
(#26288267)
Multi OS/arch executables exists for decades. They were called fat-binaries[0]. Old trick is new again.
Re:Show HN: Redbean – Single-file distributable web server
by Wowfunhappy on Saturday February 27, 2021 @10:26PM
(#26290418)
But compared to what jart has done, those were effectively cheating. ;) They just smooshed multiple binaries into a single file.
Re:Show HN: Redbean – Single-file distributable web server
by anderspitman on Friday February 26, 2021 @04:25PM
(#26280001)
Thanks!
A single executable, that doubles as a valid ZIP file, that you can put a complete website into, also doubles as a valid executable on Windows, Mac, Linux.
The build infrastructure is a complete reworking of C to make it far more portable than even K&R thought possible.
I probably wouldn't have believed it possible, but here it is!