Re:Babel is used by millions, so why are we running out of m...
by Saint_Genet on Tuesday May 11, 2021 @02:49AM
(#27114963)
Saying you're used by millions when you're a javascript library is a bit disingenuous. It's not like whoever happens to hit a website using your scripts is a user in the common sense of the word.
[ Parent
| on HN ]
Re:Babel is used by millions, so why are we running out of m...
by franciscop on Tuesday May 11, 2021 @02:56AM
(#27115020)
They explain in the article that they get downloaded 117 millions of times per month from npm. When someone visits a website they don't download libraries from npm, those download numbers come from developers and build scripts but not from users.
So while it can be argued that a percentage of those 117M/month are on automated scripts, even with a very conservative number saying of 1% of them being genuine installs this still leaves them at millions of installs per year. So yes, it's definitely not disingenuous to say it's used by millions.
Re:Babel is used by millions, so why are we running out of m...
by timkam on Tuesday May 11, 2021 @02:55AM
(#27115007)
They have more than 20 million weekly downloads on npm: https://www.npmjs.com/package/@babel/core, i.e., they are probably used by at least hundreds of thousands, if not millions of developers (not to speak of end-users).
Of course, in the JavaScript ecosystem, the same may be true for a 20 LoC package that provides a trivial function implementation, but that's a different story.
Re:Babel is used by millions, so why are we running out of m...
by rplnt on Tuesday May 11, 2021 @03:03AM
(#27115068)
That's not a different story, that's precisely why you can't make that assumption. Many projects would download it over and over for each commit in their CI. The package also has 14k direct dependents, making it quite likely to be downloaded more than once for each project.
With this, it's not that unlikely that one company (one customers) downloads the package thousands of times a week.
Re:Babel is used by millions, so why are we running out of m...
by Jweb_Guru on Tuesday May 11, 2021 @03:10AM
(#27115129)
You realize that a project with 14k direct dependents is obviously hugely widely used, right? And that's not even considering that the intended usage of babel is for compiling end applications (many of which are not open source), not libraries; this is likely undercounting the number of "real" projects using it by several orders of magnitude.
Re:Babel is used by millions, so why are we running out of m...
by rplnt on Wednesday May 12, 2021 @04:36AM
(#27128099)
I'm not arguing that it's not widely used. Just that you can't do XX million downloads equals X million users.
Re:Babel is used by millions, so why are we running out of m...
by timkam on Tuesday May 11, 2021 @08:37AM
(#27117321)
If you only look at the numbers it's the same story, but with some knowledge of the JavaScript ecosystem, it's arguably unreasonable to claim that babel is just a random, trivial package that is pulled in as an arbitrary dependency.
Re:Babel is used by millions, so why are we running out of m...
by JokerDan on Tuesday May 11, 2021 @02:56AM
(#27115019)
Possibly, but at the same time I am fully aware that babel is used in almost all of the frontend nodejs projects I have been involved with. It isn't something hidden away, it's something you set up for a new project or likely see/configure a little from a templated/skeleton project.
So even from a development point of view, not an end user, I don't think its a far stretch to 'being used by millions of developers, and they know it is being used'.
Re:Babel is used by millions, so why are we running out of m...
by MrRiddle on Tuesday May 11, 2021 @02:53AM
(#27114987)
Babeljs has ~29 million weekly downloads via npm. If users counted it would probably be billions.
Re:Babel is used by millions, so why are we running out of m...
by _pdp_ on Tuesday May 11, 2021 @03:04AM
(#27115071)
Yah that includes also any random automated job too… and there are many of them.
Re:Babel is used by millions, so why are we running out of m...
by alpaca128 on Tuesday May 11, 2021 @03:12AM
(#27115156)
Even if those 29 million weekly downloads were all automated it would still imply 29 million users have setup automated jobs for building software with Babel.
Re:Babel is used by millions, so why are we running out of m...
by physicsguy on Tuesday May 11, 2021 @04:12AM
(#27115513)
No it doesn't. For e.g. how many stupid CI pipelines are set up to download it on every run? You could easily be 2 or 3 orders of magnitude out on actual number of direct users.
Re:Babel is used by millions, so why are we running out of m...
by HajiraSifre on Tuesday May 11, 2021 @03:25AM
(#27115255)
That does not follow.
There are definitely many CI pipelines that download all packages every time they're triggered. For those pipelines you'd be looking at tens of installs per day (or more).
Re:Babel is used by millions, so why are we running out of m...
by matzab on Tuesday May 11, 2021 @03:07AM
(#27115104)
I'd say that also counts as "using it".
Re:Babel is used by millions, so why are we running out of m...
by mirekrusin on Tuesday May 11, 2021 @03:09AM
(#27115123)
And doesn’t include cache hits.