5 ms·
5-10 years ahead? So they introduced multiprocessor support in like 2006? (taking c++ 11 as a reference point). That would have been pretty awesome.
by andi999 5y ago
5-10 years ahead? So they introduced multiprocessor support in like 2006? (taking c++ 11 as a reference point). That would have been pretty awesome.
- yawaramin 5y agoThat sounds about right, given that you can do multiprocessing pretty easily in OCaml by forking. They even provide a convenience function directly in the standard library, Unix.establish_server, that forks a new process to handle requests.
- andi999 5y agoForks on windows works in ocaml?
- yawaramin 5y agoNope, but you can use Unix.create_process. Which is admittedly not as convenient, but that's Windows for you.
- pjmlp 5y agofork() if a POSIX thing, and Windows is not the only non-POSIX OS around. Also fork() doesn't work consistenly across POSIX implementations regarding threads and signals.
- yawaramin 5y agoBut the OCaml documentation for 'Unix.fork' says that it's not implemented on Windows. It doesn't mention any other OS.
- pjmlp 5y agoI don't care about OCaml documentation, my point was about "Which is admittedly not as convenient, but that's Windows for you.", and UNIX versus other platforms in general.