3 ms·
Honestly I think it’s much better to optimize for the native use case rather than FFI. FFI can pervade an ecosystem making changes (including performance optim
by throwaway894345 4y ago
Honestly I think it’s much better to optimize for the native use case rather than FFI.
FFI can pervade an ecosystem making changes (including performance optimizations) to the host language more difficult. It also tends to complicate build and deployment stories. For example, from my Mac I can trivially build a native binary that will Just Work on any Linux system, even one without a libc. Contrast that with Python where I can’t even install popular packages onto most non-Ubuntu Linux distros. And there’s a lot of other things like that which crop up with pervasive FFI.
I’m convinced that the FFI sweet spot is “difficult but possible” and native performance should be good enough 99% of the time.