I think most devs are unreasonably averse to multi-language codebases, and overestimate how difficult it is to get different languages to communicate. Am I full of shit?
(I'm ignoring areas where multi-lang work is all-but-mandatory, like web dev.)
Conversation
I think it's not so much that it's hard to get different languages to communicate - it's difficult to make sure that the communication is safe statically.
2
5
Can also be frustrating to have to manage multiple runtimes.
1
2
right - FFI to something like C isn't too bad, it's usually tightly scoped and there isn't a heavy runtime to manage. I wrote a bridge between Ruby and Haskell back in the dark ages and I am grateful every day I never deployed it in production.
1
2
Indeed. We're doing Rust<-C->Mercury, and we don't have much trouble.
Same here with Haskell->C++, it took effort getting it working across platforms but now it's pretty turn-key.
2
Indeed! io::di, io::uo!
1
1
Show replies



