Y
Hacker News
new
|
ask
|
show
|
jobs
by
chrisseaton
2412 days 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.
1 comments
mister_hn
2411 days ago
O(1) as implementation time maybe, but as performance time is O(n)
link
chrisseaton
2411 days ago
I 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).
link