dockerc
traveling-ruby
dockerc | traveling-ruby | |
---|---|---|
5 | 1 | |
1,447 | 15 | |
- | - | |
7.0 | 8.6 | |
2 months ago | 5 days ago | |
Zig | Shell | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dockerc
-
Show HN: dockerc – Docker image to static executable "compiler"
The main reason Zig was chosen is because the project was started at a hackathon[0] at which there was a prize for "best use of Zig". Beyond that there were also other reasons: 1. I have been wanting to try out Zig 2. It fit the requirement of being a so called "systems language".
However having written it in Zig I have a few retroactive reasons for why Zig was a good choice (if not the best choice):
* The build system allows to make the runtime a dependency of the "compiler". I don't think any other language has that.
* The interoperability with C/systems calls is amazing (in comparison to anything but C/C++)
* The ability to embed files
[0]: https://treehacks.com/
[1]: https://github.com/NilsIrl/dockerc/blob/68b0e6dc40e76c77ad0c...
traveling-ruby
-
Show HN: dockerc – Docker image to static executable "compiler"
https://github.com/YOU54F/traveling-ruby
ruby-packer is what I use to distribute a paid CLI, although on macOS only because my product is specifically for customers on macOS.
The advantage of ruby-packer is that it is much simpler, but you need to have access to each OS where you want to distribute your executable. OTOH, with traveling-ruby, you can build executables for all OSes from the same machine.
What are some alternatives?
macos-cross-compiler - Compile binaries for macOS on Linux
crun - A fast and lightweight fully featured OCI runtime and C library for running containers
ruby-packer - Packing your Ruby application into a single executable.
container2wasm - Container to WASM converter
wasmer - 🚀 The leading Wasm Runtime supporting WASIX, WASI and Emscripten
enroot - A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.