OCaml Package Management with (only!) Dune
summary
Dune now solves and installs OCaml dependencies itself, pulling from the opam repo of ~4.5k packages and even building a compiler when needed; a demo builds a Hello World and a Dream web server, installs ocaml-lsp and ocamlformat via `dune tools install`, and uses per-package lock directory pinning to run a patched Dream on port 8081. The lock is currently nonportable by default, Dune package management runs on Linux/macOS only, and a few packages (including Dune itself) fail due to benign circular-dependency handling.
AI-written summary · about
chapters (5)
- 0:00OCaml package management intro
- 2:29Dune package management demo
- 10:07Lock directories in Dune
- 18:51How Dune package management works
- 27:41Dune package future & Q&A
related talks
22mState of the OCaml Platform 2023
43mOCaml at LexiFi
22mProject-wide occurrences for OCaml, a progress report
19mHomogeneous builds with OBuilder and OCaml
17mMemo: an incremental computation library that powers Dune
17mSupporting a decade of opam
26mBuck2 for OCaml Users & Developers
20mLess Power for More Learning: Restricting OCaml Features for Effective Teaching
