So, why do I want to learn this, rather than, say, Go or Elixir?
So, why do I want to learn this, rather than, say, Go or Elixir?
http://ocsigen.org/lwt/2.5.1/manual/
Also, for parallelism, elsewhere in this thread this link was shared:
Also, what's a convincing concurrency story? Does multiprogramming count?
A version of OCaml offering a similar "concurrency story" would have a lot of appeal.
But if you want POSIX threads and lightweight threads for the sake of it, then there are several lightweight threads libraries for ocaml (LWT being the most common one). POSIX threads you have to do from C though.
- Type system -> OCaml is more modern (despite being designed before Go)
- Concurrency, parallelism, garbage collector, tooling -> Go is more modern (Reason is improving the tooling with refmt for example; work is ongoing on parallelism)
Go easily achieves GC latencies well below 10 ms, even for programs using a large heap, without having to manually "tune" the GC.
https://blog.golang.org/go15gc
https://talks.golang.org/2015/go-gc.pdf
Go 1.5 concurrent garbage collector pacing, https://docs.google.com/document/d/1wmjrocXIWTr1JxU-3EQBI6BK...