3 ms·
OCaml delivers better performance? It was my impression that they're currently neck-and-neck, and the current Go compiler does pretty much no optimization. Tha
by supersillyus 15y ago
OCaml delivers better performance? It was my impression that they're currently neck-and-neck, and the current Go compiler does pretty much no optimization.
That aside, personal preference is a one reason to choose Go over OCaml. I happen to like Go's syntax better, and I rather like the design of various bits of the language.
Go also has better concurrency support.
Also, for some tasks it can be quite useful to be able to control the memory layout of your data structures, and (to my knowledge) OCaml can't do that.
There are other points to make on both sides, but really, it's a tricky question. Which langauge is best is a per-task and per-person question, so unqualified comparisons aren't terribly useful.
- sambeau 15y agoThere are two Go compilers gc and gccgo. gc is based on the Plan 9 C compilers and has very little optimisation; gccgo is a front-end to gcc and as such has all of its optimisation. gcc's concurrency support is thread-based so slower than gc's which is coroutine based. tl;dr: gc: slower code, faster concurrency. gccgo: faster code, slower concurrency.