4 ms·
> https://justine.lol/redbean/index.html https://justine.lol/redbean/index.html > All you need to do is download the redbean.com program below, change the file
by barosl 5y ago
> https://justine.lol/redbean/index.html https://justine.lol/redbean/index.html
> All you need to do is download the redbean.com program below, change the filename to .zip, add your content in a zip editing tool, and then change the extension back to .com.
> That performance is thanks to zip and gzip using the same compression format, which enables kernelspace copies.
Oh my. Having a web server executable which is a zip archive at the same time is a lovely idea. Have there been any other attempts similar to this?
- bayindirh 5y agoPoC||GTFO Magazine's almost every issue is multi format: https://www.alchemistowl.org/pocorgtfo/ https://www.alchemistowl.org/pocorgtfo/ From the latest issue: Technical Note:The electronic edition of this magazine is valid as both PDF and ZIP. The PDF has been cryptographically signed with a factored private key for the TI 83+ graphing calculator.
- twic 5y agoJAR files are ZIP archives, so any Java web server packed into a single JAR is such a thing, to an extent. I don't know of any server which actually makes use of that fact to serve compressed content, but it wouldn't be hard to do.
- barbarbar 5y agoBut that needs a JVM (and maintenance of that). Which is why redbean/cosmopolitan is so extremely clever.
- jart 5y agoYou'll never need to worry about showing your users how to uninstall the Ask Toolbar that came bundled with the Cosmopolitan Virtual Machine that needs to be installed before your users can run your APE binaries, because there isn't one. This project grants your software autonomy without any toilsome tradeoffs. Enjoy!