Hi @Luc_ML,
If I may, I feel that youâre not acting in good faith and that your tone is a bit assertive. You may not share the vision, experience, or needs of other people, and even if everyone is opinionated in their own ways, in my experience tooling developers and documentation writers in the OCaml community work hard to accommodate for all use-cases. The beginner experience has also greatly improved in the past decade. I think youâve encountered a few setbacks (and I empathize with you!) and now youâre sharing a bit of frustration and hostility.
I was part of the team that created the Docker images, so I may be a bit biased, but when I follow the link that @shonfeder shared, I very clearly get the following note:
The following repositories are no longer updated: ocaml/opam2, ocaml/opam2-staging, ocurrent/opam and ocaml/ocaml. To get the latest and greatest images use this repository (ocaml/opam).
when I follow a link to any of the deprecated repositories, I get:
Deprecated. Use ocaml/opam - Docker Image instead.
We needed to keep these repositories around for compatibility, but it could be possible to remove them now that quite some time has elapsed.
Just for an OCaml docker image, there are too many choices, while one pointer to a single recommended docker image is enough (image continuously updated).
A very very limited number of options may be proposed, such as âubuntu or debian or alpineâ if itâs presented as NOT necessary but a pure option (say, not to upset a debian user because of ubuntu).
I beg to differ, your use-case is not the same as everyone elseâs. The images cover a wide range of systems (Linux distributions, macOS, *BSD, Windows), on many architectures (amd64, aarch64, risc-v, x86, power). This helps asserting correctness and portability of OCaml packages, and has been an invaluable tool in improving the ecosystem. For instance, I was able to debug a packaging issue of an old version of Merlin for OCaml 4.07-4.13 a few weeks ago by simply spawning one of these images.
Note that there is indeed a pointer to a recommended Docker image:
The latest tag is the latest release of OCaml running on the latest version of Debian (Debian is used as it has the widest architecture support for OCaml).
The Windows experience with OCaml was notoriously a difficult one, but it has immensely improved. As mentioned, winget install opam really is enough to have a working installation of OCaml on Windows. I fear that youâre putting too much weight on the OCaml tooling when youâre also complaining about the limitations of the external tools. Note that there are also OCaml Docker images for Windows.
In Win, how do you configure automatic env setup ?
Youâre looking for how to set up a profile for your shell. After a bit of search, It seems hard to achieve with cmd but doable with PowerShell.
Youâre complaining about the default structure of OCaml projects. I did share the skepticism at first, but Iâve encountered a few projects distributing executable and libraries in the same repository, and Iâve learned to appreciate the separation of lib/ and bin/ directories. The default structure doesnât matter much once the project grows in complexity. As mentioned, you can always rename these files, the proposed naming is arbitrary.
Cheers.