News for hackers. Stuff that matters.
Re:Fantasy World OCaml (2013) by logicchains on Sunday August 03, 2014 @01:43AM (#8127182)
You can still call Unix.fork, and do threading the C way, although obviously it's not as convenient as real threading support.

Here's an interesting page discussing the current effort to develop a multicore runtime: https://github.com/ocamllabs/compiler-hacking/wiki/Multicore...

Re:Fantasy World OCaml (2013) by jeffreyrogers on Sunday August 03, 2014 @12:14PM (#8128298)
That's a good point, and one I hadn't thought of. I wonder what it would take to wrap Unix.fork into a threading library to make threads more convenient?
Re:Fantasy World OCaml (2013) by logicchains on Sunday August 03, 2014 @09:35PM (#8129859)
There are apparently some such libraries already. I haven't used any, but they seem to all use process-level threading; there's no lightweight threading library (like Lwt) that uses real threads. Actually, I'm wrong; turns out it is possible to delegate Lwt threads to system threads: http://ocsigen.org/lwt/api/Lwt_preemptive. This model doesn't seem to allow communication between them, however.

1.http://projects.camlcity.org/projects/dl/ocamlnet-3.3.0test1...

2.http://www.dicosmo.org/code/parmap/

3. https://github.com/UnixJunkie/ocamlmpi

4. https://github.com/MyLifeLabs/nproc