3 ms·
IPC is, I think, the concept that has been neglected and led to the desire for some kind of really intelligent FFI. If you have code in Ruby and in Julia that
by jrumbut 6y ago
IPC is, I think, the concept that has been neglected and led to the desire for some kind of really intelligent FFI.
If you have code in Ruby and in Julia that you want to mix together it's probably because both pieces of code leverage the distinct capabilities of those two languages, which have nice capabilities because they accepted very tradeoffs.
Would you really want Julia with Ruby's Number class? It would entirely kill performance. You want it to be an integer maybe, or a double, or sometimes something else. It's going to be application specific is the point, because another user want some different subset of Number's behavior. I don't think there's a shortcut here besides making a very limited or opinionated FFI system.
- nerdponx 6y agoNot necessarily. Sometimes I want to use FFI because the "hard work" (e.g. implementing a complicated protocol) was done in language A, and I want to use language B in my project, but I don't want to redo all that hard work.