News for hackers. Stuff that matters.
Re:Ubuntu Unity running on Windows 10 by rukittenme on Sunday July 10, 2016 @11:54AM (#12065984)
Wow that's really cool. This is pretty close to native performance? This is a really great step for Linux on the desktop. Such an easy way to onboard people.
Re:Ubuntu Unity running on Windows 10 by bluejekyll on Sunday July 10, 2016 @12:15PM (#12066067)
Not really except on the broadest definition of Linux, where Linux is ~= Unix. Linux is a kernel. GNU is the Unix environment which they are getting to explore, more specifically with the Ubuntu OS mgmt tools.

Now what I don't get, and I'm not trolling here, is why would you want this? Isn't a VM a better option?

I assume people using Windows want to because of the UI, not the kernel. Whereas people generally choose Linux/Gnu/Unix for the kernel and OS environment, not the UI. With Ubuntu on Windows you get part of what people have wanted, and arguable the most important part people want.

Will people really want a Windows kernel, with Ubuntu/GNU OS tools, and Unity? I suspect most would still want the Windows UI.

Re:Ubuntu Unity running on Windows 10 by ccallebs on Sunday July 10, 2016 @01:34PM (#12066342)
> Now what I don't get, and I'm not trolling here, is why would you want this? Isn't a VM a better option?

If this is indeed close to native performance, you wouldn't get anywhere close to that with a VM. I could be oblivious to some optimization techniques but Linux VM's on Windows have always performed drastically worse than native.

Re:Ubuntu Unity running on Windows 10 by temac on Sunday July 10, 2016 @01:54PM (#12066435)
In my experience it's quite the opposite for some workloads: Linux FS and process spawning speeds are typically way faster than Windows one (with or without WSL), so much that even when in a VM with dozen of % of overhead, it is still faster than running on Windows for some workloads (just cold open a random man page under WSL, compared to a VM, and you will understand how much Windows lag behind Linux in some areas -- next you can try to build a big program: same result: Windows is really slow)

Now this does not render WSL useless; launch time for any random small tool is better with WSL than booting a complete VM, the memory is not partitioned, integration with the Windows Drive FS is slightly better, etc. But tons of use cases are better covered by a VM -- and with a huge margin.

Re:Ubuntu Unity running on Windows 10 by orf on Sunday July 10, 2016 @02:54PM (#12066688)
> just cold open a random man page under WSL, compared to a VM, and you will understand how much Windows lag behind Linux in some areas -- next you can try to build a big program: same result: Windows is really slow)

Mate, the thing isn't even released yet and you're bashing it (excuse the pun) for taking too long to open up a man page? Give me a break.

After it's actually released and the performance gets better then it is of course going to trump running a whole VM and to suggest otherwise is just FUD, IMO.

Re:Ubuntu Unity running on Windows 10 by xorblurb on Sunday July 10, 2016 @05:37PM (#12067379)
RS1 is mostly frozen.

I think Win10 is quite good, and that WSL is quite good given its age, and will be extremely useful for a lot of things.

Still, if you try some workloads, WSL is way slower than a Linux VM. I don't expect it to change for the release. I don't even expect it to change for the 2 years to come. Sill, of course, I could be wrong.

But even so; I insist: WSL is actually quite impressive.

Re:Ubuntu Unity running on Windows 10 by int_19h on Sunday July 10, 2016 @07:12PM (#12067722)
Unity is not particularly valuable, but X itself is.

Suppose you're developing a cross-platform GUI application (hypothetically, its name could be "Visual Studio Code" or something like that...), and your main development environment is Windows. Now you can build and test it on Linux as part of your regular workflow, without having to sync code etc.

Heck, you could even make it so that launching the project (from a Windows IDE) would do a Linux build, and launch the resulting binary.

Re:Ubuntu Unity running on Windows 10 by ksk on Sunday July 10, 2016 @01:45PM (#12066388)
>Isn't a VM a better option?

Please explain how it is better.

They've implemented the ABI/syscalls in the kernel allowing for direct execution of unmodified ELF64 binaries.

Re:Ubuntu Unity running on Windows 10 by bluejekyll on Sunday July 10, 2016 @06:24PM (#12067558)
If you're going for a full Linux/GNU/Ubuntu/Unity stack, the only thing this cuts out is Linux, making his a Windows/GNU/Ubuntu/Unity stack. I know they've replicated the system calls, but they won't perform or always operate identically to a Linux kernel.

Which is why I asked about where people thought Unity on Windows would make sense. Because a VM will most likely generally give a better experience.

If you restrict yourself to bash and standard Unix tools, you'll end up with a similar experience to macOS and terminal (or my preference iTerm2)

Re:Ubuntu Unity running on Windows 10 by ksk on Tuesday July 12, 2016 @11:22AM (#12079770)
> but they won't perform or always operate identically to a Linux kernel.

Why does the implementation have to be identical? How would that even be possible, unless they violate the GPL. I don't get your point.

> Because a VM will most likely generally give a better experience.

Again, please explain WHY it would give a better experience. What do you see lacking?

Re:Ubuntu Unity running on Windows 10 by stepvhen on Sunday July 10, 2016 @12:51PM (#12066194)
I am fairly certain this is a "syupid programmer trick" kind of thing. I don'tinagine anyone seruously using Unity within windows
Re:Ubuntu Unity running on Windows 10 by MichaelGG on Sunday July 10, 2016 @03:07PM (#12066759)
I will ditch my Xubuntu VM the moment this seems viable and I find a way to turn off Win10's spyware.

VMware has basically abandoned Workstation, and the gfx performance is terrible. A native X server on Windows talking to the Linux subsystem seems like it might be decent.

And if this means somehow I can end up using more XMonad...

Re:Ubuntu Unity running on Windows 10 by TheCoreh on Sunday July 10, 2016 @01:17PM (#12066282)
It is a good stress test of the implementation
Re:Ubuntu Unity running on Windows 10 by TheCoreh on Sunday July 10, 2016 @12:11PM (#12066051)
AFAIK This is not emulation or virtualization, so as long as Microsoft's implementation of the Linux kernel APIs on top of the Windows kernel is performant, and the X11 implementation is also performant, this should have native performance.

Also considering the state of graphics drivers on GNU/Linux and on Windows, it wouldn't surprise me if for some specific hardware configurations, the “perceived interactive performance“ (responsiveness) of the UI was actually higher on Ubuntu for Windows than on it running on top of the Linux kernel.

Re:Ubuntu Unity running on Windows 10 by loeg on Sunday July 10, 2016 @12:35PM (#12066143)
It is syscall-level emulation. Emulation in this case doesn't mean it has to be slow. I am curious how they implemented `fork(2)`, though.
Re:Ubuntu Unity running on Windows 10 by vertex-four on Sunday July 10, 2016 @12:48PM (#12066181)
Surprisingly, the NT kernel implements a copy-on-write fork function - the Windows subsystem does not allow Windows applications to use that function, though. Bash for Windows is implemented as a separate subsystem from Windows on top of the NT kernel, allowing it to build its own abstractions on top of the kernel.
Re:Ubuntu Unity running on Windows 10 by TazeTSchnitzel on Sunday July 10, 2016 @01:11PM (#12066256)
NT has support for POSIX-style forking, because it needed it in order to have a POSIX subsystem in the 1990s.
Re:Ubuntu Unity running on Windows 10 by gruez on Sunday July 10, 2016 @12:49PM (#12066184)
AFAIK the nt kernel already has support for forking.
Re:Ubuntu Unity running on Windows 10 by CJefferson on Sunday July 10, 2016 @02:58PM (#12066714)
I can't comment on the X performance, but I am finding performance of command line applications is a couple of % faster on windows than it is on Linux (if they do little / no I/O).
Re:Ubuntu Unity running on Windows 10 by pritambaral on Sunday July 10, 2016 @03:12PM (#12066792)
How did you test it?
Re:Ubuntu Unity running on Windows 10 by CJefferson on Sunday July 10, 2016 @05:00PM (#12067246)
Just using a CPU intensive application I work on (GAP, a computer algebra system), on my laptop.

I'm hoping we can kill our current windows build, and require people install bash for windows.

Re:Ubuntu Unity running on Windows 10 by pritambaral on Monday July 11, 2016 @07:47AM (#12070372)
Maybe the resources required to run just one bash instance (and whatever you run within it) is lower than the resources required to run whatever DE you had on Linux (Unity is notorious) enough for it to show?

When I asked how you tested, I was looking for a more detailed answer: what were the environments, the hardwares, what does the cli app you used do (CPU, IO, allocation etc.) (this you answered), etc.

---

I normally run a KDE session, which takes up some memory and the KDE ecosystem aren't the lightest users of syscalls (I'm looking at you Konsole), but when I need sheer perf (even for benchmarks), I kill all KDE sessions and switch to an openbox session running st.

Re:Ubuntu Unity running on Windows 10 by CJefferson on Monday July 11, 2016 @08:55AM (#12070681)
Sorry, I didn't do anything that detailed!

I compared a standard Ubuntu install to a standard windows 10 install on a T420 Think pad.

Re:Ubuntu Unity running on Windows 10 by duckingtest on Sunday July 10, 2016 @05:13PM (#12067299)
Is that application in python and uses numpy?
Re:Ubuntu Unity running on Windows 10 by CJefferson on Sunday July 10, 2016 @05:54PM (#12067436)
Nope, a python-like language written in C.