Readit News logoReadit News
jhoechtl · 5 years ago
> That’s because with this feature we are automatically starting a companion system distro, containing a Wayland, X server, pulse audio server, and everything else needed to make Linux GUI apps communicate with Windows.

You see me impressed. Especially as they are supporting Wayland. Now please make electron apps non-blurry on Wayland

rowanG077 · 5 years ago
any electron app that is uptodate should no longer be blurry. Electron recently landed support for wayland so xwayland no longer has to be used.
zxzax · 5 years ago
For the curious, see this comment from the electron contributor on how to enable it: https://github.com/electron/electron/pull/26022#issuecomment...
akvadrako · 5 years ago
I would consider electron support for Wayland to be alpha quality at the moment.
zibzab · 5 years ago
Don't hold your breath, some windows apps are still blurry on Windows 10.
ampdepolymerase · 5 years ago
Will ROCm or Pytorch GPU work on Ryzen processors with this new update?
singhrac · 5 years ago
I think you are getting downvoted because you're mixing up terms. Ryzen is a CPU architecture brand (which all the deep learning libraries can use). You're wondering if CUDA-accelerated PyTorch (if there's an NVIDIA card) or a ROCm-modified Linux kernel + PyTorch (if there's an AMD card) would work correctly.

I think that's a reasonable question to ask! I think a lot of this landed earlier though: https://blogs.windows.com/windowsdeveloper/2020/06/17/gpu-ac...

bogwog · 5 years ago
So now developers can stop writing apps for Windows. Instead, they can write for Linux and distribute on Windows using WSL.

Thanks Microsoft!

bachmeier · 5 years ago
Is that a problem for Microsoft? It's not like folks are going to move away from Windows as a result. The reason they run Windows is because that's what they know and that's what's installed on their machine when they buy it. This for the most part eliminates the reason someone would have to move from Windows to Linux.
spinningslate · 5 years ago
Spot on. This is no knit-your-own-yoghurt altruistic move. It's all part of a well-coordinated effort to re-establish Microsoft as _the_ place that everyone does compute. "Commoditize your complement" as Joel Spolsky put it [0]; "windows on every desktop" for the cloud era.

Ballmer went head to head with open source and thought he could crush the threat. That didn't work, and things weren't looking great for MS before he was ousted.

Nadella's strategy is far more subtle: not quite Embrace/Extend/Eliminate, more Embrace/Neutralise/Replace.

Linux is a threat to server-side windows? Fine. Let them deploy on linux, so long as those linux boxes are in Azure. But that means devs get familiar with linux at the expense of windows, which means (a) they'll want linux on their desktop and (b) things are more readily transferable to AWS/GCP/whatever.

So: give them linux _in_ windows. Make appealing tools like vscode available free to create good will and positive sentiment towards Microsoft. Re-build the advocacy that hemorrhaged in the latter days of Ballmer's tenure.

And they're nailing it. By comparison to Google/Facebook/Amazon, there's very little negative press for Microsoft. And lots of positivity, even just in this thread.

It's hard not to be impressed by how successful they're being. And I say that as someone who still bears the scars from the 90s/00s hegemony. Microsoft was positively reviled by swathes of people in those days. Their attitude and market abuses rightly got them into hot water with the DOJ.

So, whilst I respect the turnaround, I'm wary. Microsoft is cruising inexorably back to dominance. History says that wouldn't be a good outcome.

[0]: https://www.joelonsoftware.com/2002/06/12/strategy-letter-v/

wnevets · 5 years ago
>This for the most part eliminates the reason someone would have to move from Windows to Linux.

This 100% describes me. Not only does WSL remove a reason to dump Windows for Linux but it evens removes the need to dual boot. Linux is becoming a Windows App like a browser or media player.

SBArbeit · 5 years ago
No, the reason I run Windows is because I actually love using it and developing applications with it, not because I'm not capable of installing another OS.

Deleted Comment

InitialLastName · 5 years ago
Judging by the performance/UI catastrophe of Outlook, Teams, Windows Terminal and the rest of Office, Microsoft has already stopped writing apps for Windows. Look at them, eating their own dog food.
sandyarmstrong · 5 years ago
Hold up, what's your beef with Windows Terminal? I've really been enjoying it!
xnyan · 5 years ago
>...Windows Terminal...

