Re:Adapting the OCaml Ecosystem for Multicore OCaml
by dwohnitmok on Tuesday August 31, 2021 @05:04PM
(#28373650)
What's the OCaml community's perception on when multicore will fully land in trunk?
[ Parent
| on HN ]
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by rbjorklin on Tuesday August 31, 2021 @05:52PM
(#28374154)
My understanding is that 4.14 is scheduled for Q1 2022 and 5.0 with multicore _might_ be released roughly in parallel.
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by amelius on Tuesday August 31, 2021 @07:20PM
(#28374795)
Are there any benchmarks? Comparisons to other multicore runtimes, like GoLang's?
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by Zababa on Tuesday August 31, 2021 @07:31PM
(#28374875)
I remember seeing a graph where http/af, a http server, was close to Go net/http. I'll try to run https://github.com/ocaml-multicore/retro-httpaf-bench and report back. I also found another graph, but I'm too colorblind to read it properly https://user-images.githubusercontent.com/554131/131155247-f....
Edit: the benchmark fails to build
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by amelius on Wednesday September 01, 2021 @10:21AM
(#28380196)
Top two lines are httpaf_eio and rust_hyper.
Next two lines are httpaf_effects and httpaf_lwt.
Bottom two lines are nethttp_go and cohttp_lwt_unix.
All in order from top to bottom.
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by Zababa on Wednesday September 01, 2021 @10:34AM
(#28380354)
Thank you very much!
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by erk__ on Wednesday September 01, 2021 @06:34AM
(#28378181)
Yeah the colors are really not great for color blind people, I rather have some symbols or similar on them
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by Zababa on Wednesday September 01, 2021 @07:56AM
(#28378681)
That's one of the small things I like about more complex charts (more complex than a picture): I can usually hover over the chart to see the label.
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by kcsrk on Tuesday August 31, 2021 @11:51PM
(#28376258)
We don't compare against Go pervasively. Benchmarking across languages is hard generally, but here is a result on a specific benchmark comparing several versions of OCaml benchmarks against Go and Rust on a Http server benchmark: https://github.com/ocaml-multicore/retro-httpaf-bench/pull/1....
If there are suggestions to make the Go and Rust versions, please feel free to tell us how in the issue tracker.
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by sadiq on Wednesday September 01, 2021 @04:00AM
(#28377392)
Our paper from ICFP last year has extensive benchmarks against stock OCaml: https://arxiv.org/abs/2004.11663
In short there should be very little performance difference against stock.
As KC has linked in a sibling comment there's a project going to explore using effects to write high performance IO libraries and that has some early benchmarks.
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by yawaramin on Tuesday August 31, 2021 @09:15PM
(#28375514)
Yes, check out https://watch.ocaml.org/videos/watch/playlist/7a4ad26a-b8c5-... for some interesting comparisons.
Re:Adapting the OCaml Ecosystem for Multicore OCaml
by yawaramin on Tuesday August 31, 2021 @06:58PM
(#28374642)
Heh.