2 ms·
OCaml has really good libraries for concurrency–e.g. check out https://github.com/ocsigen/lwt https://github.com/ocsigen/lwt There is a GIL (like Node/Python)
by yawaramin 6y ago
OCaml has really good libraries for concurrency–e.g. check out https://github.com/ocsigen/lwt https://github.com/ocsigen/lwt
There is a GIL (like Node/Python) that means only one thread runs at any moment in time, but multiple threads can still be started. Lwt's Promise abstraction is very similar to Node's, except it's at the library level, not at the runtime level.