Hello, I have been spending time improving the Dune documentation on Coq support. There is currently a PR open: https://github.com/ocaml/dune/pull/5755. I would appreciate any comments. :)
I thought "composition" was a dune idiom but now that I try to look it up in the documentation I only see the word used in the context of Coq, and not defined anywhere. What does "composition" actually mean, e.g., in "we only support composition with libraries defined in the same scope..."?
You can compose descriptions of builds before starting the build
so if you have libraries A B C, with deps A <- B <- C, you can ask to build a file in C
and dune will only build files in A and B as needed
so if you build everything in parallel, dune won't wait to be done with A and B before starting C
with full support for composition (which is there for OCaml), library A can be installed instead of part of your source tree.
this begs questions such as "what's the dune jargon for 'source tree'" and "what's the English name for dune's 'scope'"
Li-yao said:
I thought "composition" was a dune idiom but now that I try to look it up in the documentation I only see the word used in the context of Coq, and not defined anywhere. What does "composition" actually mean, e.g., in "we only support composition with libraries defined in the same scope..."?
I wrote a nice long reply to Jim who had the same question here: https://github.com/ocaml/dune/pull/5755#issuecomment-1143503764
Last updated: Jun 03 2023 at 15:31 UTC