6 ms·
For those interested, some of the underlying libraries that make up Docker for Mac (and, I think, Windows) are written in OCaml (or have components written in O
by themckman 8y ago
For those interested, some of the underlying libraries that make up Docker for Mac (and, I think, Windows) are written in OCaml (or have components written in OCaml): VPNKit[0], DataKit[1] and HyperKit[2] (qcow2 support is implemented in OCaml).
0: https://github.com/moby/vpnkit https://github.com/moby/vpnkit
1: https://github.com/moby/datakit https://github.com/moby/datakit
2: https://github.com/moby/hyperkit https://github.com/moby/hyperkit
- dfee 8y agoTo be fair, GitHub attributes 1.5% of hyperkit’s code to ocaml
- djs55 8y agoThe 1.5% that's in the hyperkit repo is the shim to the Mirage block layer. The qcow2 implementation that's normally linked in is from https://github.com/mirage/ocaml-qcow https://github.com/mirage/ocaml-qcow .
- pjmlp 8y agoThey are taken from MirageOS. https://blog.docker.com/2016/05/docker-unikernels-open-source/ https://blog.docker.com/2016/05/docker-unikernels-open-sourc...