Hacker News new | ask | show | jobs
by edwintorok 1638 days ago
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)
1 comments

RPC is dramatically less powerful than than FFI. No sharing of state is a serious limitation.
There are ways to share state over RPC.