When I got started in OCaml, my setup was basically a dual boot of Windows 11 and Ubuntu. I had a few issues setting up OCaml on windows at the time and started looking up WSL and if it was a good alternative (I really disliked having to dual boot always). So I wrote this article detailing exactly how I setup OCaml on WSL and have been using it for the past 12 months with no issues. So if you are looking to get started with programming in OCaml on windows, this article is for you.
How to setup OCaml on Windows with WSL
Note:
opam 2.2 makes it a breeze using OCaml on windows natively so if you are particularly interested about using OCaml without WSL you should check it out.