4 ms·
No, not at all. Java FFI is extremely expensive.
by fnord123 7y ago
No, not at all. Java FFI is extremely expensive.
- pizlonator 7y agoYeah. And so is JS’s. I think CPython’s design makes it a champ at native interop and a loser at pure compute perf. That’s a valid trade off for lots of important situations.
- frankpf 7y agoAre you referring to V8's/Node's C FFI? Why is that extremely expensive?
- smabie 7y agoIt's not a trade-off. There's no reason why you can't have a blazing fast and expressive language that also has good C FFI. A single good programmer could make a language that was as expressive as Python (that is, not very), faster, and with a good C FFI in under 6 months.
- progval 7y agoAren't you saying it's possible to make a perfect language with no tradeoff, and all that in just 6 months?
- pizlonator 7y agoYou couldn’t be more wrong. Java and JS have expensive FFI because of the specific costs of synchronizing the VM entry/exit with the GC and JITs.