News for hackers. Stuff that matters.
Re:Multicore OCaml: April 2021 by toolslive on Thursday May 13, 2021 @12:04PM (#27143703)
thx! Another question. Suppose you're starting from scratch, is it worth going the effects based async io route ? https://github.com/kayceesrk/ocaml-aeio seems very interesting...
Re:Multicore OCaml: April 2021 by kcsrk on Friday May 14, 2021 @12:00AM (#27150545)
Yes, exactly. The reason why monadic concurrency libraries such as Lwt and Async is that the OCaml language does not support concurrency natively. If it did, we would have built something similar to the `ocaml-aeio` library.

Btw there is a modern instantiation of `ocaml-aeio` called `eieio` [1] which supports Linux's io-uring. Eventually, this will be extended to support all the modern I/O stacks on different platforms, and also support performing I/O on multiple cores.

[1] https://github.com/ocaml-multicore/eioio