One of these things is most certainly not like the other. I'm not saying your experience is wrong, just that the general opinion of Windows Terminal is quite positive and can't really be lumped in with the likes of Teams and Outlook.

ocdtrekkie · 5 years ago
I believe Microsoft is expected to replace Outlook with a web app-based version in the next major release. Google Chrome is the new Microsoft development platform, it seems.
dartharva · 5 years ago
I'm not aware of any "performance/UI catastrophe" of any of the apps listed above, any context? Sure, Outlook and Teams have less than ideal UX, but the "rest of Office" is pretty good imo.
Ombudsman · 5 years ago
Pretty sure WSL is a developer tool, so "normal" would still need native apps, unless they go through the hoops of activating WSL so that they can listen to Spotify.
yazaddaruvala · 5 years ago
Before the year 2025, when Windows has switched from the NT kernel to the Linux kernel, we will all ask "What exactly is Windows?" (in the spirit of Theseus' ship) and "Is this outcome really Linux on the desktop/laptop?" (in the sprit of No True Scotsman)

To avoid too much theory lol, my perspective is that MSFT views Windows as the trademarks and the 30+ years of backwards compatibility layers (e.g. Direct3D, WinAPIs, etc), and everything else is already expendable (kernel, drivers, etc). Meanwhile, the (slow?) migration to ARM and Web(Electron + derivatives included) will deprecate the compatibility layers too.

FWIW, I think people will still only develop "for Windows" not develop apps "for all Linux distributions", the same way people develop "for iOS/macOS" not "for all *BSD distributions".

MSFT reduces developers and costs because kernel costs become "a relatively large corporate donation" (tiny compared with the reduced developer salaries) and drivers are created by hardware companies instead. Meanwhile, MSFT increases revenue through Azure, consumer services like gaming, consumer electronics (e.g. VR, Surface, etc), enterprise sales "for the support/compatibility", and increased adoption/street-cred given its now "Linux on the desktop, laptop, AR/VR and tablet". Its simply a no-brainer for MSFT.

This is not a new idea: found one of my responses from 2016 https://news.ycombinator.com/item?id=11390719. There is a parent comment describing Windows as "just another Linux distribution", albeit it'll 1. be the most deployed Linux distribution by a lot and 2. continue to have a closed-source UI toolkit (e.g. Cocoa on macOS).

bscphil · 5 years ago
> Before the year 2025, when Windows has switched from the NT kernel to the Linux kernel

> continue to have a closed-source UI toolkit (e.g. Cocoa on macOS).

The comparison isn't apt. macOS can use BSD licensed programs because it's allowed to create derivative works that are closed source. Anything constituting a derivative work based on the Linux kernel has to be open source because of the GPL's virality.

So unless you think Microsoft will be willing to keep all their custom software restricted to userland (requiring basically everything else to be GPL) it seems extremely unlikely that this will happen. Microsoft is going to want to continue developing an operating system, not merely a Linux distribution.

Obviously I'd love to see it happen, but I find it extraordinarily unlikely for these and other reasons (backwards compatibility? Continuity with previous sysadmin tools?)...

dartharva · 5 years ago
Wouldn't it be easier for MS to just open-source the NT kernel instead of making the big shift to Linux? I can't think Windows' internals (if they ever get exposed) could have been inferior to Linux in any way.
emptyparadise · 5 years ago
I think Microsoft ditching "Windows" is more likely than them ditching "NT" - given that Hyper-V is Azure's bread and butter.
fmakunbound · 5 years ago
Yeah this is just like when IBM's OS/2 ran Windows applications. Software developers thought "Great. I'll just code it once for Windows and be on OS/2 for free!"
tyingq · 5 years ago
s/Thanks/Embrace :)
TimTheTinker · 5 years ago
s/Embrace/Extend

... except that if Microsoft did, likely very few would embrace such extensions.

A successful EEE play requires a lot of pre-existing trust that has to last through the Extend phase, which is why I don't think they'll ever try that again in the foreseeable future.

