dockerc
ruby-packer
dockerc | ruby-packer | |
---|---|---|
5 | 2 | |
1,447 | 103 | |
- | - | |
7.0 | 4.2 | |
2 months ago | 6 months ago | |
Zig | Ruby | |
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...
ruby-packer
-
Show HN: dockerc – Docker image to static executable "compiler"
You can already do this with these forks of ruby-packer and traveling-ruby:
https://github.com/ericbeland/ruby-packer
-
Create Stand-alone Ruby 3.1.3 Executables For Any Platform
For a while, there wasn't a way to pack a Ruby binary with anything but an ancient Ruby (2.7). I have 3.1.x working now in a Ruby Packer fork, so I thought I'd share!
What are some alternatives?
macos-cross-compiler - Compile binaries for macOS on Linux
traveling-ruby - Self-contained Portable Ruby ( 2.6.10 -> 3.3.x ) Binaries for Linux/MacOS/Windows
crun - A fast and lightweight fully featured OCI runtime and C library for running containers
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.