News for hackers. Stuff that matters.
Re:Ubuntu now available from the Windows store by stephenr on Tuesday July 11, 2017 @03:03AM (#14742130)
> This removes one of the major reasons to use a Mac for Linux development

I find it hard to believe many people using a Mac for Linux development, will (want|be able) to use this the same way.

Anything that needs to simulate prod-ish environments for developers, will be using a VM (and if you're not, you should be) often via Vagrant.

This also limits you specifically to Ubuntu, so it's automatically going to be invalid for a lot of things that either a) are tested/built for multiple distros anyway or b) targeted at a specific distro that isn't Ubuntu.

Edit: additionally, using a Mac means you (via VM's) run any OS (or Browser, if it's a web project) you need, to test the software.

Re:Ubuntu now available from the Windows store by microcolonel on Tuesday July 11, 2017 @03:25AM (#14742212)
> Anything that needs to simulate prod-ish environments for developers, will be using a VM (and if you're not, you should be) often via Vagrant.

I know this not to be the case, and I disagree that it should be. I don't see why I should have to spin up a separate kernel and init just to run my application during development. I wouldn't use a Mac for it, but I've seen people develop portable software which happens to work quite well on Mac and Linux dev boxes for Linux production boxes. There's a lot to be said for debugging on your home turf.

Re:Ubuntu now available from the Windows store by stephenr on Tuesday July 11, 2017 @03:30AM (#14742228)
> I don't see why I should have to spin up a separate kernel and init just to run my application during development.

So that you know it.. you know.. works in that environment?

Edit:

additionally, using a VM (and particularly using a tool like Vagrant) means that the scripts/etc to setup a working dev environment need to be done ONCE, and then any developer can work on the project, on any host environment - you can use your windows machine, I can use my Mac, Fred can use his Linux box with whatever distro he wants. It doesn't matter: we all run vagrant and a provider (usually a VM hypervisor) (doesn't even need to be the same provider - you can use HyperV, I'll use Parallels, Fred can use VirtualBox, or heck even LXC), and the application runs exactly the same in that environment, with exactly the same setup. You can destroy your machine, walk to a band new one, clone the repo, run `vagrant up` and you'll have exactly the same dev environment as me again. Even if you don't use Linux for your prod environments, this type of setup is a must if you don't want developer productivity to sink to zero every time something happens that affects their host OS (OS updates breaking libs. New hardware. New software. New OS release. Switched machines. etc)

> There's a lot to be said for debugging on your home turf.

The whole point of tools like Vagrant is to allow you to run the application inside a VM, but work on it (i.e. write/debug the code) on your host machine.

Re:Ubuntu now available from the Windows store by noway421 on Tuesday July 11, 2017 @09:45AM (#14744088)
Not to diminish your point, but there are cases where running application development is very easy on a mac, and linux comes as first and subsequent stages of the CI pipeline.

> working dev environment need to be done ONCE

good point, I personally would rather integrate everything into the development platform (i.e. front end http server would be just another npm package/middleware, but not NGINX, everything gonna end up under a load balancer anyway on prod/test).

In regard to different machines/OSes, issuing everyone a mac really takes away a lot of headache for organisation, at a relatively small (compared to engineering hours) cost.

Re:Ubuntu now available from the Windows store by stephenr on Tuesday July 11, 2017 @11:35AM (#14745023)
> good point, I personally would rather integrate everything into the development platform

The problem is, that restricts you to what's available for your dev platform. How many nodejs http servers do ESI sub requests, or can parse and use the same VCL file as Varnish uses on prod?

> In regard to different machines/OSes, issuing everyone a mac really takes away a lot of headache for organisation, at a relatively small (compared to engineering hours) cost.

I mean, there are benefits to standardising your work force, but I don't really see your argument here because:

a) if you take this route, and then don't use Vagrant, you have to pay each and every one of your engineers to re-setup all their projects, whenever they need to re-clone them (failed hardware, wipe & install OS update, etc).

b) unless you buy everyone the same new mac at the same time, you don't have the same environment, and it's doubtful you all even have the same OS version.

c) I've never worked in a company where everyone was happy to use the same tools/platform for dev. Forcing people to use a platform they don't like, in favour of using an open source tool that solves the problem, sounds like making things harder than they need to be

d) not all projects are run by a company, or even by the same company. Freelancers collaborating is a thing.

Re:Ubuntu now available from the Windows store by pjmlp on Tuesday July 11, 2017 @04:13AM (#14742408)
> I know this not to be the case, and I disagree that it should be. I don't see why I should have to spin up a separate kernel and init just to run my application during development.

Because OS X and GNU/Linux don't have the same APIs?

Re:Ubuntu now available from the Windows store by gpvos on Tuesday July 11, 2017 @03:18AM (#14742182)
As the article states, SUSE and Redhat will be available in a week or two. WSL should be able to support other distros or self-built Linux too, although I wouldn't know how to go about that.
Re:Ubuntu now available from the Windows store by sapphire_tomb on Tuesday July 11, 2017 @04:13AM (#14742405)
I've been using Arch as my WSL image for about a year I think.

I used this tool to get it going : https://github.com/RoliSoft/WSL-Distribution-Switcher

Re:Ubuntu now available from the Windows store by staofbur on Tuesday July 11, 2017 @03:22AM (#14742199)
Definitely agree with vagrant. Vagrant incidentally is monumentally horrible on windows as well.
Re:Ubuntu now available from the Windows store by stephenr on Tuesday July 11, 2017 @03:34AM (#14742245)
I've heard that Git was (maybe is) not fantastic on Windows either (to the point it has to ship its own bundled version of Bash!?)
Re:Ubuntu now available from the Windows store by staofbur on Tuesday July 11, 2017 @03:38AM (#14742263)
It's actually pretty horrible but that's not windows' fault. It was designed for case sensitive unix systems with the appropriate ssh infrastructure and other shell tools in place which windows didn't have.

There are some powershell wrappers that make it better.

Re:Ubuntu now available from the Windows store by jhasse on Tuesday July 11, 2017 @03:49AM (#14742308)
> It's actually pretty horrible but that's not windows' fault. It was designed for case sensitive unix systems with the appropriate ssh infrastructure and other shell tools in place which windows didn't have.

For me, that's Windows' fault.

Re:Ubuntu now available from the Windows store by staofbur on Tuesday July 11, 2017 @03:52AM (#14742325)
Not really. You could write a git client for windows that didn't have these issues.
Re:Ubuntu now available from the Windows store by jhasse on Tuesday July 11, 2017 @04:07AM (#14742380)
Yes, I would call those changes workarounds for Windows' bugs (incase-sensitive filesystem, no ssh infrastructure, ...).

One of the reasons Git is slower on Windows, is that spawning processes is a lot slower than on Linux. Wouldn't you call that a bug?

Re:Ubuntu now available from the Windows store by pjmlp on Tuesday July 11, 2017 @04:12AM (#14742402)
No, because Windows wasn't designed to make Git fast.

It is a bug on Git side if it fails to be platform independent and requires POSIX semantics to function properly.

Re:Ubuntu now available from the Windows store by jhasse on Tuesday July 11, 2017 @04:16AM (#14742421)
I wouldn't call "spawning processes isn't slow" or a fast filesystem POSIX semantics.
Re:Ubuntu now available from the Windows store by pjmlp on Tuesday July 11, 2017 @04:56AM (#14742592)
Windows has built on the premise of multi-threading and a filesystem with rich semantics, not as yet another UNIX clone.
Re:Ubuntu now available from the Windows store by staofbur on Tuesday July 11, 2017 @05:00AM (#14742612)
It certainly doesn't have a very good filesystem though. NTFS is horrible on lots of small files due to MFT contention. Even arguing with fstool for a bit doesn't improve it. Check out 50k files on Linux/OSX: 2 mins.. check out 50k files on windows ... 14 mins.

And that's both SSD backed.

Re:Ubuntu now available from the Windows store by pjmlp on Tuesday July 11, 2017 @05:18AM (#14742675)
It is just that wasn't designed with that specific use case in mind.

But it was designed with file streams, user ACLs, easy integration points across office networks, extensible to virtual devices, and data safety with actual proper locking semantics in mind.

Re:Ubuntu now available from the Windows store by staofbur on Tuesday July 11, 2017 @05:38AM (#14742744)
It's just crap at storing files!
Re:Ubuntu now available from the Windows store by pjmlp on Tuesday July 11, 2017 @06:27AM (#14742942)
It is your point of view, the enterprise among Fortune 500 companies using it as their IT backbone have another point of view.
Re:Ubuntu now available from the Windows store by staofbur on Tuesday July 11, 2017 @10:19AM (#14744370)
I work for a Fortune 500 and we don't like it either.
Re:Ubuntu now available from the Windows store by stephenr on Tuesday July 11, 2017 @03:56AM (#14742338)
Right, so again, I haven't used it, so I'm going on what I've read, but my understanding is that Mercurial (which is Python based) is much more Windows friendly, and I actually use Mercurial more than Git.

But still, regardless of whose "fault" it is, I couldn't imagine doing dev on a windows machine, some of which is because of the vastly different environment.

Re:Ubuntu now available from the Windows store by staofbur on Tuesday July 11, 2017 @04:06AM (#14742377)
Mercurial is much nicer on windows. Git could have been the same but it targeted unix likes to start with and didn't evolve into something even remotely portable for a while.

I use fossil for my own projects. I find that agreeable on all platforms.

Re:Ubuntu now available from the Windows store by kronos29296 on Tuesday July 11, 2017 @05:57AM (#14742823)
It does and some people use it for other purposes like vim. (I do). But now I've switched to WSL for the git part after creator's update since things just work. And some version of vim and neovim also works so for now WSL is like a piece of paradise in GUI prison. But the default Bash for WSL sucks so I use mintty for WSL.(sucks less and supports good colors)