BuildTheRobots · 5 years ago
I'm still convinced the long term plan is to stop people being able to boot a Linux kernel on desktop hardware (think secure boot) and when people complain the response is going to be "but you can run Linux on Windows!"
ROARosen · 5 years ago
After all, there must be something diabolical when Microsoft is just doing something to appease devs who have for years railed against them for being dev hostile.
siproprio · 5 years ago
If you thought electron apps used a lot of memory, this thing will surprise you [0]:

With WSL2, apps will now use either 50% or 8GB of your available memory.

Happy coding!

[0]: https://github.com/microsoft/WSL/issues/4166

2ion · 5 years ago

    PS C:\Users\2ion> cat .\.wslconfig
    [wsl2]
    memory=6G
    processors=4
These settings are being respected, as far as I can tell. Since when is it not common sense to assign a reasonable amount to a VM? The only thing that does not seem to work well at the moment is a "memory balloon" RAM allocation scheme. WSL2 is a VM, not a shared memory container. They could do better, but RAM is pretty cheap nowadays and WSLg is IMO the much more productive feature.

See https://docs.microsoft.com/en-us/windows/wsl/wsl-config#conf....

HideousKojima · 5 years ago
A single (idle) SQL Server Docker container shouldn't be using 5 GB of ram
ROARosen · 5 years ago
Did you try setting a RAM limit in .wslconfig ?

https://docs.microsoft.com/en-us/windows/wsl/wsl-config#conf...

siproprio · 5 years ago
Also, looking forward for that new gvim 8GB memory footprint new feature!
gfiorav · 5 years ago
Are you sure? I watched the conference and this uses the RDP framework behind the scenes, integrating with Wayland. Why would it consume much more than running natively?
donkarma · 5 years ago
wsl2 is such a downgrade from wsl1
kuroguro · 5 years ago
+1 If I wanted a VM, I would run a VM. Looks like this is WSL2 only :/
xbar · 5 years ago
First I've heard this. I've used neither. What is the major harm of WSL2?
HideousKojima · 5 years ago
That's been going on for a few months already, I have a single Docker image running in WSL2 running SQL Server and it's using 5 GB of memory while idle.
lunfard00 · 5 years ago
Maybe unrelated but I think it is a Hyper-v (w10) issue, not a WSL one. At least same thing happened to me some days ago on one VM running on Hyper-v, it went crazy and consume all my 32gb of ram. It seems to be fixed after reducing the number of cores available to it.

Deleted Comment

whywhywhywhy · 5 years ago
Maybe it's what it's doing for me but I run it for days at a time and it's only taking 2GB.
segmondy · 5 years ago
I'm curious why the parent comment doesn't have an upvote or downvote button.
sangnoir · 5 years ago
It was probably in a cool-off period. HN has a bunch of anti-flamewar features that temporarily discourage voting under specific circumstances.
dleslie · 5 years ago
At least the WSL apps share resources.
1_player · 5 years ago

    PS C:\Users\1_player> cat .\.wslconfig
    [wsl2]
    memory=32GB
Eh, who cares.

siproprio · 5 years ago
I'll gladly accept your machine as a gift to me!

Btw, notebooks have soldiered ram.

NicoJuicy · 5 years ago
It's not exactly wsl is it? Linux considers free memory useless and uses it as cache.

https://www.linuxatemyram.com/

Weird that i didn't knew this. Couple of years ago i wasted some time to get more "free" memory on my server. Lol

Ajedi32 · 5 years ago
That's not really an issue under normal usage; unused memory _is_ useless. The problem is that in this case Linux has to share memory with another OS.
Dylan16807 · 5 years ago
Except that the cache needs to be intelligently shared or split between operating systems, and it's not. Or at least not well, as of 20H2.
salzig · 5 years ago
Maybe it's just me, but after testing Steam on Linux, which promised a good coverage [1][2], i'm more and more feeling like replacing the only left Windows device with linux. The only thing that would make sense for me, is that microsoft should port their UI to linux and handle their backwards compability with wine.

I mean, what is the benefit of keeping their own kernel, when obviously they understand that another kernel and userspace is more and more important, and even used by them selfs.

