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

Yes:

* multiple processes (there are a few libraries that can help make it easier)

* I/O concurrency with cooperative threads library: Equeue, Lwt or Async

* you could also use the built-in Thread module for I/O concurrency but the overhead will likely be higher

* you can execute C code in multiple threads in parallel, only OCaml code is limited to a single thread (due to the global lock)



What are those libraries for multiple processes under Ocaml?

I could google but I'm fishing for your recommendations as well.


Functory, OCamlMPI and Netmulticore (part of OCamlNet). I haven't actually used any of them though, I'm quite happy with Lwt for now.




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

Search: