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.
2
1
Mercury in the wild! What a rare and splendid butterfly :)
1
1
funnily enough, a colleague is currently working through a moded interpreter for a little logic language at work. still takes a mental shift to remember that logic variables are Not The Same.
1
1
Yeah, I'm mostly working on Rust work, but I'm learning a bunch. Cool to see how natural deduction rules (from type theory) match up to the rules you write in logic programming (not perfectly, but it's an ok approximation).
1