1: Protondb: https://www.protondb.com/ 2: ProtonDB Discussion: https://news.ycombinator.com/item?id=25333219

larodi · 5 years ago
Microsoft porting ‘their UI’ to whatever sounds like a massive misunderstanding of what Microsoft’s UI is and how it works...
irrational · 5 years ago
Except, not all games on Steam work on Linux. I’m primarily a Mac user, but I have a windows partition on my laptop so that I can play steam games that are Windows only. It would be fantastic if there was no such thing as Windows only games anymore.
salzig · 5 years ago
I so far stumbled upon only a single game that doesn't work on linux for me, and it's not because the game is not working, but because the anti-cheat tool has problems and the game doesn't let me join multiplayer sessions.
dbeley · 5 years ago
I have been primarily using Linux as my main gaming system, and I can say it's pretty great.

Among the games that did run flawlessly for me are The Witcher 3, Skyrim, GTA 5, numerous indie games (Dead Cells, Hollow Knight, Northgard, etc.) and so much more!

dlevine · 5 years ago
I have been a Mac user for many years, and typically used Macs for development and a Windows PC for gaming. I recently setup WSL2 on my new Ryzen desktop, and it has been great for web development. Works pretty seamlessly, and not being able to run GUI apps was one of my few complaints (mostly because I wanted to run a graphical git difftool). Glad to see they have addressed this.
madeofpalk · 5 years ago
This is EXACTLY my story (right to the Ryzen processor). Always been a Mac developer, got windows PC for gaming, then tried to do all my development on it, with WSL making that that actually enjoyable.

The VS Code team has done a phenomenal job with VSCode remotes - it's like magic. Such an incredible architecture that allows them to do that.

salzig · 5 years ago
Hej, almost the same for me, but after seeing steam-proton and wine overall more and more capable of running games, i consider switching to linux. Even Microsoft accepts that linux is so important today, that they started to do a hole lot to emulate/integrate it. Why bother with an emulation, when you can get the real deal?
wvenable · 5 years ago
With WSL1 way back, I ran GUI apps using a Win32 X server. I had some Linux GUI tools that I needed to be able to run and it was pretty seamless.
litoorachure · 5 years ago
I actually still use WSL1 and vcxsrv to do that when I use Windows.

It is seamless, even the icons that show up in the Windows taskbar are correct.

If this new WSL2 experience works just as well, I might finally switch :)

B1FF_PSUVM · 5 years ago
I was somewhat surprised that WSL1 could run the valgrind memory checks at least well enough to match results of basic tests on a real Linux machine.
ohmyzee · 5 years ago
I've always found it to be 99% there. But that 1% prevents you from doing any serious work. Things like mongo become a nightmare when using WSL. Its been entirely frustrating for me. I would have much rather they focused on getting popular libraries to work rather than focus on the flashy GUI features
0x38B · 5 years ago
Yes. On my Surface Go 2, WSL2 got me 99% of the way there, but having to forward my ADB port (for KaiOS dev) and then other issues (unresponsive X apps on resume) led me to install Arch and then wipe Windows.

More specifically: i3 helps me make better use of my limited 10.5" screen AND my limited RAM & CPU. Plus, 'composing' my own desktop environment has advantages: with the help of i3's wonderful docs, customizing things to fit me is easy: foreign city's time next to local? Done. A custom brightness command whose intervals I can adjust? Check.

I loved WSL2 until I discovered the speed of my Arch + i3 install.

