Hacker Newsnew | past | comments | ask | show | jobs | submit | kgryte's commentslogin

Here's a reflection from one of the study's participants, which covers some of the common criticisms and where he see opportunities for further study.

https://blog.stdlib.io/reflection-on-the-metr-study-2025/


For an example of using stdlib in Observable, see here: https://beta.observablehq.com/@kgryte/stdlib-real-time-k-mea.... Other notebooks can be found here: https://beta.observablehq.com/collection/@kgryte/stdlib.


Re: native vs JS. I'd say it depends. For certain implementations, such as operations on large arrays, native implementations can provide performance benefits (see https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...). However, for other implementations, including common mathematical functions, implementing them in pure JavaScript can be more performant when running in Node.js, as you do not need to cross from JS to C/C++ (see https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...). Lastly, even if functionality is backed by native code, would still need JavaScript fallbacks in order to, e.g., allow for bundling and use in non-Node.js environments.


Notable exceptions are R, Julia, MATLAB, Mathematica, etc. Namely, environments/languages which focus on numerical and scientific computing applications. One of the project's goals is to provide similar functionality on the web and in Node.js as those environments. Accordingly, in order to realize that goal, one needs to offer quality ("standard") implementations for doing mathematical operations (see https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...).

Aside: calling the library "essentially a statistics toolkit" is a mischaracterization given that the bulk of available functionality is not statistics. For example, lodash/async style utilities (https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...), iterator utilities (https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...), assertion utilities (https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...), benchmark framework (https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...), etc. While certainly a WIP, might prove informative to peruse: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo....


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: