This is something easy enough to implement at the package level in C++ (aside from the fact distributing and installing packages in C++ isn’t easy), but would need compiler support in Julia to be performant.
That said, there are PRs like: Move small arrays to the stack by pchintalapudi · Pull Request #43573 · JuliaLang/julia · GitHub
which would help a ton of existing code, especially once the Julia compiler starts making use of escape analysis.
Immutable arrays will help there as well.
Is it possible to see performant string processing without sacrificing ease of use in Julia one day?
5 Likes