onelinecode
stdlib
onelinecode | stdlib | |
---|---|---|
1 | 13 | |
56 | 5,027 | |
- | 3.7% | |
4.3 | 10.0 | |
about 3 years ago | 3 days ago | |
JavaScript | JavaScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
onelinecode
-
1 line of code: How to get the closest numeric item of an Array
You can find the all the utility functions from this series at github.com/martinkr/onelinecode The library is also published to npm as @onelinecode for your convenience.
stdlib
-
Google Summer of Code 2025
From integrating BLAS bindings and optimizing special mathematical functions to enhancing support for boolean arrays and improving our interactive REPL experience, their work strengthened the foundation of stdlib and paved the way for even greater advancements. Beyond just code, their contributions sparked deeper engagement within our community, leading to over 2,000 pull requests from more than 100 contributors and 3,000+ new commits to stdlib since February 2024.
-
LAPACK in your web browser
Readers of this blog who are familiar with LAPACK are likely to not be intimately familiar with the wild world of web technologies. For those coming from the world of numerical and scientific computation and have familiarity with the scientific Python ecosystem, the easiest way to think of stdlib is as an open source scientific computing library in the mold of NumPy and SciPy. It provides multi-dimensional array data structures and associated routines for mathematics, statistics, and linear algebra, but uses JavaScript, rather than Python, as its primary scripting language. As such, stdlib is laser-focused on the web ecosystem and its application development paradigms. This focus necessitates some interesting design and project architecture decisions, which make stdlib rather unique when compared to more traditional libraries designed for numerical computation.
-
The Accessor Protocol
A brief overview about stdlib. stdlib is a standard library for numerical and scientific computation for use in web browsers and in server-side runtimes supporting JavaScript. The library provides high-performance and rigorously tested APIs for data manipulation and transformation, mathematics, statistics, linear algebra, pseudorandom number generation, array programming, and a whole lot more.
-
How to call Fortran routines from JavaScript with Node.js
For more details on how we author Node-API native add-ons and leverage macros and various utilities for simplifying the add-on creation process, the best place to start is by browsing stdlib source code. For the examples explored in this post, we've brushed aside some of the complexity in ensuring cross-platform configuration portability (looking at you Windows!) and in specifying compiler options for optimizing compiled code. For those interested in learning more, you'll find many more examples throughout the codebase, and, if you have questions, don't be afraid to stop by and say hi! 👋
-
Node still seems better than python after all this time for web server speed but..
Numpy is a library - node.js has plenty of them, what is missing? There is stdlib package that offers optimized math functions, for example.
-
Servo, the parallel browser engine written in Rust
Websites do the same thing as 15 years ago? Not true, websites can now exceed desktop apps. Was their figma 15 years ago?
20 times more complex - this comes with doing more. 15 years ago there was no CI/CD.
Write CSS - don’t have to given Sass, components, and bootstrap.
Performance is worse - look at v8 benchmarks, look at webgl and Wasm. The browser itself can run much faster today, and people are doing more with it.
JS barebones - just one package. https://github.com/stdlib-js/stdlib. - and the node ecosystem is a feature not a bug.
Look elsewhere - every other UI framework we’ve tried before has been worse in terms of compatibility, functionality, flexibility, and available prebuilt tooling.
-
“True” Randomness vs. “Pseudo” Randomness
two of the best PRNG libs for JS/TS: https://github.com/transitive-bullshit/random and https://github.com/stdlib-js/stdlib
- Bun v0.5
-
my thoughts about Node as a backend
Scientific calculations - like what? There is a stlib package for JS where CPU hungry parts are written in C.
-
What convenience libraries are must use?
lodash and lodash-es for browser are good, check out also stdlib
What are some alternatives?
embidify - A Discord embed builder with Svelte and tailwind css [GET https://api.github.com/repos/ilovebewbs/embidify: 404 - Not Found // See: https://docs.github.com/rest/repos/repos#get-a-repository]
nanocolors - Use picocolors instead. It is 3 times smaller and 50% faster.
intersectionObserverApi - Basic examples created in React using the intersection observer API
num2math - Complicated math expression generator
aPulse - A One-File Nodejs Server Status Monitoring Tool.
colorette - 🌈Easily set your terminal text color & styles