Hacker News new | ask | show | jobs
by Ericson2314 1639 days ago
Pure naked grab at more users. I don't mean to imply there any anything better about Go's runtime at all.
3 comments

In any case, if a large number of users is what you're after, you'd target Java ( http://www.ocamljava.org/ ) or JavaScript ( https://rescript-lang.org/ , http://ocsigen.org/js_of_ocaml/latest/manual/overview ).
Yes, those are fine ones to do too.
In that case interoperability with Go libraries might be better: just running on the same runtime wouldn't bring many advantages (other than having a single GC instead of 2) without being able to easily call libraries written in another language. (Although TBH I'd run them as 2 separate processes and have them communicate via some form of RPC, OCaml would just need good integration with <insert-favourite-GO-rpc> protocol)
RPC is dramatically less powerful than than FFI. No sharing of state is a serious limitation.
There are ways to share state over RPC.
Agree. If Ocaml add 10 more users, it would more than double its users in the world. Also it is never too late to remind everyone again that JaneStreet uses Ocaml. If Go were any good JS would have used that.