Earlier quoted context omitted.
There are several issues with "Batteries Included" ecosystems (like Python, C#/.NET, and Java): 1. They are not going to include everything. This includes things like new file formats. 2. They are going to be out of date whenever a standard changes (HTML, etc.), application changes (e.g. SQLite/PostgreSQL/etc. for SQL/ORM bindings), or API changes (DirectX, Vulcan, etc.). 3. Things like data structures, graphics APIs…
"Batteries included" means "ossification is guaranteed", yah. "stdlib is where code goes to die" is a fairly common phrase for a reason. There's clearly merit to both sides, but personally I think a major underlying cause is that libraries are trusted . Obviously that doesn't match reality. We desperately need a permission system for libraries, it's far harder to sneak stuff in when doing so requires an "adds dangero…
Axios compromised on NPM – Malicious versions drop remote access trojan
711–720 of 894 posts
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#712Earlier quoted context omitted.
Leap seconds are their own nightmare. UNIX time ignores them, btw, so that the unix epoch is 86400*number of days since 1/1/1970 + number of seconds since midnight. The behavior at the instance of a leap second is undefined.
That's a good way of describing that. It's far too easy to pretend UNIX timestamps would correspond to a stopwatch counting from 1/1/1970.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#713Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#714Earlier quoted context omitted.
Why not just release escrow? If I try to push a new release version another developer or developers have to agree to that release. In larger projects you would expect the release to be coordinated or scheduled anyways. Effectively we're just moving "version pinning" or "version delay" one layer up the release chain.
A lot of libraries are maintained by a single person.
There are no perfect solutions; but, let's be reasonable.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#715Earlier quoted context omitted.
Hm, I don't think axios would do much better here. `fetch` is the official replacement for axios. If both are flawed that's another topic
> `fetch` is the official replacement for axios. No. Axios is still maintained. They have not deprecated the project in favor of fetch.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#716Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#717Earlier quoted context omitted.
> In practice you will tend to have a few, but you won't be vendoring out critical things like HTTP, TCP, JSON, string sanitation, cryptography Unless you are Python, where the standard library includes multiple HTTP libraries and everyone installs the requests package anyways. Few languages have good models for evolving their standard library, so you end up with lots of bad designs sticking around forever. Libraries…
> Few languages have good models for evolving their standard library Can you name some examples?
(Please do correct me if this is wrong, again, I don't have the experience myself.)
[1] https://pkg.odin-lang.org/
[2] https://www.gingerbill.org/article/2025/09/08/package-manage...
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#718Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#719Earlier quoted context omitted.
I'm old enough to remember computers being pitched as devices that can do tedious math for us. Now we have to do tedious math for them apparently.
Hey that's a great joke, you made me spill my morning home-brewed kombucha. I'm going to steal that one for my JavaScript monthly developers meetup. Is it ok if I attribute it to "Xirdus on Hacker News"?
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#720Earlier quoted context omitted.
I'm old enough to remember computers being pitched as devices that can do tedious math for us. Now we have to do tedious math for them apparently.
I'm sure you would like to memorize all kinds of API instead of having something idiot proof and straightforward