11 ms·
Maybe. Java is quite fast, but for very different reasons than APL; I don't think it would transfer that easily. Part of the reason APLs are so fast is becaus
by earenndil 7y ago
Maybe. Java is quite fast, but for very different reasons than APL; I don't think it would transfer that easily. Part of the reason APLs are so fast is because the interpreter and all the code fit in cache; my copy of k is 76kb. I don't think there's a chance you could get that with the jvm. APL also relies heavily on SIMD, and I don't know how well-supported that is on the JVM.
- gmfawcett 7y agoGranted, those are fair points. My copy of J is 42KB, so I understand where you're coming from. :) There's some support for vectorization in the JVM, e.g. [1, 2], but I suspect it's hit-or-miss. [1] https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6340864 https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6340864 [2] https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7192383 https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7192383