Apple Container 0.9.0
github.com
github.com
So it’d be cool if this or a sandbox tool could help.
Super interesting that they're using swift. Does this mean the project is only a wrapper for system libraries ? I can't imagine writing low-level system code in swift yet.
apple.github.io/container/documentation/
This project is very similar to docker with a background daemon server that you control via a cli to launch Linux containers.
Because Linux containers need Linux namespaces, each container is run in a virtual machine with a Linux kernel.
Windows containers also use OCI format.
The container CLI tool wraps the underlying Containerization framework, which in turn vends packages for things like EXT4 file system support -- all written in Swift. Here's one example as a jumping off point. https://github.com/apple/containerization/blob/main/Sources/...
> From its earliest conception, Swift was built to be fast. Using the incredibly high-performance LLVM compiler technology, Swift code is transformed into optimized machine code that gets the most out of modern hardware. The syntax and standard library have also been tuned to make the most obvious way to write your code also perform the best whether it runs in the watch on your wrist or across a cluster of servers. And Swift is the best choice to succeed C++. It includes low-level primitives such as types, flow control, and operators, and provides object-oriented features such as classes, protocols, and generics.
> Swift is efficient enough to be used in constrained environments like embedded devices, and powerful enough to scale all the way up to servers and cloud infrastructure.
-- https://developer.apple.com/swift/
From my point of view, if Go does it, Swift is much better at the same game.