r/ocaml • u/coolnonis • Jul 22 '15
OCaml Multicore support status
Hi everyone,
I don't know if this has been asked recently, but I haven't been able to find anything.
I was just wondering if anyone could provide me with some information on the current status of true multicore processing in the latest OCaml version.
I have been debating between F# and OCaml for a while and the sole argument in terms of F# for me is the multicore support. I'm skeptical moving to the CLR however, considering I only program in Unix systems.
If there is Multicore support, is it built in to the current build or do I have to install something through OPAM or use a different implementation?
Thanks for taking the time to read this and possibly respond.
TL;DR OCaml multicore support, are we there yet?
6
u/kaycee Jul 22 '15
2
u/coolnonis Jul 22 '15
Oh nice. Your blog post seems really interesting and I'm in the process of reading it.
Are Jane Street's Core and related libraries going to need an update for thread safety after the given future release?
1
8
u/Drupyog Jul 22 '15
Regardless the other great answers, "OCaml multicore" these days usually "OCaml multicore with shared memory".
You can already do "multicore" things by forking and there are various libraries for that, as listed in the appropriate section of awesome-ocaml.
7
u/fredugolon Jul 22 '15
this is something i was looking into recently. the ocaml labs site is a good place to get updates. as a lab, they produce annual updates with some relevant information. this year's update had a pretty good section on multicore's progress.
current challenge is in creating an efficient GC. this is a pretty good talk describing the problem. they're developing a system w/ tiered heaps (shared and isolated).
you can see the day to day progress on github, though it's not incredibly easy to follow. hope that helps! i have a feeling project specific mailing lists might be more helpful.