13 ms·
Unfortunately cosmopolitan wouldn't work for dockerc. Cosmopolitan works as long as you only use it but container runtimes require additional features. Also con
by NilsIRL 3y ago
Unfortunately cosmopolitan wouldn't work for dockerc. Cosmopolitan works as long as you only use it but container runtimes require additional features. Also containers contain arbitrary executables so not sure how that would work either...
As for WASM, this is already possible using container2wasm[0] and wasmer[1]'s ability to generate static binaries.
[0]: https://github.com/ktock/container2wasm https://github.com/ktock/container2wasm
[1]: https://wasmer.io/ https://wasmer.io/
- luke-stanley 3y agoThat's interesting. Thanks for clarifying how it works and pointing to container2wasm and how it can be used. I guess if you had a Cosmopolitan WASM VM runner built into Dockerc or similar that bundled the WASM images with a cross-platform binary with the VM and image?
- mthoms 3y agoAs someone who's not overly familiar with Docker, how big are these executables in the end? Edit: This was already answered here https://news.ycombinator.com/item?id=39622184 https://news.ycombinator.com/item?id=39622184