News for hackers. Stuff that matters.
Re:IBM acquires Red Hat by qwerty456127 on Sunday October 28, 2018 @10:47PM (#18324661)
I wish Cygwin would get more steam, a new package manager and a repository...
Re:IBM acquires Red Hat by mohammedbin on Sunday October 28, 2018 @10:55PM (#18324703)
Why wouldn't you use WSL?
Re:IBM acquires Red Hat by meditate on Sunday October 28, 2018 @11:13PM (#18324790)
I haven't used Windows in quite some time, but I believe they are quite different. WSL is more like a very basic version of Wine in that it implements Linux system calls and can execute ELF binaries, and as such requires you to install a host OS for libc and any other libraries you want. Cygwin is more like Winelib in that it provides a custom libc implementation and toolchain that are natively compiled, and as such requires you to rebuild your applications.
Re:IBM acquires Red Hat by scooter_de on Monday October 29, 2018 @12:16AM (#18325012)
My understanding of WSL is that Linux software runs natively on Windows by virtue of a compatibility layer. Eg. if there is a fork() in my code it will be translated into CreateProcess() or something like that.
Re:IBM acquires Red Hat by _emacsomancer_ on Monday October 29, 2018 @12:51AM (#18325155)
Right, so like what Wine does. (Remember: Wine Is Not an Emulator.)
Re:IBM acquires Red Hat by phs318u on Monday October 29, 2018 @12:34AM (#18325087)
Correct. It's an interesting architecture, if you're interested in reading more:

https://blogs.msdn.microsoft.com/wsl/2016/04/22/windows-subs...

Re:IBM acquires Red Hat by xtracto on Monday October 29, 2018 @10:54PM (#18333703)
I have always been curious on how WSL differs to coLinux or andLinux ( http://www.andlinux.org/ )

About 10/15 years ago I used andLinux to have a Linux shell and other apps inside Windows. It was really good and it seems ahead of its time, as it was not virtualized.

Re:IBM acquires Red Hat by anticensor on Monday October 29, 2018 @11:22AM (#18328220)
WSL is actually backwards analogue of WINE, also described as ENIW.
Re:IBM acquires Red Hat by NotHereNotThere on Monday October 29, 2018 @01:10PM (#18329134)
Emulator Not Is Wine? ;)
Re:IBM acquires Red Hat by anticensor on Tuesday October 30, 2018 @02:52AM (#18334404)
It is actually ENIW:Now inside Windows
Re:IBM acquires Red Hat by mohammedbin on Monday October 29, 2018 @01:56AM (#18325347)
Wine seems basic and immature in comparison to WSL not the other way.
Re:IBM acquires Red Hat by meditate on Monday October 29, 2018 @03:46AM (#18325662)
Wine is a lot broader in scope than WSL, while Microsoft is fine with implementing a kernel-level ABI and then shipping a download for an Ubuntu userspace, Wine cannot ship any official Windows components. They had to re-implement every important DLL from scratch in addition to the ABI.
Re:IBM acquires Red Hat by jsight on Monday October 29, 2018 @10:00AM (#18327555)
I can see why you would think that, but there is a reason that many think the opposite. Wine is obviously less compatible than WSL, but it is also a much more ambitious project. For WSL to work, it "only" has to implement the kernel translation layer and then run the various userspace tools that Linux does (GNU tools, Gnome, etc).

For Wine to implement even enough to run Notepad, Wine needs a reimplementation of huge portions of userspace. Of course, this also means it is a little bit of an Apples to Oranges comparison.

Re:IBM acquires Red Hat by voltagex_ on Sunday October 28, 2018 @11:08PM (#18324773)
Windows < 10/1809 compatibility, ability to ship standalone applications, force of habit, need for something WSL doesn't support.

Ironically, Cygwin might be closer to "native" than WSL is in some cases.

Re:IBM acquires Red Hat by chx on Monday October 29, 2018 @02:30AM (#18325444)
> need for something WSL doesn't support.

Like what...?

> Ironically, Cygwin might be closer to "native" than WSL is in some cases.

Which cases...?

Re:IBM acquires Red Hat by Nullabillity on Monday October 29, 2018 @03:40AM (#18325646)
> Like what...?

SQLite, for one. https://github.com/Microsoft/WSL/issues/2395

Re:IBM acquires Red Hat by qwerty456127 on Sunday October 28, 2018 @11:42PM (#18324897)
Perhaps you're right, maybe WSL can do all the job nicely so maybe there is little if any point in developing cygwin. I have never tried it to be honest. I just prefer Windows 7 and loosely-integrated solutions - a 3rd-party Linux in a box feels better than a Microsoft Linux in the Windows kernel (yet just using a VM doesn't feel great for performance reasons and beacuse of not rally seamless file system integration).
Re:IBM acquires Red Hat by aepiepaey on Monday October 29, 2018 @09:14AM (#18327215)
You could try MSYS2.