Live data from Hacker News

Disabling npm's progress bar yields a 2x npm install speed improvement

twitter.com

141–150 of 187 posts

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#141
post #9

Progress bar or not, npm has gotten extremely slow with v3, to the extent that someone is working on a performance-centered alternative called ied: http://gugel.io/ied/ installs are literally the #1 thing npm needs to do well, and I really hope we see some improvement soon.

There is also JSPM and Systemjs - works great in production.

https://github.com/jspm/jspm-cli/issues/675

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#142
post #74

Earlier quoted context omitted.

That's frustrating, I got bitten by that a couple of times. I'm wondering when will they add a LOCKFILE like every other build system out there :'(

I agree, but I'm curious what other build systems have a lock file? Ruby does through bundler, who else does this right? I can't think of any.

And it's so awesome when you discover devs have used lockfiles to leave you stuck on known-insecure gems instead of updating their fucking code to support the newer patched version.

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#143
post #139

Earlier quoted context omitted.

> What you have to do is create a thread [...] A thread? But that'll never scale!

you dont need a cluster to display GUIs.

are you sure? it might be a really big screen!

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#144
post #74

Earlier quoted context omitted.

I agree, but I'm curious what other build systems have a lock file? Ruby does through bundler, who else does this right? I can't think of any.

And it's so awesome when you discover devs have used lockfiles to leave you stuck on known-insecure gems instead of updating their fucking code to support the newer patched version.

Which is still better than having your server crash due to a bug in a dependency of a dependency that got updated without your knowledge when you deployed something trivial. It has happened to be more than once.

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#145

Earlier quoted context omitted.

You're not being charitable enough to the comment... you two are in completely agreement with one another if you only changed the meaning of the word "main". It's clear the grandparent meant "the thread that's doing the work."

It's really difficult to get to that meaning, because "main thread" is what you call the thread where main() is invoked and which is where all the GUI calls must happen. You can't use a common term in context to mean something different from its common meaning and expect people to follow.

And yet it was perfectly obvious what was meant. If you just assume the person who made the comment is not stupid/rambling (difficult concept, I know...) it is not difficult to get the meaning at all.

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#146

Earlier quoted context omitted.

If you want to do this in ruby you can just specify a version manually. If you don't, you still get versions frozen by default with Gemfile.lock. It doesn't pull in anything automatically—by default you get no updates, you can choose to update a single dependency, or the whole thing if you want to verify it works on the latest (useful for libraries for instance). I'm not sure I see the downside. FWIW I have been doin…

> I hold up Bundler as one of the great success stories of open source It's a great success in many ways, but the problem it solves is completely self-inflicted by rubygems. I've also been doing Ruby for over a decade, but I've also learned a lot from other library ecosystems, and I feel pretty confident saying that disallowing version ranges makes all those headaches completely evaporate.

I'm with you that version ranges cause problems, but my belief is that lockfiles are a better solution.

Generally I'd use semver ranges in libraries, and then fixed versions + lockfiles for transitive deps in applications.

I suppose this is roughly equivalent to doing `:pedantic :abort` in leiningen, except you wont't have as many warning to squash - either way you have to rely on the test suite to tell you if the versions you've pegged work.

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#147
post #139

Earlier quoted context omitted.

> What you have to do is create a thread [...] A thread? But that'll never scale!

you dont need a cluster to display GUIs.

You should think big. The cloud is the future of GUIs.

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#148
post #89

Earlier quoted context omitted.

This is backward. Since UIKit is single threaded, the main thread must work on GUI: the best practice is that nothing except GUI work should happen there.

You're not being charitable enough to the comment... you two are in completely agreement with one another if you only changed the meaning of the word "main". It's clear the grandparent meant "the thread that's doing the work."

Changing a fundamentally well-defined term (main thread, i.e. the one on which main() is called which is running the core event loop for the application process) to be an incorrect opposite is rather fundamental when one is explaining an iOS best practice.

Re: Disabling npm's progress bar yields a 2x npm install speed improvement

#149

Earlier quoted context omitted.

You don't use syntax highlighting?

No, never had a need for it.

At the risk of getting downvoted myself, I wonder why all of your comments are getting downvoted. Is it such a terrible opinion that it doesn't even belong on HN? A lot of people turn off syntax highlighting. It can be legitimately distracting, and it messes up tooling.
Post reply on HN