miniblog.

← Back to all posts
38
Is there any relationship between language adoption and the size of its standard library? These days it seems completely orthogonal, but early Java adopters spoke highly of the collections library compared with C++. Maybe it's the widespread availability of package managers?

8 Comments

@wilfredh "Big standard library, no standard package manager" is a local maximum for popularity where Java sat pretty comfortably for a while. Produces a critical mass of people who all write code that looks the same.
@wilfredh Folks used to teach classes and write books; a constant stream of new innovations that people want to use makes that very difficult to keep up
If the end goal is to get things done, then a stable language with stable libraries helps, and a broad standard library can go a long way. But the overall ecosystem including documentation and tooling is probably important too. All things that are very expensive to develop
For C++, Boost covers a lot of terrain as a de facto standard library too, right? Cargo is a more decentralized version of that in a way
@wilfredh +1 for package managers Definitely a revolution. Still uncertain if copilot will be as important as package managers.
@wilfredh Python had the "batteries included" marketing slogan for a long time. A historically interesting (though rejected) PEP is perhaps the best illustration: https://peps.python.org/pep-0206/ Maybe not coincidentally, Python is also famous for its horrendous package manager ecosystem. Does any other language have a package *manager* ecosystem?
@wilfredh This tracks IMO. JavaScript has always had a tiny standard library, and it was node.js and NPM that made it really take off to the level it has. I think it’s a fair argument that NPM might have been the bigger draw, especially as people started using it for front-end libraries. (We had Bower first, but it didn’t last long.)
@wilfredh The problem with the shift towards a package ecosystem is loss of coherence. I would like to see a half-amplitude swing back to something like a freely evolving package ecosystem from which the community regularly selects particularly good or important libraries for long-term maintenance. Creating something like a standard library that's not shipped with the language.