3 ms·
> I'd love to see the codegen differences between the applications There are two applications, dynamic calls and dynamic casts. Dynamic casts to final classes
by sixthDot 2y ago
> I'd love to see the codegen differences between the applications
There are two applications, dynamic calls and dynamic casts.
Dynamic casts to final classes dont require to check the whole inheritance chain. Recently done this in styx [0]. The gain may appear marginal, e.g 3 or 4 dereferences saved but in programs based on OOP you can easily have *Billions* of dynamic casts saved.
[0]: https://gitlab.com/styx-lang/styx/-/commit/62c48e004d5485d4fce8e6a327ea0b67ba134b6c https://gitlab.com/styx-lang/styx/-/commit/62c48e004d5485d4f....