34 ms·
This is an O(1) solution (one integration works for all languages). You're proposing an O(n) solution (binding into individual languages.) That's why.
by chrisseaton 7y ago
This is an O(1) solution (one integration works for all languages). You're proposing an O(n) solution (binding into individual languages.) That's why.
- mister_hn 7y agoO(1) as implementation time maybe, but as performance time is O(n)
- chrisseaton 7y agoI don't think GraalVM polyglot interop is O(n). It uses multi-dimensional polymorphic inline caching (dispatch chains) which specialises for the number of languages using it, and so the interface between two languages is O(1).