johnchristopher · 5 years ago
Isn't it easier to simply run Linux anyway? Either in a VM or barebone?
TimTheTinker · 5 years ago
Very interesting -- especially the fact that CBL-Mariner (Microsoft's internal linux distro) is used to plumb X11/Wayland apps across to a Windows-based RDP client. The complexity involved is a little unreal to behold[0].

I wonder - is Microsoft truly committed to this path of building Linux support into Windows for the long term? Have they considered building an MS Linux distro with support for Windows apps? Perhaps by embedding the actual Win32 COM server, which would function like the COM server in WINE but be multi-threaded.

I'm not a Windows guy, but I'd be sorely tempted to switch from MacOS if Microsoft released a fully-supported Linux distro (with or without Win32 support).

[0] https://github.com/microsoft/wslg#wslg-architecture-overview

john_moscow · 5 years ago
WSL allows some developers targeting Linux to continue using Windows as their main OS. It also makes them more likely to choose Azure over AWS due to integration with the tools. It's a well-planned move that translates into real revenue.

Free fully supported Linux distro with Windows support will only reduce the sales of Windows itself. So no, this isn't happening.

TimTheTinker · 5 years ago
> Free fully supported Linux distro with Windows support will only reduce the sales of Windows itself.

I didn't say free, though that is one option.

I'm thinking if they could build a DisplayPS compositing window manager on top of, say, an MS-supported Ubuntu derivative, make the window manager awesome, market and sell it as Windows NC for Next Century, build in hardware support for everything -- basically go all-in.

Keep the next-gen window manager, core apps, and the Win32/DirectX compatibility layers proprietary, the rest open-source, and license the whole thing. Charge $200 per license or something.

If they did all that, they'd make a killing.

The fact that it's a Linux distro at its core would be a relatively small detail (and a killer feature for developers at the same time). Darwin is also open-source, but MacOS on top is highly proprietary and profit-producing.

nickysielicki · 5 years ago
I tried it. Window resizes and moves are very laggy, but I mean, it's pretty great other than that.

https://i.imgur.com/EBdMKz7.png

Kind of hard to justify buying anything else for a dev laptop at this point.

edit: I feel obligated to mention the code in that screenshot is not something I wrote. https://www.mathblog.dk/project-euler-141investigating-progr...

2ion · 5 years ago
> Kind of hard to justify buying anything else for a dev laptop at this point.

It will be interesting to see how the M1/M2/... series of Apple silicon evolves. If they can deliver graphics performance on par with a low-end nvidia GPU I'm pretty much sold on it in the near future. PC has simply no hardware to compete with that, may it run Linux or Windows.

marrone12 · 5 years ago
Is the performance better or worse than using something like VcXsrv or other vnc forwarding application?
nickysielicki · 5 years ago
Window redraws feel native. It's just moving and resizing that feels weird to me, and I'm sure they'll be able to figure it out soon.

Overall, feels like using X11 forwarding on a LAN.

globular-toast · 5 years ago
> Kind of hard to justify buying anything else for a dev laptop at this point.

Embrace, extend, extinguish. We've reached the final stage already.

nickysielicki · 5 years ago
Meh. I just want to make cool shit.
jjtheblunt · 5 years ago
WSL2 crashes consistently n my own microsoft laptop in current windows, and I've tried diagnosing an improper configuration: how does one work around that?
coder543 · 5 years ago
This doesn't seem like a genuine question. You provide no details, and WSL2 works great for everyone I personally know. You could probably get help there: https://github.com/Microsoft/WSL/issues

But, obviously, you would have to actually be willing to provide meaningful details and not just... what you posted here.

johnvega · 5 years ago
On my 2nd chromebook computer but likely moving back to mostly to Windows because of WSL2.

Just 1 of many benefits: build native Windows GoLang app from WSL2: (Caddy server)

env GOOS=windows go build -o caddy.exe

No need to setup gcc in native Windows. Not sure if this works on all GoLang apps, but at least works for a reasonably complex Caddy server

denysvitali · 5 years ago
I was under the impression that Go cross-compilation between architectures and operating systems wasn't a problem already...

Am I missing something? What does this have to do with WSL 2?

kuschku · 5 years ago
You can compile for windows, on windows, without the pain of setting up a compilation environment on windows.
moondev · 5 years ago
Which chromebook do you have? I was recently tinkering with my pixelbook on the dev channel, I believe you can launch kvm vms from the chromeos 'linux subsystem' it's kind of like WSL2 in reverse but with KVM vs hyper-v. Wonder how a win10 vm would run, although the lack of workstation grade hardware for chromeos seems like it would hold that back. Launching android apps is pretty slick though
chaoticmass · 5 years ago
I have to use a secure Windows laptop for work, but I admin Linux servers. WSL has been great for me, if only so that I can use a real linux command line and terminal instead of PuTTY when I SSH into boxes.