Live data from Hacker News

The Windows Subsystem for Linux is now open source

blogs.windows.com

371–380 of 1001 posts

Re: The Windows Subsystem for Linux is now open source

#371
post #192

Earlier quoted context omitted.

> Forscan for Ford vehicles also has to run under Windows. I've successfully run it with WINE. Thought, my Forscan executable was 3 years old or so and that may have changed, but I doubt it.

why bring wine into a vm discussion? just run windows in a vm too. problem solved without entering the whining about wine not being better than windows itself

I work in embedded systems. In that space, it's pretty common to need some vendor-provided tool that's Windows-only. I often need to automate that tool, maybe as part of a CI/CD pipeline or something.

If I were to do it with a Windows VM, I'd need to:

  1. Create the VM image and figure out how to build/deploy it.
  2. Sort out the Windows licensing concerns.
  3. Figure out how to launch my tool (maybe put an SSH server into the VM).
  4. Figure out how to share the filesystem (maybe rsync-on-SSH? Or an SMB fileshare?).
If I do it with Wine instead, all I need to do is:

  1. Install some pinned version of Wine.
  2. Install my tool into Wine.
  3. Run it directly.

Re: The Windows Subsystem for Linux is now open source

#373
post #187

Earlier quoted context omitted.

>The problem is Windows IO filters Not the biggest issue of them, 'find' and 'git status' on WSL2 in a big project is still >100 times slower on windows dev drive which avoids those filters than it is with WSL 1 on dev drive. WSL 1 on regular ntfs with defender disabled is about 4x slower than WSL1 on dev drive, so that stuff does cause some of it, but WSL2 feels hopelessly slow. And wsl 2 can't share memory as well…

WSL2, in my testing, is orders of magnitude faster at file heavy operations than anything outside WSL, dev drive or not. We have an R&D department that's using WSL2 and jumping through hurdles of forwarding hardware because it's night and day compared to trying under windows on the same machine. It provided other benefits too, but the sheer performance was the main selling point. WSL2 does not take less advantage of…

> Linux's block cache is perfectly capable. HyperV is a semi-serious hypervisor, so it should be using a direct I/O abstraction for writing to the disk image.

Files on the WSL2 disk image work great. They're complaining about accessing files that aren't on the disk image, where everything is relayed over a 9P network filesystem and not a block device. That's the part that gets really slow in WSL2, much slower than WSL1's nearly-native access.

> Memory is also balloning, and can dynamically grow and shrink depending on memory pressure.

In my experience this works pretty badly.

> a proprietary legacy solution with known issues and limited features

Well at least at the launch of WSL2 they said WSL1 wasn't legacy, I'm not sure if that has changed.

But either way you're using a highly proprietary system, and both WSL1 and WSL2 have significant known issues and limited features, neither one clearly better than the other.

Re: The Windows Subsystem for Linux is now open source

#374

Earlier quoted context omitted.

> symptomatic of some sort of Stockholm syndrome I have since moved to macbooks for the hardware, but until not too long ago WSL was my linux "distro" of choice because I didn't want to spend time configuring my computer to make basic things work like suspend/wake on lid down/up, battery life, hardware acceleration for video playback on the browser, display scaling on external monitor and so on.

Who deals with this? All this is fine out of the box on a modern Linux distro.

That was certainly not the case ~2 years ago, the last time I installed linux on a laptop.

It also doesn't appear to be the case even now. I searched for laptops available in my country that fit my budget and for each laptop searched " linux reddit" on google and filtered for results https://www.reddit.com/r/linuxhardware/comments/1hfqptw/linu...

https://www.reddit.com/r/linuxhardware/comments/1esntt3/leno...

https://www.reddit.com/r/linuxhardware/comments/1j3983j/hp_o...

https://www.reddit.com/r/linuxhardware/comments/1k1nsm8/audi...

The laptop with the best reported linux support seemed to be Thinkpad P14s but even there users reported tweaking some config to get fans to run silently and to make the speakers sound acceptable.

https://www.reddit.com/r/thinkpad/comments/1c81rw4/thinkpad_...

