Click here to Skip to main content
15,890,512 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
GeneralRe: Astronomers will try to take the first picture of a black hole next year Pin
Vark1114-Nov-16 5:14
Vark1114-Nov-16 5:14 
NewsGoogle formally rebuts EU antitrust charges against Shopping, AdSense Pin
Kent Sharkey3-Nov-16 8:36
staffKent Sharkey3-Nov-16 8:36 
GeneralRe: Google formally rebuts EU antitrust charges against Shopping, AdSense Pin
W Balboos, GHB3-Nov-16 8:45
W Balboos, GHB3-Nov-16 8:45 
GeneralRe: Google formally rebuts EU antitrust charges against Shopping, AdSense Pin
Joe Woodbury3-Nov-16 9:54
professionalJoe Woodbury3-Nov-16 9:54 
NewsWindows switching to differential patching in the Creators Update Pin
Kent Sharkey3-Nov-16 8:20
staffKent Sharkey3-Nov-16 8:20 
GeneralRe: Windows switching to differential patching in the Creators Update Pin
enhzflep3-Nov-16 12:41
enhzflep3-Nov-16 12:41 
NewsMirai botnet attackers are trying to knock an entire country offline Pin
Kent Sharkey3-Nov-16 8:18
staffKent Sharkey3-Nov-16 8:18 
NewsMicrosoft breaks npmjs Pin
Marc Clifton3-Nov-16 5:37
mvaMarc Clifton3-Nov-16 5:37 
A VSCode person can (and probably will) answer in more detail, but at heart it's... | Hacker News[^]


Microsoft publishes a list of known good declaration files for popular npm packages to npm, under the scope @types: https://www.npmjs.com/~types
The 1.7 release of VSCode helpfully tries to automatically load type declarations for any npm package you use by requesting the equivalent declaration package under @types. When the package exists this is fine, because it's cached in our CDN.
What they forgot to consider is that most CDNs don't cache 404 responses, and since there are 350,000 packages and less than 5000 type declarations, the overwhelming majority of requests from VSCode to the registry were 404s. This hammered the hell out of our servers until we put caching in place for 404s under the @types scope.
We didn't start caching 404s for every package, and don't plan to, because that creates annoying race conditions for fresh publishes, which is why most CDNs don't cache 404s in the first place.
There are any number of ways to fix this, and we'll work with Microsoft to find the best one, but fundamentally you just need a more network-efficient way of finding out which type declarations exist. At the moment there are few enough that they could fetch a list of all of them and cache it (the public registry lacks a documented API for doing that right now, but we can certainly provide one).


Laugh | :laugh: Laugh | :laugh: Laugh | :laugh:

Marc
Imperative to Functional Programming Succinctly

Contributors Wanted for Higher Order Programming Project!

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

GeneralRe: Microsoft breaks npmjs Pin
Dan Neely3-Nov-16 5:50
Dan Neely3-Nov-16 5:50 
GeneralRe: Microsoft breaks npmjs Pin
Joe Woodbury3-Nov-16 9:50
professionalJoe Woodbury3-Nov-16 9:50 
GeneralRe: Microsoft breaks npmjs Pin
Richard Deeming3-Nov-16 10:10
mveRichard Deeming3-Nov-16 10:10 
GeneralRe: Microsoft breaks npmjs Pin
Brisingr Aerowing3-Nov-16 14:24
professionalBrisingr Aerowing3-Nov-16 14:24 
NewsAtlas Recall: you want your digital life in the Cloud ... ALL of it ? Pin
BillWoodruff2-Nov-16 14:32
professionalBillWoodruff2-Nov-16 14:32 
NewsUsing the Universe to calculate the mass of a dark matter candidate Pin
Kent Sharkey2-Nov-16 13:59
staffKent Sharkey2-Nov-16 13:59 
NewsGitless works around Git’s problems, simplifies programmers’ life Pin
Kent Sharkey2-Nov-16 12:41
staffKent Sharkey2-Nov-16 12:41 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Marc Clifton2-Nov-16 14:32
mvaMarc Clifton2-Nov-16 14:32 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Dan Neely3-Nov-16 2:39
Dan Neely3-Nov-16 2:39 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Marc Clifton3-Nov-16 5:35
mvaMarc Clifton3-Nov-16 5:35 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Dan Neely3-Nov-16 5:41
Dan Neely3-Nov-16 5:41 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Marc Clifton3-Nov-16 7:37
mvaMarc Clifton3-Nov-16 7:37 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Joe Woodbury3-Nov-16 9:45
professionalJoe Woodbury3-Nov-16 9:45 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Sander Rossel2-Nov-16 21:24
professionalSander Rossel2-Nov-16 21:24 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Dan Neely3-Nov-16 2:38
Dan Neely3-Nov-16 2:38 
GeneralRe: Gitless works around Git’s problems, simplifies programmers’ life Pin
Joe Woodbury3-Nov-16 5:24
professionalJoe Woodbury3-Nov-16 5:24 
NewsRussia is ditching Microsoft because it's an easy target Pin
Kent Sharkey2-Nov-16 12:17
staffKent Sharkey2-Nov-16 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.