3 ms·
This sounds like APL would benefit from a JIT runtime, which is a well-established technique in other performance-focused languages. You get all the benefits of
by electroly 5y ago
This sounds like APL would benefit from a JIT runtime, which is a well-established technique in other performance-focused languages. You get all the benefits of tracking types and other data at runtime while also gaining the benefit of a compiled language.
- mlochbaum 5y agoYes, the idea described in the last paragraph could be called an array JIT. Much like a static APL compiler requires specialized type and shape handling, an APL JIT would need some new techniques for deciding when to compile things, what assumptions to make, and how to check them. My more detailed notes are at https://mlochbaum.github.io/BQN/implementation/compile/dynamic.html https://mlochbaum.github.io/BQN/implementation/compile/dynam....