Re: The Windows Subsystem for Linux is now open source

#375
post #247

Earlier quoted context omitted.

I preferred WSL to running linux directly even though I had no need for any windows only software. Not having to spend time configuring my computer to make basic things work like suspend/wake on lid down/up, battery life, hardware acceleration for video playback on the browser, display scaling on external monitor and so on was reason enough.

All this usually works out of the box now, especially if you pick your hardware accordingly.

That was certainly not the case ~2 years ago, the last time I installed linux on a laptop.

It also doesn't appear to be the case even now. I searched for laptops available in my country that fit my budget and for each laptop searched " linux reddit" on google and filtered for results https://www.reddit.com/r/linuxhardware/comments/1hfqptw/linu...

https://www.reddit.com/r/linuxhardware/comments/1esntt3/leno...

https://www.reddit.com/r/linuxhardware/comments/1j3983j/hp_o...

https://www.reddit.com/r/linuxhardware/comments/1k1nsm8/audi...

The laptop with the best reported linux support seemed to be Thinkpad P14s but even there users reported tweaking some config to get fans to run silently and to make the speakers sound acceptable.

https://www.reddit.com/r/thinkpad/comments/1c81rw4/thinkpad_...

Re: The Windows Subsystem for Linux is now open source

#376

Why isn't it "Linux Subsystem for Windows" as it is a Linux subsystem running on a Windows os?

I think it's because WSL refers to the Windows subsystem that allows you to run Linux, not to the Linux system itself. You still have to download and install Linux on top of it, or at least you did the last time I used it a few years ago.

Re: The Windows Subsystem for Linux is now open source

#377
post #97

Earlier quoted context omitted.

And if they think that this version of Linux "isn't janky" but regular Linux is, than idk what to say.

With WSL you can use “Linux the good parts” (command line tools, efficient-enough paradigms for fork() servers) and completely avoid X Windows, the Wayland death spiral, 100 revisions of Gnome and KDE that not so much reinvent the wheel but instead show us why the wheel is not square or triangular…

>the Wayland death spiral

That sounds like Wayland getting worse, but it's actually been slowly improving and it's pretty good now. Only took a decade+ to get there.

Re: The Windows Subsystem for Linux is now open source

#378
post #56

Earlier quoted context omitted.

"More powerful than Linux" is silly. It's a VM. The most useful thing is that it does a bunch of convenience features for you. I am not suggesting that it is not extremely convenient, but it's not somehow more powerful than just using Linux. You know what's even more convenient than a VM? Not needing a VM and still having the exact same functionality. And you don't need a bunch of janky wrapper scripts, there's more…

Yeah if you are working with Linux only, its better to go full linux. WSL2 is really handy when you want to run other software though. For example, I use Solidworks, so I need to run windows. Forscan for Ford vehicles also has to run under Windows. Having WSL2 means that I can just have one laptop and run any software that I want.

[deleted]

Re: The Windows Subsystem for Linux is now open source

#379

Earlier quoted context omitted.

Windows supports Linux because the latter is open source, it's a lot easier than the reverse. Linux, on the other hand, barely supports Windows because the latter is closed, and not just closed, windows issues component updates which specifically check if they run in wine and stop running, being actively hostile to a potential Linux host. The two are not equivalent, nobody in the Linux kernel team is actively sabotag…

This. Windows needs to open source its operating system. End of story.

I doubt it would happen, large projects that aren't open source from the onset and are decades old can have licensed or patented code, Microsoft would have to verify line by line that they can open source it.

Re: The Windows Subsystem for Linux is now open source

#380

Earlier quoted context omitted.

Who deals with this? All this is fine out of the box on a modern Linux distro.

That was certainly not the case ~2 years ago, the last time I installed linux on a laptop. It also doesn't appear to be the case even now. I searched for laptops available in my country that fit my budget and for each laptop searched " linux reddit" on google and filtered for results https://www.reddit.com/r/linuxhardware/comments/1hfqptw/linu... https://www.reddit.com/r/linuxhardware/comments/1esntt3/leno... https:/…

> linux

Which Linux? Each distro is essentially a different operating system.

Post reply on HN