News for hackers. Stuff that matters.
Re:Flat Tree Dependency Resolution in Npm v3 by tvanantwerp on Thursday December 31, 2015 @12:01PM (#10818437)
As someone who has no choice but to use Windows at work, I'm really sick of all the problems that crop up because so many tools use were written by people who won't use Windows and haven't tested anything on it.
Re:Flat Tree Dependency Resolution in Npm v3 by tsuraan on Thursday December 31, 2015 @12:32PM (#10818593)
That's a funny point of view. Windows is made by a multi-billion dollar company, rented by countless wealthy software development shops, but it's volunteer open-source programmers who are supposed to take on the burden of supporting it? Seriously, I can't even comprehend that thought process.

I write software for fun, I release it on github, and some people find it useful. If there are other people who don't, they can improve it for their own purposes, or they can find or write something better. I don't think anybody has a right to expect me to support Microsoft's product. That's insane.

Re:Flat Tree Dependency Resolution in Npm v3 by Silhouette on Thursday December 31, 2015 @11:19PM (#10821086)
I don't think anybody has a right to expect me to support Microsoft's product. That's insane.

True enough, though it's also fair to consider a language/platform/ecosystem inferior for some work if it relies on that kind of individual and often less portable contribution for its effectiveness. A lot of FOSS advocates will promote community support and a broad contributor base as advantages of that style of development, but there is another side to that coin, which is that sometimes you get just what you (didn't) pay for and you're on your own in terms of support or working around any problems.

Re:Flat Tree Dependency Resolution in Npm v3 by saosebastiao on Thursday December 31, 2015 @12:13PM (#10818491)
If I had no choice but to use Windows at work, and using Windows meant I couldn't use a large amount of development tools that I rely on, then the last ones I would blame would be the open source developers that won't use or develop for Windows. Your employer is the problem here.
Re:Flat Tree Dependency Resolution in Npm v3 by krisdol on Thursday December 31, 2015 @12:14PM (#10818497)
Why do you expect developers to pay for software, OSes, and licenses they don't use in order to develop open source software for free? Help them out by contributing, or blame Microsoft who has the resources to make their own OS more compatible

Doesnt Microsoft have their own V8 or node.js fork now?

Re:Flat Tree Dependency Resolution in Npm v3 by ploxiln on Thursday December 31, 2015 @12:22PM (#10818535)
Kinda funny isn't it, after a decade where one might be required to use a proprietary VPN or email client that only runs on windows. And those things didn't use standard, published, or even consistent protocols, nor were they open-source. In fact they were hostile to compatible implementations. They had to be reverse-engineered.

So now you get just a little, watered-down taste of using the non-preferred platform for something.

Re:Flat Tree Dependency Resolution in Npm v3 by city41 on Thursday December 31, 2015 @12:13PM (#10818487)
I feel your pain, but am not convinced open source maintainers should have to be the ones to resolve the issue. Especially since so many projects are done using spare time and with no compensation.
Re:Flat Tree Dependency Resolution in Npm v3 by ag_dubs on Thursday December 31, 2015 @12:47PM (#10818668)
hi! i totally know this is a common feel for many npmjs users. this is why i've been running an empathy campaign for Windows, Windows Wednesday, where i do all my work (with/for npm) on windows. it's been good for finding bugs, either technical or UX. i'm working on improving the docs to make them friendlier to all platforms (not just OSX, which is the most common platform at npmjs).

npmjs cares about the enterprise + windows.

Re:Flat Tree Dependency Resolution in Npm v3 by city41 on Thursday December 31, 2015 @12:59PM (#10818737)
I think this is the wrong approach. We shouldn't pick up MS's slack, MS should. This just enforces the current situation and keeps enabling MS to ignore the problem.
Re:Flat Tree Dependency Resolution in Npm v3 by ag_dubs on Thursday December 31, 2015 @06:41PM (#10820361)
you might also consider the fact that OSX machines are expensive. and the education for learning linux is generally expensive or not accessible. so supporting windows also supports ... poor people, people from different countries that have different economies, etc.

should we not pick up capitalism's slack? capitalism sure isn't going to pick up its own slack, err... systemic method of restricting underprivileged/poor people's access to power.

Re:Flat Tree Dependency Resolution in Npm v3 by fapjacks on Friday January 01, 2016 @11:28PM (#10825032)
> the education for learning linux is generally expensive or not accessible

Wow, this is incredibly wrong. The cost of education to learn Linux is living in a country where you are likely to be literate and have access to a computer. That is literally the cost to learn Linux, guy. There is nothing like an MSDN subscription for Linux documentation.

Re:Flat Tree Dependency Resolution in Npm v3 by steveklabnik on Thursday December 31, 2015 @01:37PM (#10818918)
What problem is that? That they have a different operating system?

npm is also a bit different, in your objection: they're a company. Companies need users. Supporting more platforms to get more users seems like pretty much, well, business as usual.

Re:Flat Tree Dependency Resolution in Npm v3 by city41 on Thursday December 31, 2015 @01:47PM (#10818974)
That is a fair point. npm being a company does change the situation.
Re:Flat Tree Dependency Resolution in Npm v3 by gelasio on Thursday December 31, 2015 @01:22PM (#10818848)
So, are you of the opinion that OSS projects should never be built for any commercial, proprietary OS or just Windows (i.e. because it's not Unix)?

For instance - OS X window managers suck. Do you think that a project like Spectacle should have never been built because they're just picking up Apple's slack?

Re:Flat Tree Dependency Resolution in Npm v3 by city41 on Thursday December 31, 2015 @01:36PM (#10818914)
I don't see how a project like Spectacle, which is OSX specific, relates. If someone wants to make an OS specific project, more power to them. The issue arises on platforms that span OSes, and they just never quite span onto Windows correctly.

Microsoft is very happy that Node, Java, Clojure, etc work on Windows. It helps them a lot. But they make little to no effort to help bridge the gap, they usually leave that to everyone else. That's my gripe, right there.

And to be fair, this is not a black and white situation. It's complex and Microsoft's role in all of this is complex too. And sometimes this issue does crop up on other OSes, for example Docker on OSX is sometimes a little painful.

Re:Flat Tree Dependency Resolution in Npm v3 by gelasio on Thursday December 31, 2015 @02:07PM (#10819086)
"But they make little to no effort to help bridge the gap, they usually leave that to everyone else."

OK, but that's also where you're wrong, right there. In general, but also particularly for this exact issue - Microsoft considered attempting to fix the file path limit for the first release of Windows 10. Maybe you don't understand, but it's going to take a herculean effort to fix this. They want to do it and if you need proof of that I can find posts of them talking about what I just said.

Re:Flat Tree Dependency Resolution in Npm v3 by martindevans on Thursday December 31, 2015 @03:06PM (#10819391)
Don't UNC paths solve this problem already (30000+ char limit)?
Re:Flat Tree Dependency Resolution in Npm v3 by tracker1 on Thursday December 31, 2015 @06:46PM (#10820377)
The problem is the default/legacy APIs don't use the new paths... in .Net I had this problem a lot, and serious issues every method I tried to work around it would hard crash VS, let alone the application I was working on... in the end, after days trying the solution was to say f*ck it and just put the directory I was working with closer to the root of the drive in question.

Why they can't fix .Net under the covers to use UNC in windows to avoid the class of problem I don't know, understand or comprehend... and that's just one very common platform for windows. I would say the same for npm/node and libuv for that matter.

I use bash a lot in windows (installed with msysgit), and that's got it's own set of problems. More problematic is the number of node modules that rely on bash scripts for builds, that don't work at all in windows.... which makes it very hard to contribute.

Re:Flat Tree Dependency Resolution in Npm v3 by nawitus on Thursday December 31, 2015 @03:06PM (#10819390)
I believe Microsoft worked to get Node.js supported on Windows.
Re:Flat Tree Dependency Resolution in Npm v3 by steveklabnik on Thursday December 31, 2015 @04:26PM (#10819776)
Not just that, but they're working on making Node work with Chakra.
Re:Flat Tree Dependency Resolution in Npm v3 by Touche on Thursday December 31, 2015 @04:36PM (#10819824)
Can they make it so I can spawn a process and not worry about whether I'm spawning on unix or Windows?
Re:Flat Tree Dependency Resolution in Npm v3 by steveklabnik on Saturday January 02, 2016 @01:59PM (#10827351)
I don't know it at that level of detail.
Re:Flat Tree Dependency Resolution in Npm v3 by Maarten88 on Thursday December 31, 2015 @04:13PM (#10819710)
Yes, npm is very problematic/buggy on Windows. I wasted many hours because of https://github.com/npm/npm/issues/9696 (meaning any build on visual studio online breaks ~50% of the time simply running 'npm install').

Microsoft should finally fix the MAX_PATH issue in Windows, but npm should just fix their software: it's too important to be that buggy.