Hacker News new | past | comments | ask | show | jobs | submit login

That 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.



Forks on windows works in ocaml?


Nope, but you can use Unix.create_process. Which is admittedly not as convenient, but that's Windows for you.


fork() 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.


But the OCaml documentation for 'Unix.fork' says that it's not implemented on Windows. It doesn't mention any other OS.


I 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: