Hacker News new | ask | show | jobs
by jvickers 4101 days ago
It's useful having some code in JavaScript. Even if its not fast enough for some things, having a nicely organised and documented library can be very useful.

Optimizations, using Typed Arrays, could make the code considerably faster. C++ addon code could make it faster still. Intrinsics within that addon code could use SIMD. While this library certainly is a lot slower than the equivalent C or Fortran, it's got potential, and it's not something that I'd dismiss as being pointless because it's a particular thing that's written in JavaScript.

Also, in the browser, language choices are very limited. Another reason why having JavaScript code that does a variety of things (including vector maths) is useful.