News for hackers. Stuff that matters.
Re:Windows for Linux Nerds by tootie on Wednesday September 13, 2017 @08:43PM (#15244058)
A lot of snarky comments here, but I've been using Ubuntu shell on Win 10 for the past few weeks and it's really fantastic. Way faster than a VM and much more compatible than cygwin or msys.
Re:Windows for Linux Nerds by koffiezet on Thursday September 14, 2017 @10:54AM (#15248609)
Launching processes in WSL is a LOT slower compared to a VM tbh. WSL is a magnitude faster than Cygwin on that level, however it is still limited by the Windows process model, even with their pico processes they're an order of magnitude slower.

I have a simple bash script I run from time when new WSL versions come out, to see if that improved. It simply loops doing a silly `echo "foo" | grep "bar"` and increasing a counter until that counter reaches 1000. This 9 line script runs in a bit more than 10 seconds on my i7 laptop. In a Linux VM on that same laptop, that exact same script takes 1 second to run.

Now I absolutely love WSL, it makes things a lot easier in my life, but I have to run some extensive long-running bash scripts from time to time (don't ask), and the minute it takes me to spin up a Vagrant VM lets me finish this in about 15 minutes instead of more than 2 hours.

Re:Windows for Linux Nerds by thinkxl on Wednesday September 13, 2017 @08:53PM (#15244109)
More snarky than usual, i don't know why. "why not just" or "just use" kind of comments that you see more in reddit.

Even someone recommended an Electron alternative, on HN! the #1 Electron hater community.

Interesting.

Re:Windows for Linux Nerds by rbanffy on Thursday September 14, 2017 @03:14AM (#15245588)
It's not snark, or feeling threatened. It's just that lots of people (me included) fail to see the point of running Windows at all (unless you are developing for Windows, in which case it's foolish not to). If you want a Linux experience, use Linux. If you want polished applications and a Unix experience, get a Mac. Windows has somewhat polished apps (with very lax UI consistency rules), a convoluted overall experience (ever tried to debug a wireless connection?) and a Unix-like environment (and it had one from the start) both with Cygwin and WSL.

IMHO, WSL is Microsoft's attempt to compete with Mac, not Linux, by adding a Unix-like environment to Windows. I already did that with Cygwin, more than a decade ago.

Re:Windows for Linux Nerds by Jaruzel on Thursday September 14, 2017 @06:09AM (#15246429)
I am not a pro-developer, but I do enjoy programming and all its associated activities and by trade I'm a Windows Enterprise Architect, as such I need to run Windows as my primary machine(s), but looking a the list of VMs I have running on my Hyper-V servers, I have an equal smattering of Windows Servers and Linux Servers.

So it's purely horses-for-courses. If my career had been built up designing Linux solutions then my viewpoint would be the complete opposite. I really don't understand the hate that Windows gets. Yes, it's not open-source. Yes, it's controlled by a massive organisation. Yes, it can cost quite a lot if you want to develop on it... but you know what, a lot of people (and organisations) don't care. They happily run Windows because they always have, it comes with support options, and it kinda always works (within reason) for what they need to do with it.

Telling people to 'just run Linux' or 'Windows is Better!' is akin to pushing your religion or your choice of diet at everyone you meet. If are an atheist and have issues with organised religion, or if you are an omnivore and get irritated every time someone says 'I'm Vegan, you should be too!' then maybe, just maybe, it's time to rethink your position with regard to the OS wars.

--

P.S. The Amiga was better than the Atari ST, and the Commodore 64 pwned the ZX Spectrum. /s

Re:Windows for Linux Nerds by rbanffy on Thursday September 14, 2017 @11:14AM (#15248826)
What would be, from your point-of-view, the key advantages of working on Windows?

> P.S. The Amiga was better than the Atari ST, and the Commodore 64 pwned the ZX Spectrum. /s

The ST was a much simpler and more elegant machine. The Amiga was much more powerful, but too video-centric.

The C64 had better graphics and sound than the Spectrum (and a much nicer palette), but the Atari 8-bit computers had the best graphics of that generation by far. It's actually fun (but not surprising) to notice the Amiga is more a descendant of the 8-bit Ataris and the ST looks a lot like a 32-bit C-64.

Re:Windows for Linux Nerds by blauditore on Thursday September 14, 2017 @04:13AM (#15245882)
Frankly, I don't understand the unix-like argument. I keep on hearing it from devs, but if your work happens mostly in IDEs and occasionally on the command line with tools like npm or gradle you never get in touch with potential "unix-ness" of your system.

The reason why I switched to Linux for work is its focus on power users, e.g. great configurability or well thought-out command line applications, but not because it's close to unix.

Re:Windows for Linux Nerds by monsieurbanana on Thursday September 14, 2017 @04:22AM (#15245924)
"focus on power users, e.g. great configurability or well thought-out command line applications"

Yeah, because it's an UNIX-like.

Re:Windows for Linux Nerds by blauditore on Thursday September 14, 2017 @07:53AM (#15246991)
I'm not talking about command line languages or tools, but applications building an interface to it, like Terminal. It's much handier and more configurable than the built-in ones in Windows for cmd and PowerShell.
Re:Windows for Linux Nerds by leo_santagada on Wednesday September 20, 2017 @01:38PM (#15296323)
and that is because the whole pseudo terminal system was always there not encumbered by cmd wonkiness. That plus filesystem semantics alone make a unix like system miles ahead of microsoft.
Re:Windows for Linux Nerds by seiferteric on Wednesday September 13, 2017 @09:00PM (#15244147)
I don't know, I think some people feel a bit threatened by this move. It could be viewed as a way to subvert the Linux and OSS community. I think people should know there are alternatives.
Re:Windows for Linux Nerds by 52-6F-62 on Wednesday September 13, 2017 @09:55PM (#15244439)
That's a generally valid concern, but I don't think I can see that ever really happening. It's really just a compatibility space, no?

There is a bit of a contrarian culture here, lately. Some skepticism is healthy, but too much is toxic.

As a general optimist and hopeful, I like to try and find good where I can without being suckered by hocus or sly marketing.

Moving forward and growing outward should be a good thing, shouldn't it?

Re:Windows for Linux Nerds by seiferteric on Wednesday September 13, 2017 @10:04PM (#15244487)
I know what you mean, but you will never see MS contributing to Wine will you? Will we ever see office for linux? Why can't we get a proper POSIX layer for windows (like they used to offer)?
Re:Windows for Linux Nerds by wvenable on Wednesday September 13, 2017 @11:49PM (#15244867)
> you will never see MS contributing to Wine will you?

This is basically asking Microsoft to open source Windows.

> Will we ever see office for linux?

They already have Office for macOS, Android, and iOS. They also have SQL Server for Linux and .Net core. "Linux" isn't really a viable desktop operating system compared to the other operating systems mentioned.

> Why can't we get a proper POSIX layer for windows (like they used to offer)?

POSIX is dead. Linux compatibility is far more relevant to modern computing.

Re:Windows for Linux Nerds by seiferteric on Thursday September 14, 2017 @12:52AM (#15245098)
OP said it was about comparability, but MS does not care about compatibility unless it's in their favor, that's the point.

> "Linux" isn't really a viable desktop operating system compared to the other operating systems mentioned.

Well maybe if office and other applications were available it would be? That's the point.

> POSIX is dead. Linux compatibility is far more relevant to modern computing.

Uh, what about all those people running MacOS? homebrew etc are about running all that nice OSS on MacOS. Pretty much all that stuff will run on BSD/MacOS/Linux/*Nix due to POSIX compatibility.

Re:Windows for Linux Nerds by wvenable on Thursday September 14, 2017 @10:20AM (#15248269)
> Well maybe if office and other applications were available it would be? That's the point.

Where are all the non-Microsoft applications for Linux? Where is Photoshop? What about the thousands of other software vendors?

> Uh, what about all those people running MacOS? homebrew etc are about running all that nice OSS on MacOS.

Getting Linux software ported to MacOS is and has been non-trivial. A lot of effort went into that and for the longest time Homebrew lagged behind. If you're on MacOS you're lucky it's a popular platform and people put in the effort.

I'm not really sure what you're arguing for here anyway -- why should Microsoft their own flavor of POSIX compatible UNIX (again) over building something compatible directly with the Linux kernel. What advantage is the former?

Re:Windows for Linux Nerds by watwut on Thursday September 14, 2017 @01:53AM (#15245285)
Given that Microsoft is one of largest contributor to linux, I would not blame them for not contributing also where Linux directly competes with them. They would absolutely deserve criticism if they restart ugly fud campaigns again. But as of now, the two seem to be at peace.
Re:Windows for Linux Nerds by kasabali on Wednesday September 27, 2017 @05:17AM (#15346087)
> Microsoft is one of largest contributor to linux,

Citation needed.

And please don't quote that 5 years old statistic of a one time contribution.

Re:Windows for Linux Nerds by rbanffy on Thursday September 14, 2017 @04:54AM (#15246087)
Microsoft needs to make sure Linux runs well under their virtualisation tools. If it doesn't, Microsoft will end up being kicked out of the datacenter as well, as Windows runs just fine under VMWare or KVM and virtualisation drives better hardware usage. Having Windows run only on virtualized hardware is an existential threat to Microsoft.
Re:Windows for Linux Nerds by 52-6F-62 on Wednesday September 13, 2017 @11:32PM (#15244801)
You've got a good point.

I believe personally that there are great people working at MS (because I know one or two... so I'll just take a leap and assume in general) --

so it seems like a problem of reining in the beast.

Hell, Gates seems like a generally good person. It's the default nature of a corporation [read: monster] so large to consume as much as it can and become as powerful as it can. Such organizations are structured this way, and bend this way regardless, because of the framework they operate within. I hardly need to say this. MS started making some good ground recently, so maybe with further prodding and pressure, who knows. Everything you suggested sounds like easy wins for them. It's not like it would affect their core consumer base too much.

Re:Windows for Linux Nerds by robertlagrant on Thursday September 14, 2017 @05:21AM (#15246201)
Yeah I like Gates, much more than Jobs or Ellison, for example. I'm sure he was far from perfect, but he's pumped more money (and convinced others to pump more money) into big causes than probably most others on the planet.

Ballmer on the other hand - both an idiot who stopped Microsoft doing much good for ten years, supported a stupid HR manager in her talent-scaring practices, and also helped give MS its bad reputation. Good job mate.

Re:Windows for Linux Nerds by hueving on Thursday September 14, 2017 @07:28AM (#15246840)
Good people work for Oracle as well, but that doesn't mean oracle isn't a destructive open source participant.
Re:Windows for Linux Nerds by 52-6F-62 on Thursday September 14, 2017 @10:08AM (#15248138)
Surely it's a similar problem to MS. "Reining in the beast" so to speak.

Corporations, any for-profit corporation, are all by their nature (if you can call it that) for the express purpose of making money in their raw functioning. It would take a purposeful, active measure to sway the actions a corporate body would take (or should take).

Not saying MS is an innocent party in the slightest.

Re:Windows for Linux Nerds by thinkxl on Wednesday September 13, 2017 @09:04PM (#15244165)
> I don't know, I think some people feel a bit threatened by this move.

You are right, but as you said, is good to have alternatives.

> It could be viewed as a way to subvert the Linux and OSS community.

Good, is healthy to have competition.

Re:Windows for Linux Nerds by fasquoika on Thursday September 14, 2017 @05:42PM (#15252760)
> "why not just" or "just use" kind of comments that you see more in reddit

Honestly I think this attitude is much more common on HN than reddit

Re:Windows for Linux Nerds by neves on Wednesday September 13, 2017 @10:15PM (#15244521)
If you've lost your work and time due to their design decisions, you'd be "snarky".
Re:Windows for Linux Nerds by rodgerd on Thursday September 14, 2017 @12:20AM (#15244986)
> i don't know why.

Post by woman.

Re:Windows for Linux Nerds by dingo_bat on Wednesday September 13, 2017 @10:14PM (#15244517)
Same here. I've not booted up my arch VM in months. The file format incompatibility is a small problem.
Re:Windows for Linux Nerds by zengid on Thursday September 14, 2017 @12:20AM (#15244988)
What's your work flow like? Do you have to keep files / directories separated based on using whether your using bash or windows?
Re:Windows for Linux Nerds by detaro on Thursday September 14, 2017 @12:35AM (#15245044)
Not the parent, but also someone using WSL: Generally not, that is for me the main benefit of using WSL.

Files in the Windows file system can easily be accessed from the Linux side (C: appears as /mnt/c), so I basically do everything shell-based in WSL Bash and at the same time can access files there with my Windows-based GUI tools. I've tried that before with VM setups, and sharing filesystem folders gave me way more trouble there. You can't access the linux filesystem with Windows tools, but I haven't really missed that, since I seldom touch files there directly, and if I do they are text files that are easily edited in vim.

It's pretty good, although you'll find the occasional program that won't run due to missing syscalls (or needs a special flag to be convinced to run) and I'd love if they shipped a working X setup.

Re:Windows for Linux Nerds by jancsika on Wednesday September 13, 2017 @08:57PM (#15244132)
> Way faster than a VM and much more compatible than cygwin or msys.

More than, say, msys2? I haven't had any compatibility problems with it.

Re:Windows for Linux Nerds by int_19h on Wednesday September 13, 2017 @09:43PM (#15244386)
It's definitely much closer to real Linux than msys2. Don't forget that the entire userland in WSL is the real thing, not an emulation.
Re:Windows for Linux Nerds by notgood on Wednesday September 13, 2017 @09:05PM (#15244176)
The linux subsystem for window is way faster than Cygwin (and any VM), I just tested grep on both platforms for a big text file (500MB) and cygwin-grep takes 2.630s while linux-subsytem-grep takes 0.395s
Re:Windows for Linux Nerds by slaymaker1907 on Thursday September 14, 2017 @12:51AM (#15245090)
I don't think grep is the best example since they could be different implementations of grep.
Re:Windows for Linux Nerds by notgood on Thursday September 14, 2017 @09:36PM (#15253909)
I have seen similar differences in other programs as well (tail, head)