Earlier quoted context omitted.
This is a good start, but it has issues. You probably don't want all of your locally installed packages in a requirements.txt file. Instead, they should be curated. I've been using pip-compile [0] for a while now (see the author's blog post [1] for a detailed explanation) and have become a big fan of it. With this model, you should enumerate only what your application uses directly and let pip-compile convert this li…
If one uses virtualenv as a Pythonista should, then your keep point doesn't carry much weight. That said, this looks cool and I'll check it out.
Disabling npm's progress bar yields a 2x npm install speed improvement
131–140 of 187 posts
Re: Disabling npm's progress bar yields a 2x npm install speed improvement
#132It's all good, Laurie fixed it - https://twitter.com/seldo/status/692192238445711360
Link to relevant commit?
Re: Disabling npm's progress bar yields a 2x npm install speed improvement
#133Earlier quoted context omitted.
This is not only completely wrong, it's dangerously wrong. It is in fact wildly unsafe to touch the GUI from anything except the main thread. It's all the non-UI stuff that you should shove onto another thread.
Depends on what you call "main thread" - maybe he's saying worker thread that's doing the "main code" shouldn't be doing GUI
Re: Disabling npm's progress bar yields a 2x npm install speed improvement
#134I work in China. Downloading from the outer Internet will never match the speed of writing to the console. Not too worried
Not to mention that when the binary you are downloading happens match particular keywords.
Re: Disabling npm's progress bar yields a 2x npm install speed improvement
#135Earlier quoted context omitted.
This is not only completely wrong, it's dangerously wrong. It is in fact wildly unsafe to touch the GUI from anything except the main thread. It's all the non-UI stuff that you should shove onto another thread.
Depends on what you call "main thread" - maybe he's saying worker thread that's doing the "main code" shouldn't be doing GUI
Re: Disabling npm's progress bar yields a 2x npm install speed improvement
#136Re: Disabling npm's progress bar yields a 2x npm install speed improvement
#137Earlier 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."
Re: Disabling npm's progress bar yields a 2x npm install speed improvement
#138Earlier quoted context omitted.
> are you suggesting that by default you should vet every version exactly and freeze it at the point you defined it? Yes, this is the way that Guix and Leiningen and rebar3 and a bunch of other things work, and it is wonderful. Pulling in new code without you asking is a fine idea for something like apt-get where you have a huge team doing QA on the entire system working together before it even hits your repositories…
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…
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.
Re: Disabling npm's progress bar yields a 2x npm install speed improvement
#139Doing GUI calls is a notorious way to slow down apps. I sped up an app (major software from major large corporation) by a factor of 10x a few years back by removing GUI updates. What you have to do is create a thread that refreshes the GUI periodically and not let your main worker thread ever work on the GUI. This particular app was an Eclipse Plugin (a source control app) and the Eclipse SWT to update the console lo…
> What you have to do is create a thread [...] A thread? But that'll never scale!