4 ms·
What's the current state of OCaml regarding parallelism & concurrency? Is it like Node.js where I have single threaded async/await model or do I have access to
by valcron1000 4y ago
What's the current state of OCaml regarding parallelism & concurrency? Is it like Node.js where I have single threaded async/await model or do I have access to parallelism?
- masklinn 4y agoOCaml is more like Python in that it has true OS threads, but it has a GIL (it also has an async ecosystem via `lwt` and `Async`). This will change when OCaml 5 is released, though it is likely that will require test driving and fixes in both ocaml itself and the ecosystem. Multicore OCaml was merged in PR #10831, and 5.0 was originally targeted to be cut in March or April 2022, but it seems there are still blockers: https://github.com/ocaml/ocaml/milestone/40 https://github.com/ocaml/ocaml/milestone/40
- pjob 4y agoMulticore support announcement: https://discuss.ocaml.org/t/the-road-to-ocaml-5-0 https://discuss.ocaml.org/t/the-road-to-ocaml-5-0 Latest monthly update: https://discuss.ocaml.org/t/multicore-ocaml-march-2022 https://discuss.ocaml.org/t/multicore-ocaml-march-2022 Github for the multicore project: https://github.com/ocaml-multicore/ocaml-multicore https://github.com/ocaml-multicore/ocaml-multicore