Ocaml is not particularly fast, for a compiled language. Is Go really slower?
The compiler is fast in that is compiles code quickly, just as Go and the execution speed of produced programs are similar to Go (depending on what abstractions you use).
It seems there are a bunch of languages in the fast but not quite as fast as C/C++ category: Java, C#, Go, OCaml, SBCL (Lisp), Haskell
Re:Go 1.18
by chakkepolja on Tuesday March 15, 2022 @11:37PM
(#30695056)
(not GP)
>> fast compiler
But yeah everything is fast at runtime as well when you coming from JS and python.
Re:Go 1.18
by zinclozenge on Thursday March 17, 2022 @01:28PM
(#30713675)
Believe me, i'd love to use ocaml but the ecosystem isn't just "a bit more patchy" compared to go, unfortunately.
Insanely fast compiler. Great type system. Functional programming at its best but still relatively pragmatic and easy to mix in some imperative code if need be.
It is a bit more complicated than Go and the ecosystem is maybe a bit more patchy but other than you will have a good time.