functional programming - Why OCaml's threading is considered as `not enough`? -
it seems many people saying ocaml not have capacity concurrency , not web server applications.
i learning ocaml's manual. seems ocaml provide concurrency now.
can know why ocaml's concurrency/threading considered bad?
can develop server application in ocaml? problems may meet?
see concurrency vs. parallelism — what's difference?. ocaml's threads offer concurrency, can have next function start before previous 1 finished. ocaml not offer parallelism, when second function starts, first 1 has put on hold. 2 threads cannot run simultaneously, multiple cpu-bound computations in process block each other, , can't max out cpu cores in 1 process.
that's people's beef ocaml's threading. mean can't use ocaml server? no. it's have take account in server design, it's not showstopper. heck, node.js straight-up single-threaded, yet main purpose creating servers.
Comments
Post a Comment