Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  > OCaml has the advantage of offering very good performance
  > while not having to deal with the borrow checker
My understanding was that OCaml had no support for parallelism -- so a single core is all you get. Is that not the case?


OCaml does have concurrency and parallelism support, but it has a GIL so their effectiveness is somewhat limited unless you go multiprocess.

I believe there are serious efforts towards removing the GIL these days.


No. It does support parallelism and concurrency.

The biggest issue is that the runtime still has a global lock, but it is in the process of being removed.


That's true, though through Lwt (and Core.Async) it has good support for concurrency. However, the work on the parallel runtime seems to progressing at a steady pace, so parallelism is coming.


Ah. Thanks for the info!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: