Re:OCaml for the Skeptical: OCaml in a Nutshell (2006)
by dwohnitmok on Sunday August 02, 2020 @06:10PM
(#24032216)
OCaml's compile speed is very very fast. I think it's actually quite a bit faster than Go's compile speed.
Re:OCaml for the Skeptical: OCaml in a Nutshell (2006)
by smabie on Sunday August 02, 2020 @03:39PM
(#24031035)
I've never used F# in any serious capacity, but OCaml compilation time is really fast. Ocaml multicore is going to drop soon, so mainline OCaml should finally have a real concurrency story soon. The effects system looks pretty interesting.
Re:OCaml for the Skeptical: OCaml in a Nutshell (2006)
by scns on Monday August 03, 2020 @04:48AM
(#24035420)
It has concurrency allready, LWT and a solution from Jane Street. Parallelism is dropping soon.
Re:OCaml for the Skeptical: OCaml in a Nutshell (2006)
by yawaramin on Sunday August 02, 2020 @07:55PM
(#24032818)
OCaml has really good libraries for concurrency–e.g. check out https://github.com/ocsigen/lwt
There is a GIL (like Node/Python) that means only one thread runs at any moment in time, but multiple threads can still be started. Lwt's Promise abstraction is very similar to Node's, except it's at the library level, not at the runtime level.
Is the edit/compile/run cycle faster than F#? If either OCaml or F# produce a sufficiently fast program which compiles faster?
Also how seamless is multithreaded operations compared to F#? I have some limited experience with F# (on Mac) and the biggest drawback was getting the environment correctly set up after which most everything seemed very natural.