Skip to content(if available)orjump to list(if available)

The Windows Subsystem for Linux is now open source

jjcm

When WSL came out I was absolutely overjoyed - finally an actual linux shell on windows! I use windows for my gaming pc, and I wanted to have a unified gaming/dev box. It felt like the solution.

Over time though more and more small issues with it came up. Packages working not quite right, issues with the barriers between the two, etc. It always felt like there was a little bit more friction with the process.

With Valve really pushing Proton and the state of linux gaming, I've recently swapped over to Ubuntu and Nixos. The friction point moved to the gaming side, but things mostly just work.

Things on linux are rapidly getting better, and having things just work on the development side has been a breath of fresh air. I now feel that it's a better experience than windows w/ WSL, despite some AAA titles not working on linux.

hypercube33

WSL 1 was supposed to be like "Windows on NT" where it emulated the Linux kernal to the NT one. they skipped a ton of features then dumped the whole thing for a containerized virtual machine thing for version 2. Wish the NT one worked out but I get it being complicated.

dbdoskey

If the WSL 1 ended up working, it would have been one of the best historical coincidences in MS's history. A long forgotten feature in the NT kernel, unique to pretty much any other OS out there, used to push it's dominance in the 90's, is revived almost 30 years later, to fight for relevance with Unix based OS, once again. To quote Gorge Lucas, It's like poetry, it rhymes.

pjmlp

I can tell that if POSIX subsystem in Windows NT was actually a good enough UNIX experience, I would never bothered with those Slackware 2.0 install disks.

And the subsystems concept was quite common in micro-computers and mainframes space, Microsoft did not come up with the idea for Windows.

tjoff

WSL 1 works fine. I much prefer it over 2 because I only run windows in a VM and nested virtualization support isn't all there.

Also feels a lot less intrusive for light terminal work.

f1shy

That would not be unique, as is what BSD has done for Linux compatibility basically forever.

pjc50

The essential problem was that critical Windows APIs like CreateProcess and the NTFS file system were far too slow to be used in UNIX-like ways. If you tried to run git or build things in WSL1 - a key use case - it was way slower than doing so on native or VM Linux.

whizzter

Performance was one problem, but imho the biggest was that MMAP semantics were inherited from the NT side and made a lot of applications crash (mmap's created could only be as large as the file's current size as in Windows, while Linux/BSD semantics allows for a mmap larger than the file that's usable without constant remapping as the file grows).

They didn't prioritize it until fixing at a late stage, barely before WSL 2 came out. Sometimes i do wonder if they made a premature decision to move to WSL2 since there was quite a lot of basic applications/runtimes that were crashing due to this fix lacking (Naturally a lot of other new Linux API's like io_uring probably would have made it an api chasing treadmill that they just wanted to circumvent).

dblohm7

Win32 APIs like CreateProcess suck because they have to spend so much time setting up the stuff that allows Win32's application model to mimic that of 16-bit Windows, which was coopreratively multitasked. The NT kernel is much faster at creating processes when it doesn't need to worry about that stuff.

As for NTFS: it's not NTFS specifically, it's the way the I/O system is designed in the NT kernel. Imagine any call from outside that layer transitioning through a stack of filter drivers before actually reaching the implementation. Very powerful stuff, but also very bad for performance.

camtarn

Hm. I used Git on WSL1 for many years, with medium sized repos hosted on a Windows drive, and it worked great. When I moved to WSL2 Git became a whole lot slower - it now takes about 5-8 secs to execute 'git status' where before it was instant.

dmatech

Windows actually created a new process type for this: Pico processes[1]. This allows WSL1 to perform quite a bit better than Cygwin on something like Windows XP.

1. https://learn.microsoft.com/en-us/archive/blogs/wsl/pico-pro...

rcleveng

I know -- I was super excited to see WSL1 and wished it worked. NT when started was the OS/2 personality and back at that time was excited to see NT as the OS to end all OSes (by running them all as a personality).

But WSL2 is freaking incredible, I'm super excited to see this and just wish the rest of windows would move to a Linux kernel and support bash natively everywhere. I was never a fan of powershell, sh/dash/ash/bash seem fine

seniorThrowaway

>But WSL2 is freaking incredible

It's good. But if/when you start using it as your main work platform nagging issues start cropping up. The native linux filesystem inside it cannot actually reclaim space. This isn't very noticeable if you aren't doing intensive things in it, or if you are using it as a throwaway test bed. But if you are really using it, you have to do things like zero out a bunch of space on the WSL disk and then compact it from outside in the Windows OS. Using space from your NTFS partition / drive isn't very usable, the performance is horrible and you can't do things like put your docker graph root in there as it is incompatible. It also doesn't respect capitalization or permissions and I've had to troubleshoot very subtle bugs because of that. Another issue is raw network and device access, it basically isn't possible. Some of these things are likely beyond the intended use of WSL2, in its defense. Just be aware before you start heavily investing your workflow in it. For these use cases a traditional dual boot will work far better and save you much frustration.

reisse

Why not just use Linux then?

The whole point of Windows right now is having a kernel that a) does not shove GPL down the device manufacturer's throat and b) care about driver API stability so that drivers actually work without manufacturer or maintaner intervention every kernel upgrade.

justusthane

> I was never a fan of powershell, sh/dash/ash/bash seem fine

It depends on what you're doing. PowerShell is incredible for Windows sysadmin, and the way it pipes objects between commands rather than text makes it really easy to compose pretty advanced operations.

However, if I'm doing text manipulation, wrangling logs, etc, then yes, absolutely I'm going to use a *nix scripting language.

VBprogrammer

I sometimes say, tongue in cheek slightly, that the best Linux desktop is Windows.

snailscale

For anyone curious (as I was) the basic difference is that WSL1 implemented the Linux syscall table directly whereas WSL2 actually runs Linux on top of some virtual drivers (hypervisor).

mbilker

WSL 2 runs a full Linux kernel under Hyper-V. There are some out-of-tree or staging drivers included in Microsoft's Linux kernel derivative and they publish their kernel sources at https://github.com/microsoft/WSL2-Linux-Kernel.

marshray

Note that in recent versions of Windows, typically the bulk of Windows now runs under a hypervisor (i.e., "in a VM") as well: https://learn.microsoft.com/en-us/windows-hardware/design/de...

ozgrakkurt

I had the same experience. Even installing linux is easier for me now. And with new spyware features of windows, there is really no incentive to use it

herbst

Could have written the exact same sentence when Vista came out. I still wonder when it's finally enough for the poor souls still stuck in windows

BlarfMcFlarf

It’s finally enough for me at least. I’m skipping windows 11 and going to Linux instead.

xeromal

When we die off I guess lol.

I've been using windows since I was 6 or 7. I currently work in a Mac environment and hate it. I worked in a linux one for 5 years. Nothing feels like the first language you learned I guess?

My home computer is windows and it'll be that way until windows stops existing.

Edit: when I say we I mean the people still on windows.

dabockster

I’m actually going long on Windows now after learning about how the Linux kernel is a monolithic kernel, whereas Windows is a “hybrid” microkernel design. It explains so much about some program behavior in Linux (eg crashing Gnome would often cause kernel panics) that you don’t see at all on Windows.

Yeah, the spyware is annoying and stupid. But once you strip it out (it can be removed/blocked), Windows 11 is absolutely rock solid.

jasonm23

Honestly accurate for a dev work machine.

For a gamer... still not quite, but very close.

For the corps ... it's a legacy issue, but that may slip away as a side effect of Trump destroying global soft power and making it a hard sell to remain on a US led platform, purely op sec concerns, the spyware issue will add more weight to that.

gloosx

I truly believe if AAA titles would not release for windows exclusively no-one would have a good reason to use windows really besides inertia.

0xEF

Businesses would. The problem with that is you have decision makers in said businesses who don't know any better, so Microsoft-all-the-things gets pushed down the line. Offices are all trapped on Windows 10/11 and using Teams/Outlook with Exchange/Entra/Azure chugging along in all its misconfigured glory. Heck, half the MSPs I work side-by-side with seem to only offer support on Windows machines.

It gets worse. When we go to the manufacturing side of the building, there's a high chance they're still using Windows 7. Yeah, still! And IT or Controls has no idea what to do with it since, well, it's still working. Is it secure? They don't know because the team is comprised of kids who memorized the CompTIA exams and use Windows 11 at home.

Trying to get the business world to switch to Linux with all that in mind is an impossible task. It's the same as asking an American city to rip out all its old infrastructure at once and replace it with new instead of patching the old. The cost and knowledge required for such a task is unthinkable, to them. Believe me, I've tried.

Microsoft was quite brilliant in the way that they shoehorned their way into the fabric of the way we do business, not just in the US, but on a global scale.

smatija

I would be very happy with Windows 7 on manufacturing side - lots of CNCs that are still in use and supported by manufacturers are still on Windows 98.

vrighter

The higher up have such a hardon for Microsoft, I think it could actually be used as a bridge across the Atlantic ocean. We've already spent years migrating shit off of microsoft platforms onto the newest and latest microsoft platforms.

gloosx

I left some room for myself with "a good reason" :)

When company is forcing you to use something out of inertia, then it's probably not for a good reason.

Actually regarding the "global scale" – I'm not really sure it's true, I think MS has influence mostly in US. Many EU and Asian companies I worked with were using OSX/Linux.

miroljub

Yeah, I totally agree with what's being said here. It's a tough pill to swallow when you realize just how entrenched Microsoft is in the business world, and how difficult it would be to get everyone to make the switch to Linux.

I mean, think about it - most companies are still stuck on Windows 10 or 11, and they're using all those Microsoft services like Teams, Outlook, and Exchange. It's like they're trapped in this Microsoft ecosystem, and it's gonna take a lot more than just a few people saying "hey, let's switch to Linux" to get them out of it.

And don't even get me started on the IT departments in these places. A lot of them are just kids who memorized some CompTIA exams and don't really know what they're doing. They're using Windows 11 at home, but they have no idea how to deal with all the outdated Windows 7 machines that are still being used in manufacturing.

Microsoft, on the other hand, has been really smart about this. They've managed to get their products and services woven into the fabric of how we do business on a global scale. It's gonna take a lot more than just a few open-source projects to change that.

Peanuts99

I think you're underestimating how many businesses rely on Excel alone.

gloosx

You're saying it like there is no alternative and you can't just open and edit same excel files in Libre Office Calc, Google Sheets or Numbers without any problem whatsoever.

b3lvedere

The market is getting more diverse (mobile, steam deck alikes, laptops, consoles, etc), but i guess if you want to quickly earn the most money on your (huge) development investment, you better try and take the biggest piece of the pie first.

Personally i don't really believe in AAA (or UbiSoft's AAAA) titles that much anymore. Strange exclusivity for some console or device may bring some money early on, but i have plenty games in my Steam libary that could run perfectly under many platforms. And most AAA games heavily drop in price after a few months, Nintendo being the sole exception.

bayindirh

AAA and AAAA games became (expensive) gateways to microtransaction based money extraction application, in my opinion.

I enjoy older, smaller games nonproportionately more when compared to big titles which require much more resources and time. Yes they look nice, yes they use every documented and undocumented feature of my GPU, yes "it's so fluffy", but it is not enjoyable, esp. with shoved down microtransactions.

If we're talking FPS, give me any Half-Life (and Portal) title and I'm good. Gameplay first, unique art direction, good story, and a well built universe which is almost palpable with lore.

If we're talking RTS, C&C series, Dune Emperor, Supreme Commander and StarCraft is enough.

ErrorNoBrain

You underestimate how many companies use microsoft business central for various things...

But i also believe there's a lot of special software for laboratories etc, that run on windows only

UltraSane

So many companies use windows server because they don't have anyone who knows Linux.

null

[deleted]

icemelt8

Adobe Photoshop? Microsoft Excel?

gosub100

I was excited about it too, even just having a tmux and using it for grepping and file copying. Then after a year or two on windows, my computer started slowing down. Tale as old as time. I'm not surprised, and some of the issues aren't ms' fault, but nevertheless I see CPU spikes to 100 with several browser tabs open, or the drawing tablet driver goes to 100% cpu usage even though I never even use it. The UX shouldn't degrade like a mechanical system.

garylkz

Curious, if you don't mind answering, do you mainly uses Ubuntu or Nixos, and which one do you liked more ATM?

Regarding Steam, do you install it with distro provided or through Flatpak?

What is the spec of your machine that you do Linux gaming on? I've noticed a notable performance penalty (around 10%, even higher on GPU heavy games) when running games with Proton, which is mainly why I haven't dropped Windows yet.

rcleveng

I try to use debian, since it's a bit older (read: stable) than ubunutu and I've found that if something compiles and runs on debian it'll run on ubunutu and others but the inverse is not true.

cirelli94

It looks like nvidia suffer more of the difference between windows/proton, while AMD difference it's towards zero.

Source: https://www.youtube.com/watch?v=4LI-1Zdk-Ys

graynk

I quite like CachyOS currently. I see no performance penalty (but I also have only a 75 Hz monitor and I haven't tested VR games all that much yet). Currently I'm playing through Kingdom Come Deliverance 2 on ultra with no issues.

CachyOS provides packages for Steam, handles nvidia drivers for you and they even provide their own builds of proton and wine, allegedly compiled with flags for modern hardware + some patches (not sure how much they help though - before Cachy I used Pop OS and also had no problems with performance).

Cachy is based on Arch though, so unless you're ready for your system to potentially break with an update - maybe used something more stable (again - I quite liked Pop OS, it was extremely stable for me)

garylkz

I've been using Arch for 1-3 years now, as far as I can remember the only time that my system "break" was caused by pacman lock got stuck somehow. Aside of that it's pretty stable in general.

RussianCow

> I've noticed a notable performance penalty (around 10%, even higher on GPU heavy games) when running games with Proton, which is mainly why I haven't dropped Windows yet.

I don't mean to dismiss your comment at all, but I'm surprised that such a low overhead would be the primary reason holding you back from switching. The difference between, say, 100 FPS and 91 FPS seems so negligible in my mind that it would be pretty near the bottom on the list of reasons not to switch to Linux.

barrkel

If you don't have an adaptive sync +variable refresh rate) monitor and everything set up to use it, and don't like screen tearing (you enable vsync wait), overrunning the frame budget (e.g 16ms for 60hz) can mean dropping down to half the frame rate.

But I'm hunting for reasons here. A gaming setup should be using adaptive sync so those concerns mostly go away. But there may be problems with Linux support.

garylkz

Don't get me wrong, what I meant is that I only uses windows on games that runs poorly for me, I use Linux as my daily driver.

Regarding fps, it's around 15fps diff, and it's bad in my case because I had a potato machine.

meandmycode

I think actually Linux has come a long way and recently I actually dual booted fedora with windows and fedora was easily my main choice unless gaming.. unfortunately when updating from 41 to 42 there was clearly an issue with the GPU not having drivers for acceleration or cuda, updating the drivers bricked the OS immediately and while I could recover, I spent hours and hours on this and could never get the GPU drivers installed again without bricking it.. ultimately I realised how at mercy of drivers Linux is. I hope though that in the next few years things improve as windows is dismal to work on these days

godzillabrennus

I just had a problem with Windows and Nvidia drivers/CUDA not working properly on a two year old Windows 11 install. I had to reinstall the operating system after days of troubleshooting and attempting different things to get it operational again. It can happen on there as well.

nickserv

Just curious, which games gave you problems?

zamadatix

Unfortunately many of the more popular multiplayer games with anti-cheat tend to consider "made working on Linux" a bug rather than a feature. E.g. Easy Anti-Cheat and Unreal Engine both support Linux natively but Epic still doesn't want to allow it for their own game, Fortnite. https://x.com/TimSweeneyEpic/status/1490565925648715781

rossy

There are even games like Infinity Nikki with anti-cheat that allows the Steam Deck but specifically detects and blocks desktop Linux. You have to wonder if that gets them any real security since the method they use to detect the Deck is probably spoofable.

belthesar

There is more nuance to the anti-cheat systems supporting Linux argument than "it supports it but they won't use it". Turning on Linux support does weaken the security posture of the anti-cheat system, so it's not simply a decision of "it works with Linux, but they won't do it". It is moreso a question of whether the security posture changes for the game with this platform support enabled meet the business requirements. It's not a surprise that games with high MTX revenue do not turn this on, as I imagine this would be the biggest concern with this weaker security posture.

One of the boons of console hardware is also the strict execution environment that is presented on the system. While this of course doesn't prevent all cheating behavior in online games, a large selling point of it as a platform to publishers is not only the market segment available, but the security aspects of the runtime environment.

ozgrakkurt

Really hope valve’s server side anti-cheat will be a success and more competitive games will move over to that.

dncornholio

Nowhere it says they don't want to.

npteljes

For the curious, the protondb front page gives a pretty good overview of the state of Linux gaming:

https://www.protondb.com/

Scrolling to Medals, 50% of all 25.000+ games tracked by the site are playable, either working perfectly or mostly (Platinum or Gold ratings). Another 20% can be alright under specific circumstances, and with compromises (Silver rating).

frollogaston

AoE2:DE has a gold rating, but multiplayer doesn't work at all, and it's not even due to anticheat.

jjcm

Overwatch is the big one - lots of random issues with it. But basically any game with Denuvo DRM is extremely high risk, resulting in either a ban or the game not running at all.

zamalek

Denuvo counts each proton version as a unique activation, might help you avoid this issue going forward

foresto

Can you remember any particular problems in Overwatch? I've been down that road, so there's a chance I might have some info that you would find useful.

One problem that was unsolved last time I checked: Saving highlight videos. It used to work if you told Overwatch to use webm format instead of mp4, but Blizzard broke that somewhere along the line, possibly in the transition to Overwatch 2. (I worked around this with OBS Studio and its replay buffer feature.)

neogodless

When I ran a two month experiment, Hogwart's Legacy and Anno 1800.

The former ran slowly at low settings, with the occasional complete single digit slowdown. On the same laptop in Windows 10, it ran medium settings and easily twice the frame rate, no issues.

The latter wouldn't connect to multiplayer, and would occasionally just crash out.

(Comment written from memory, but I enshrined my experiment here: https://retorch.com/blog/linux-mint.htm )

delduca

For me, Red Dead Redemption 1 via Proton does not work on Pop_OS + NVIDIA.

margorczynski

In general you want to avoid Nvidia if you want to play games on Linux, but maybe things will get better.

la_oveja

i play rdr1 via proton on opensuse + amd and i get better frames than windows

falcojr

https://areweanticheatyet.com/

Anything "denied" won't work ever unless they change their minds. Anything "broken" is...well...broken.

2OEH8eoCRo0

Escape from Tarkov and GTA V (online).

1oooqooq

i think everyone tried that. gpu (games etc) are the only thing holding windows relevant at this point.

i have some 2012 projects were the makefiles also build in msvc. never again.

then 2015 projects with build paths for cygwin. never again.

then some 2019 projects with build scripts making choices to work on msys2/git-bash-for-windows. never again.

now we can build on WSL with just some small changes to an env file because we run a psql container in a different way under wsl... let's see how long we endure until saying never again.

seventhtiger

It's the other way around. You can do very few productive things with Windows other than software development. Almost all other professional software assume Windows.

okanat

> You can do very few productive things with Windows other than software development.

I guess you meant Linux here

mulmen

> gpu (games etc) are the only thing holding windows relevant at this point.

I actually switched to Linux full-time when Starfield wouldn’t run on Windows but worked in Proton. We are now in a world where Valve provides a more sable Windows API than Microsoft. The only limitation now is anti-cheat but that’s a political problem, not a technical one.

kmacdough

For consumers. A load of professional software still exists only for Windows, particularly as you do more niche.

sertraline

It always infuriates me when people say Windows is all about games. Techies are so detached from reality they forget that people have creative hobbies and have to use industrial grade software. Doing creative hobbies on Linux is an act of sadomasochism. And on top of that, Linux and MacOS cannot run software from 3 years ago while Windows can run software from 35 years ago. And on top of that, Linux is completely unusable to Japanese/Chinese speakers due to how hard it is to input the moon runes, and on top of that Wayland breaks the least painful setup that you could have earlier. And on top of that, Wayland people shown a middle finger to all the people who need accessibility features.

No, Windows is not about games, Windows is about being an objectively the most stable pile of garbage there is.

jjcm

A fair comment, but the argument I'd make against that is a lot of those creative tools are moving to the web. I personally work for Figma, and have seen that first hand. UI/UX design was entirely OSX/Windows centric for the last 40 years, and now it's platform agnostic. Even video editors are just at the nacent stage of looking at the web as an editor surface.

Totally hear you though for things like CNC milling software that's meant to stay static for the lifetime of the mill - that's not going anywhere.

baq

And this is why wine/proton are so good: they’re implementing the only defacto stable API that exists.

frollogaston

Yeah, I really like my Mac, but third-party software isn't its strong suit. It's hilarious how often Apple will wholesale break like half the software in existence.

modo_mario

>And on top of that, Linux is completely unusable to Japanese/Chinese speakers due to how hard it is to input the moon runes

How do Deepin and such solve this?

mrguyorama

Linux on HN is always an example of https://xkcd.com/2501/

How many months can you use a Linux desktop to do daily externally mandated processes and not drop down to a bash shell at some point?

Average consumers and users do not want to use the unix utilities that Linux people love so much. Hell, developers barely want to use classic unix utilities to solve problems.

Users do not know what a "mount point" is. Users do not want a case sensitive file system. Users do not want an OOM killer that solves a poor design choice by randomly culling important applications at high utilization.

Users do not care for something that was designed in the 60s before we understood things like interface design and refuses to update or improve due to some weird insistence on unix purity.

Users do not care about ABI stability. They care about using the apps they need to use. That means your platform has to be very easy to support, Linux is not at all easy to support, and at least part of that is a weird entitlement Linux users feel and demonstrate in your support queue.

Hilariously, users DO WANT a centralized app repository for most day to day apps! Linux had this forever, though it had mediocre ergonomics and it was way too easy for an average computer user to manage to nuke their system as Linus Sebastian found out in a very unfortunate timing situation. Linux never managed to turn this potential victory into anything meaningful, because you often had to drop into a bash shell to fix, undo, modify, or whatever an install!

7bit

For me it's Adobe Phuckushop. But yeah, always that one thing holding one back from swapping

liendolucas

I would do it the other way round: use Windows in a virtual machine from Linux. If you are in Windows and have the urge to use Linux, do the proper switch once and for all. You will never look back. I haven't in almost 15 years.

Given what Windows has become and already discussed here on HN I would even hesitate to run it in a virtual machine.

Edit: more than 15 years.

MrPowerGamerBR

Except that if you require anything that is GPU-related (like gaming, Adobe suite apps, etc) you'll need to have a secondary GPU to passthrough it to the VM, which is not something that everyone has.

So, if you don't have a secondary GPU, you'll need to live without graphics acceleration in the VM... so for a lot of people the "oh you just need to use a VM!" solution is not feasible, because most of the software that people want to use that does not run under WINE do require graphics acceleration.

I tried running Photoshop under a VM, but the performance of the QEMU QXL driver is bad, and VirGL does not support Windows guests yet.

VMWare and VirtualBox do have better graphics drivers that do support Windows. I tried using VMWare and the performance was "ok", but still not near the performance of Photoshop on "bare metal".

frollogaston

People throw around the ideas of VMs or WINE like it's trivial. It's really not.

sureglymop

On linux it's quite trivial. KVM is part of the kernel. Installing libvirt and virt-manager makes it really easy to create vms.

I'd say even passing through a GPU is not that hard these days though maybe that depends on hardware configuration more.

vvpan

Tried doing 3d modeling in a Windows VM - couldn't get acceleration to pass through.

voidUpdate

What 3D modelling were you doing that couldn't be done on linux?

robotnikman

I'm hoping that IOMMU capability will be included in consumer graphics cards soon, which would help with this iirc there are rumors of upcoming Intel and AMD cards including it

teaearlgraycold

Quite a lot of people have both integrated Intel graphics and a discrete AMD/NVidia card.

MrPowerGamerBR

Sadly I'm not one of those people because I have a desktop with an AMD Ryzen 7 5800X3D, which does not have an integrated graphics card.

However now that AMD is including integrated GPUs on every AM5 consumer CPU (if I'm not mistaken?), maybe VMs with passthrough will be more common, without requiring people to spend a lot of money buying a secondary GPU.

ThatMedicIsASpy

AMD has SRIOV on the roadmap for consumer gpus which hopefully makes things easier in the future for gpu accelerated VMs

https://www.phoronix.com/news/AMD-GIM-Open-Source

Windows can run GPU accelerated Windows VMs with paravirtualization. But I have no use case for two Windows machines sharing a GPU.

fifteen1506

There is also native context for VirtIO, but for now Windows support is still not planned.

Also note some brave soul implemented 3D support on KVM for Windows. Still in the works and WinUI apps crash for some reason.

leni536

Anything GPU related isn't great in WSL either.

MrPowerGamerBR

True, but I don't have the need to run applications that require GPU under WSL, while I do need to run applications that require the GPU under my current host OS. (and those applications do not run under Linux)

hermitShell

I don’t know why there aren’t full fledged computers in a GPU sized package. Just run windows on your GPU, Linux on your main cpu. There’s some challenges to overcome but I think it would be nice to be able to extend your arm PC with an x86 expansion, or extend your x86 PC with an ARM extension. Ditto for graphics, or other hardware accelerators

Dylan16807

There are computers that size, but I guess you mean with a male PCIe plug on them?

If the card is running its own OS, what's the benefit of combining them that way? A high speed networking link will get you similar results and is flexible and cheap.

If the card isn't running its own OS, it's much easier to put all the CPU cores in the same socket. And the demand for both x86 and Arm cores at the same time is not very high.

tyushk

You may be interested in SmartNICs/DPUs. They're essentially NICs with an on-board full computer. NVIDIA makes an ARM DPU line, and you can pick up the older gen BlueField 2's on eBay for about $400.

pjc50

> full fledged computers in a GPU sized package

.. isn't this just a laptop or a NUC? Isn't there a massive disadvantage in having to share a case or god forbid a PCIe bus with another computer?

zozbot234

There is ongoing work on supporting paravirtualized GPUs with Windows drivers. This is not hardware-based GPU virtualization, and it supports Vulkan in the host and guest not just OpenGL; the host-based side is already supported within QEMU.

Aurornis

> I would do it the other way round: use Windows in a virtual machine from Linux.

Every Windows thread on HN is a reminder of the stark divide between people who need to use Windows for productivity apps and those who don’t.

The apps I need a Windows machine for are not the kind that virtualize nicely. Anything GPU related means Windows has to become the base OS for me.

If you’re running an occasional light tool you can get away with Windows in a VM, but it’s a no-go for things like CAD or games.

sureglymop

Windows in a vm with a passed through GPU is really nice. Although still pretty niche these days it's easier than it used to be. It also works with a single GPU, e.g. on a laptop.

I personally have a desktop PC with an AMD GPU and then another Nvidia GPU that I pass through to windows hosts. I have a hook that changes the display output and switches the inputs using evdev.

madeofpalk

It's really nice if you have two seperate GPUs in your computer?

zargon

I prefer to just have two (or three) GPUs than have Windows as the base OS.

luyu_wu

If you can GPU passthrough (it's quite simple to set up), this is not a large issue. You're right that Linux is sorely lacking in native creative software though!

einpoklum

> who need to use Windows for productivity apps and those who don’t.

LibreOffice has gotten quite good over the years, including decent(ish) MSO file format interoperability, and Thunderbird seems to support Exchange Server.

So, I suppose things like MS Project or MS Visio many not have decent counterparts (maybe, I don't really know), but otherwise, it seems like you don't need-need to use Windows for productivity apps.

stackskipton

Last I looked, Thunderbird used Exchange Web Services to connect to Office365 which Microsoft is getting rid of: https://techcommunity.microsoft.com/blog/exchange/retirement... (I point out Office365 since vast majority of "Exchange" users are on 365)

It also only support email and not calendaring/contacts.

That being said, Office365 Web Client is pretty good at this point and someone who doesn't live in Office all day can probably get along fine with it.

ghotli

Counterpoint: things like the Valve Index for VR simply don't behave well in this environment no matter how much I've worked on getting it there.

I'm not a novice either, $dayjob has me working on the lowest levels of Linux on a daily basis. I did linux from scratch on a Pentium 2 when I was 12. All that to say yes I happen to agree but edge cases are out there. The blanket statement doesn't apply for all use cases

rounce

IMO this is the real blindspot: it's VR support, not Photoshop, or MS Office, or CAD tools (all of which I've got running fine via Wine). I'm guessing the intersection between VR users and Wine users must be really small and I suspect it's because of this that support is so lacking.

SunlitCat

And even more worse with the Vive Pro 2 by HTC which needs a special Windows tool to use all it capabilities...

I would have switched over to Linux if it wouldn't be because of that one.

KZerda

I used Linux as my daily driver for years, before finally switching back to Windows, and then to the Mac. I got tired of things like wine breaking on apps, I got tired of the half-assed replacements for software available on Windows, like GIMP compared to Photoshop. I got tired of the ugly desktop that inevitably occurs once you start needing to mix QT and GTK based apps. Linux is not a panacea.

herbst

I love how subjective these things are.

I hate the half assed commercialised approached for software on both Mac and Windows where you download 50mb+ of electron bullshit for a bash 2 liner with default tools on Linux.

Mostly for windows but when I installed 5+ tools from untrustworthy websites (which they all look like if you aren't used to that) it feels like my computer is likely forever busted with some scamware. But there is no dd, no proper editor, no removing adware and "news" without these tools.

On windows if you want to configure something it's like going into a computer museum where you start in the metro area and end up in UIs straight out of win 95. That's better on Mac, but the UI is depressing (in my opinion) and I always had the feeling my Mac wouldn't need to run that hot if it wouldn't draw shadows, mirroring and weird effects I haven't asked for.

That said. Linux is not a panacea

kobalsky

Running Windows from a ZFS partition with its own dedicated GPU, viewed through looking-glass on the Linux host at 1440p@120Hz, has been super useful.

I set it up originally for gaming, but nowaways I install a lot of disposable software there.

I use Linux guests VMs too (a la Qubes), but sadly there's no guest support for looking-glass on Linux. Native rendering speeds on VMs are something hard to let go.

ActorNightly

The big difference is hardware access.

I used to do VFIO with hardware passthrough so I could have linux but still run windows software like CAD that takes advantage of the gfx card. That was a pain to set up and use.

The other way, its very simple. WSL2 can run ML tasks with just a tiny bit of overhead in moving the data to the card.

lostmsu

PyTorch and most of other ML stuff have native Windows ports.

ActorNightly

Yes but the point is to not do dev on windows, because window "terminal" sucks

password4321

Related: https://www.microsoft.com/en-us/evalcenter/evaluate-windows-... (edit: not https://developer.microsoft.com/en-us/windows/downloads/virt...)

> We currently package our virtual machines for four different virtualization software options: Hyper-V (Gen2), Parallels, VirtualBox, and VMware. These virtual machines contain an evaluation version of Windows that expires on the date posted. If the evaluation period expires, the desktop background will turn black, you will see a persistent desktop notification indicating that the system is not genuine, and the PC will shut down every hour.

Edit: Oops, dead link -- the dev tools evaluation VM hasn't been released for 6+ months. But they do offer Windows evaluations ISO's after registration.

RKFADU_UOFCCLEL

That's how I do it. I don't see the draw for Windows as the main OS, especially with Windows 10+ being dumbed down beyond belief and having seconds of lag to do anything at all. Seems even from this thread that people just want the convenience of a gaming rig in the same box as their work (which is a security issue because games are full of remote code execution vulnerabilities).

tuukkao

WSL 2 is one of the biggest reasons I'm able to be productive as a blind software developer. With it I'm able to enjoy the best desktop screen reader accessibility (Windows and NVDA) as well as the best developer tools (Linux). I hate Microsoft's AI and ads force-feeding as much as anyone else but trust me, you'd do the same if you were in my shoes. Screen reader accessibility on Mac Os is stagnating even faster than the os itself and even though Linux / Gnome accessibility is being worked on, it's still ready only for enthusiasts who don't mind their systems being in a constant state of somewhat broken, as illustrated by this series of blog posts from just a few weeks ago: https://fireborn.mataroa.blog/blog/i-want-to-love-linux-it-d...

protocolture

>Screen reader accessibility on Mac Os is stagnating

Apocryphally, a lot of this was apparently developed at the direct insistence of Steve Jobs who had some run ins with very angry visually impaired people who struggled to use the early iphone/ipad.

That said, my source for this is one of the men who claims to have spoken to Mr Jobs personally, a visually impaired man who had lied to me on several fronts, and was extremely abusive. However I couldn't find anyone inside apple management or legal who would deny his claim. And he seemed to have been set the expectation that he could call the apple CEO at any time.

hodgesrm

Thanks for pointing this out. I'm not visually impaired but even so the graphics and presentation features on Windows seem noticeably better than the competition.

craigaloewen

This is so awesome to hear!!

Night_Thastus

I've been using WSL on and off for Linux development for the last few years.

When it works, it's great! When it doesn't....oh man it sucks. It has been non-stop networking and VPN problems, XServer issues, window scaling issues, hardware accelerated graphics not working, etc. this whole time. I've spent more time trying to fix WSL issues then actually developing software. It's never gotten better.

It's fast. It's powerful. But using it as a daily driver is very painful in my experience. I avoid it as much as possible and do most of my work in MSYS2 instead. Sure, it's much slower. But at least it works consistently and has for years.

90s_dev

I'm still waiting for the day I need to install WSL, but so far git-bash is working just fine.

odie5533

I use WSL as daily drive for dev. Never had any issues. Love it. I use it from VS Code.

Brian_K_White

I still can't use usb-serial devices from within wsl2.

It was possible under wsl1, but wsl1 is an entirely different thing.

"never had any issues" is a meaningless statement. I "never had any issues" with infinite things I never tried to do in the first place.

odie5533

I don't do anything like USB pass through. I use it purely for the linux tooling to support software development. I find it a perfectly suitable system for that purpose and would recommend it.

mrheosuper

there is GUI program to automatic this progress[1]

I have been using WSL to develop Firmware in Zephyr, no problem so far.

[1]: https://blog.golioth.io/usb-support-in-wsl2-now-with-a-gui/

CoolCold

I've tried WSLg for couple of times and all I run was something like xclock to ensure it works. I literally have 0 interest in running GUI Linux apps, so for me it all smooth sailing.

stevenwoo

I think I'm still on a beta version because I'm afraid to update it and breaking all the stuff I have working.

burnte

The beta version actually updates more often than the release group. I use the beta so I get the updates sooner. It's been rock stable for me for YEARS.

Kuraj

These days I don't even use a WSL distro directly, but I do use it as a backend for my Docker Desktop.

wvenable

I use it all the time but then I've never run a GUI application in it.

elif

Every time I praise WSL on hn I pay the karma tax but I will die on this hill. WSL is more powerful than Linux because of how easy it is to run multiple OS on the same computer simultaneously. It's as powerful as Linux with some janky custom local docker wrappers for device support, local storage mapping, and network mapping. Except it's not janky at all. It's an absolute delight to use, out of the box, on a desktop or laptop, with no configuration required.

Edit: for clarity, by "multiple OS" I mean multiple Linux versions. Like if one project has a dependency on Ubuntu22 and another is easier with Ubuntu24. You don't have to stress "do I update my OS?"

thewebguyd

You can accomplish the same with Distrobox on Linux, but there's definitely something to be said about having the best of both worlds by running Windows + WSL.

I honestly think Microsoft could win back some mind share from Apple if they:

* Put out a version of windows without all the crap. Call it Dev edition or something and turn off or down the telemetry, preinstalled stuff, ads, and Copilot. * Put some effort into silicon to get us hardware with no compromises like the Macbooks

I'm on Mac now, and I jump back and forth between Mac laptop and a Linux desktop. I actually prefer Windows + WSL, but ideologically I can't use it. It has potential - PowerToys is fantastic, WSL is great, I actually like PowerShell as a scripting language and the entire new PC set up can now be done with PowerShell + Winget DSC. But, I just can't tolerate the user hostile behavior from Microsoft, nor the stop the world updates that take entirely too long. They should probably do what macOS and Silverblue, etc. do and move to an immutable/read-only base and deploy image based updates instead of whatever janky patching they do now.

Plus, I can't get a laptop that's on par with my M4 Pro. The Surface Laptop 7 (the arm one) comes close, but still not good enough.

nightski

I'm not saying it's a perfect solution, but with Windows 11 Pro and group policy I was able to disable all of the annoying stuff, and because it is group policy it has persisted through several years of updates. It is annoying you have to do this, and it does take some time to get set up right. But it's a solution.

That said I'd pay for a dev edition as you described it, that would be fantastic.

eahm

You can make your own clean version, legally, with this file. https://schneegans.de/windows/unattend-generator.

I get customers and most people don't know about it but it's kind of ridiculous that techy people in a tech forum don't know how to do it.

airstrike

There is no flavor of Windows 11 that is acceptable. Even the UI itself is a disaster. A cornucopia of libraries and paradigms from React Native to legacy APIs as if an interdimensional wave function of bad ideas had collapsed into an OS, but with ads.

yellowapple

Windows LTSC already exists, but Microsoft, in all their wisdom, restricts it to enterprise licensees only, and seems to actively discourage using it as a desktop OS. The first problem is of course fixable with some KMS server shenanigans, but the second can be kinda painful when it comes to keeping drivers up-to-date, installing apps that rely on features LTSC excludes (and doesn't provide an easy way to install manually), etc.

I've often said that if Microsoft had just iterated on Windows 2000 forever I'd probably still be a full-time Windows user. If Microsoft had maintained an LTSC-like Windows variant that was installable from the normal retail installation media and with a normal retail product key (at the very least Pro, but ideally Home), that also likely would have kept me on Windows full-time instead of switching to Linux as my daily driver.

M3L0NM4N

I use Windows 11 IoT Enterprise LTSC, which as far as I'm aware has all the features that Pro has (plus the IoT Enterprise stuff) and zero bloat. I switched to it from my already de-bloated 11 Pro installation (because it removes some telemetry you're normally unable to disable) and have had 0 issues with it. I can't say I activated it using a normal retail product key, however, there are easy solutions to that.

elif

Ya I totally get that. The way I view it is that windows is a glorified driver support layer and any actual work i do is almost exclusively in the Linux container.

When I used to have free time it was great for games too

baq

> I can't get a laptop that's on par with my M4 Pro.

This is the only reason I have not requested a windows laptop from my company. WSL is better for docker development in basically every way than a mac can be (disclaimer: haven't tried orbstack yet, heard good things, but my base assumption is it can't be better than WSL2) except it is literally impossible to get hardware as good as the M3 or M4 for any other OS than macOS.

lodovic

I replaced my m1 with a snapdragon laptop running Win11 and upgraded that to pro. For what I do with it, it runs great with very long battery times, for less than Apple quoted to repair the m1. I don't use the copilot features and haven't seen any ads so far, except maybe for office during setup.

KingOfCoders

(Used 15ys OSX, now Win11)

The biggest difference between OSX and Windows is, Apple adds (some say steal) functionality from competition, and open source. They make it neat. On windows to have something working, you need a WezTerm, Everything for search, Windhawk for a vertical taskbar on the right, Powertoys for an app starter, Folder Size for disc management etc. If you spend a lot of time, Win11 can be ok to work with.

If Powerpoint and Affinity would work on Linux, I'd use Linux though.

pathartl

Maybe just for your specific preferences. Terminal is plenty fine. Vertical taskbar on the right is straight up user preference. PowerToys for an app starter? Like Alfred? The start search does a decent enough job of that. Folder Size is nice, but enumerating all files is very taxing.

p_ing

Oh running Ice to wrangle the menu bar app icons or Rectangle to properly manage windows ('cause Apple screwed that one up) must be unnecessary.

Each OS is going to have extension applications to improve on the OOTB experience. This is an invalid argument to choosing one over the other.

GoblinSlayer

>Windhawk for a vertical taskbar on the right

Huh? Windows supports vertical taskbar.

pjmlp

Outside US and countries of similar income level, Windows is doing quite alright in mindshare, and will keep doing that unless Apples stops pretending being the computer version of audiophile.

I on the other hand cannot get an affordable Mac that has the same GPU, disk space and memory size as my workstation class laptop.

dTal

To the tech savvy, there is essentially only one advantage to running Windows, and that is the ability to run Windows-only software. In all technical respects - control, performance, flexibility - it is inferior to the alternatives. Don't confuse vendor lockin with technology.

I find it dismaying that people on Hacker News willingly submit to incredibly user-hostile behavior from Microsoft and call it "the best of both worlds". Presumably a nontrivial proportion here are building the next generation of software products - and if we don't even respect ourselves, how likely is it that we will respect our users?

wolvesechoes

"I find it dismaying that people on Hacker News willingly submit to incredibly user-hostile behavior from Microsoft"

And I find it funny that the crowd that spends whole days implementing user-hostile features in yet another SaaS crapware has so much to say about Microsoft's bad behavior.

layer8

There is an additional reason: Some (many?) people simply prefer the Windows UI conventions (once you remove all the enshittifications post Windows 7).

alex_smart

I don't think Microsoft losing the mind share has anything to do with software. Macbooks are winning the laptop war because of superior hardware.

pjmlp

Only on countries where people earn salaries big enough to pay for the Apple hardware tax.

pathartl

Superior hardware with terrible software. Also they straight up artificially limit their hardware so they don't cannibalize their sales, which is slightly understandable, but they do it in the dumbest ways. My SOs MacBook Air can only do one external monitor, even though it has the same specs as her work Pro. Oh and good luck actually getting that external display to work, I swear only like 50% of USB-C docks work on the platform.

resource_waste

>Macbooks are winning the laptop war because of superior hardware.

No. This is just you repeating marketing.

No Nvidia chip = B tier at best.

I have a $700 Asus with a 3060 that is better. Go ahead and scale up to a $2000 computer with an Nvidia chip and its so obviously better, there is nothing to debate.

No one cares about performance per watt, its like someone ran a 5k race, came in 3rd and said "Well at least I burned fewer calories than the winner!"

chrsw

This would be fantastic. But Microsoft doesn't have to do this. Their users are captives.

oblio

Some of them are.

But the increasing market share of Macs and even Linux these days plus the ever increasing of OSS initiatives from Microsoft points out that Microsoft knows a lot fewer of their users are as captive as they were in the 90's, for example.

jchw

"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 than one tool that gives you essentially the same thing; I have used both Distrobox and toolbx to quickly drop into a Ubuntu or Fedora shell. It's pretty handy on NixOS if I want to test building some software in a more typical Linux environment. As a bonus, you get working hardware acceleration, graphical applications work out of the box, there is no I/O tax for going over a 9p bridge because there is no 9p bridge, and there is no weird memory balloon issues to deal with because there is no VM and there is no guest kernel.

I get that WSL is revolutionary for Windows users, but I'm sorry, the reason why there's no WSL is because on Linux we don't need to use VMs to use Linux. It's that simple...

ActorNightly

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.

yndoendo

My development is mainly Windows and I prefer Linux host with Windows VM guests. The experience is more stable and I can revert to a snapshot when Windows or Microsoft product update brakes something or new test configuration does. It also allows to backup and retain multiple QA environments that are rarely used, like a client's Oracle DB. It is nice being able to save the VM state at the end of the week and shut it all down so you can start the next right where you left off. Cannot do that when your development environment is the bare metal OS. Windows has known issues of waking a sleeping laptop.

lolinder

In the same spirit if "it depends", there are other options that may work for people with different Linux/Windows balance points:

* Wine is surprisingly good these days for a lot of software. If you only have an app or two that need Windows it is probably worth trying Wine to see if it meets your needs.

* Similarly, if gaming is your thing Valve has made enormous strides in getting the majority of games to work flawlessly on Linux.

* If neither of the above are good enough, dual booting is nearly painless these days, with easy setup and fast boot times across both OSes. I have grub set to boot Linux by default but give me a few seconds to pick Windows instead if I need to do one of the few things that I actually use Windows for.

Which you go for really depends on your ratio of Linux to Windows usage and whether you regularly need to mix the two.

0xfeba

> 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.

robomartin

> For example, I use Solidworks, so I need to run windows.

Right. One of the things a lot of people don't get is the extent to which multidisciplinary workflows require Windows. This is particularly true of web-centric software engineers who simply do not have any exposure to the rest of the engineering universe.

Years ago this was the reason we had to drop using Raspberry Pi's little embedded microcontroller. The company is Linux-centric to such an extent that they simply could not comprehend how telling someone "Just switch to Linux" is in a range between impossible and nonsensical. They were, effectively, asking people to upend their PLM process just for the sake of using a little $0.50 part. You would have to do things like store entire OS images and configurations just to be able to reconstruct and maintain a design iteration from a few years ago.

WSL2 is pretty good. We still haven't fully integrated this into PLM workflows though. That said, what we've done on our machines was to install a separate SSD for WSL2. With that in place, backing-up and maintaining Linux distributions or distributions created in support of a project is much, much easier. This, effectively, in some ways, isolates WSL2 distributions from Windows. I can clone that drive and move it from a Windows 10 machine to a Windows 11 machine and life is good.

For AI workflows with NVIDIA GPU's WSL2 is less than ideal. I don't know if things have changed in this domain since I last looked. Our conclusion from a while back was that, if you have to do AI with the usual toolchains, you need to be on a machine running Linux natively rather than a VM running under Windows. It would be fantastic if this changed and one could run AI workflows on WSL2 without CUDA and other issues. Like I said, I have not checked in probably a year, maybe things are better now?

EDIT: The other reality is that one can have a nice powerful Linux machine next to the Windows box and simply SSH into it to work. Most good IDE's these days support remote development as well. If you are doing something serious, this is probably the best setup. This is what we do.

therein

Did you know that Forscan works flawlessly under Wine if you're not using Bluetooth?

bigfatkitten

I really want to like Windows 11, and I enjoy using WSL, but Microsoft treats me too much like an adversary for me to tolerate it as a daily driver. Only a complete scumbag of a product manager would think pushing Candy Crush ads is a good idea.

I’ve got an airgapped Toughbook that I use for the few Windows apps I really need to talk to strange hardware.

op00to

I run Windows in a VM where I need windows. It’s so much easier to fix a broken Linux installation than a broken Windows installation.

null

[deleted]

ok123456

My coworkers stubbornly try to use WSL instead of Linux directly. They constantly run into corner cases and waste time working around them compared to just using Linux. Some tooling detects that it is running on Windows, and some detects that it is running on Linux. In practice, it's the worst of both worlds.

makeitdouble

Saying running full Linux avoids wasting time on fiddly workarounds kinda blows my mind.

Full hardware support is still not a given, and Windows emulation is still need for so many cases (e.g. games, specialized software etc).

Until I can choose any machine based on form factor and specs alone and just run Linux on it, WSL will the best version of Linux it can run.

CJefferson

What detects it is running on windows out of interest?

I use WSL extensively, with lots of languages, and I’ve never had anything do that.

It’s running in a VM, so that would be some kind of weird VM escape?

jpc0

I would love to hear about these edge cases and which tooling fails to detect they they were launched form linux.

Sounds a lot like a picnic problem but you didn’t give nearly enough details.

awson

If on WSL2, they need

[interop]

appendWindowsPath=false

section in /etc/wsl.conf.

Then everything will go flawlessly.

0x457

> "More powerful than Linux" is silly. It's a VM.

I don't think it's silly. Sure, it's a VM, but it's so nice that I barely reboot into Linux. You get the best of both worlds with WSL.

lxgr

For me, the best part of running Linux as the base OS is not having to deal with Windows.

No ridiculous start menu spam; a sane, non-bloated operating system (imagine being able to update user space libraries without a reboot, due to being able to delete files that other processes still have opened!); being able to back up my data at the file level without relying on weird block-level imaging shenanigans and so much more.

How is inverting the host/guest relationship an improvement on that?

xnickb

But you still get the worst of the Windows world, which is more than many are willing to deal with. I was using windows for years as my main gaming OS, but after they announced W11 being the only way forward. Switching to Linux on the desktop was like a breath of fresh air. I'll leave it at that.

If I were to run an OS on a VM it's gonna be windows, not Linux

palata

> You get the best of both worlds with WSL.

You obviously don't. Maybe WSL is the best compromise for people who need both Windows and Linux.

But it's ridiculous to think that WSL is better than just Linux for people who don't need Windows at all. And that's kind of what the author of this thread seems to imply.

jchw

Similarly powerful would be totally fine. More powerful really is silly. Personally I couldn't make a lot of my workflows work very well with WSL2. Some of the stuff I run is very memory intensive and the behavior is pretty bad for this in WSL2. Their Wayland compositor is also pretty buggy and unpolished last I used it, and I was never able to get hardware acceleration working right even with the special drivers installed, but hopefully they've made some progress on that front.

Having Windows and Linux in the same desktop the way that WSL2 does obviously means that it does add a lot of value, but what you get in the box isn't exactly the same as the thing running natively. Rather than a strict superset or strict subset, it's a bit more like a Venn diagram of strengths.

juancn

Technically it's not a VM, it's a subsystem, the same way Win32, Win64, Posix, OS/2, etc. are.

It's a feature of the NT-family of kernels where you can create many environments sharing the same underlying executive and HAL.

It's a quite interesting way to build an OS: https://en.wikipedia.org/wiki/Architecture_of_Windows_NT

jchw

As everyone said, WSL2 is actually virtual machines and it is what most people are actually using now. That said, I feel the need to chime in and say I actually love WSL1 and I love Windows NT the kernel. It bums me out all the time that we probably won't get major portions of the NT kernel, even an out-of-date version, in some open source form.

I like Linux, and I use Linux as my daily desktop, but it's not because I think Linux or even UNIX is really that elegant. If I had to pick a favorite design it would be Windows NT for sure, even with all its warts. That said, the company behind Windows NT really likes to pile a lot of shit I hate on top of that pretty neat OS design, and now it's full of dubious practices. Automatic "malware submission" on by default, sending apps you download and compile yourself to Microsoft and even executing them in a VM. Forced updates with versions that expire. Unbelievable volumes of network traffic, exfiltrating untold amounts of data from your local machine to Microsoft. Ads and unwanted news all over the UI. Increasing insistence in using a Microsoft account. I could go on and on.

From a technical standpoint I do not think the Linux OS design is superior. I think Linux has some amazing tools and APIs. dmabufs are sweet. Namespaces and cgroups are cool. BPF and it's various integrations are borderline insane. But at its core, ... It's kinda ugly. These things don't all compose nicely and the kernel is an enormous hard-to-tame beast. Windows NT has its design warts too, all over, like the amount of involvement the kernel has in the GUI for historical reasons, and the enormous syscall surface area, and untold amounts of legacy cruft. But all in all, I think the core of what they made is really cool, the subsystems concept is super cool, and it is an OS design that has stood up well to time. I also think the PE format is better than ELF and that it is literally better for the capabilities it doesn't have w.r.t. symbols. Sure it's ugly, in part due to the COFF lineage, but it's functionally very well done IMO.

I feel the need to say this because I think I probably came off as a hater, and tbh I'm not even a hater of WSL2. It's not as cool as WSL1 and subsystems and pico processes, but it's very practical and the 9p bridge works way better than it has any right to.

Thanks for pointing this out.

ori_b

It used to be. They moved to a VM.

Turns out that it's easier to emulate a CPU than syscalls. The CPU churns a lot less, too, which means that once things start working things tend to keep working.

speed_spread

You're thinking of the POSIX personality of Windows NT of old. This was based on Interix and has been deprecated about two decades ago and is now buried so deep that it couldn't be revived.

The new WSL1 uses kernel call translation, like Wine in reverse and WSL2 runs a full blown Linux kernel in a Hyper-V VM. To my knowledge neither of these share anything with the aforementioned POSIX subsystem.

enragedcacti

WSL 2 is actually virtualized despite the name

zargon

WSL1 was a subsystem. WSL2 is mostly a VM.

oblio

They had to give that up because it was too slow, I think for IO. Unfortunate.

anon291

I mean... WINE does the same on windows, but microsoft refuses to release their API docs for all internal APIs. They release WSL by relying on Linux's open-ness, while refusing the same for themselves.

zymhan

The integration between Windows and the WSL VM is far deeper than a typical VM hypervisor.

You cannot claim with a straight face that Virtualbox is easier to use.

cogman10

It's deeper but let's not overblow it.

I think the two fairly deep integrations are window's ability to navigate WSL's filesystem and wslg's fairly good ability to serve up guis.

The filesystem navigation is something that AFAIK can't easily be replicated. wslg, however, is something that other VMs have and can do. It's a bit of a pain, but doable.

What makes WSL nice is the fact that it feels pretty close to being a native terminal that can launch native application.

I do wish that WSL1 was taken further. My biggest grip with WSL is the fact that it is a VM and thus takes a large memory footprint. It'd be nice if the WSL1 approach panned out and we instead had a nice clean compatibility wrapper over winapi for linux applications.

jchw

> The integration between Windows and the WSL VM is far deeper than a typical VM hypervisor.

Sure, but I never claimed otherwise.

> You cannot claim with a straight face that Virtualbox is easier to use.

I also didn't claim that. I wasn't comparing WSL to other virtualization solutions.

WSL2 is cool. Linux doesn't have a tool like WSL2 that manages Linux virtual machines.

The catch 22 is that it doesn't need one. If you want to drop a shell in a virtual environment Linux can do that six ways through Sunday with no hardware VM in sight using the myriad of namespacing technologies available.

So while you don't have WSL2 on Linux, you don't need it. If you just want a ubuntu2204 shell or something, and you want it to magically work, you don't need a huge thing with tons of integration like WSL2. A standalone program can provide all of the functionality.

I have a feeling people might actually be legitimately skeptical. Let me prove this out. I am on NixOS, on a machine that does not have distrobox. It's not even installed, and I don't really have to install it since it's just a simple standalone program. I will do:

    $ nix run nixpkgs#distrobox enter

Here's what happened:

    $ nix run nixpkgs#distrobox enter
    Error: no such container my-distrobox
    Create it now, out of image registry.fedoraproject.org/fedora-toolbox:latest? [Y/n]: Y
    Creating the container my-distrobox
    Trying to pull registry.fedoraproject.org/fedora-toolbox:latest...
    ...
    0f3de909e96d48bd294d138b1a525a6a22621f38cb775a991974313eda1a4119
    Creating 'my-distrobox' using image registry.fedoraproject.org/fedora-toolbox:latest [ OK ]
    Distrobox 'my-distrobox' successfully created.
    To enter, run:

    distrobox enter my-distrobox

    Starting container...                    [ OK ]
    Installing basic packages...             [ OK ]
    Setting up devpts mounts...              [ OK ]
    Setting up read-only mounts...           [ OK ]
    Setting up read-write mounts...          [ OK ]
    Setting up host's sockets integration... [ OK ]
    Integrating host's themes, icons, fonts... [ OK ]
    Setting up distrobox profile...          [ OK ]
    Setting up sudo...                       [ OK ]
    Setting up user groups...                [ OK ]
    Setting up user's group list...          [ OK ]
    Setting up existing user...              [ OK ]
    Ensuring user's access...                [ OK ]

    Container Setup Complete!
    [john@my-distrobox]~% sudo yum install glxgears
    ...
    Complete!
    [john@my-distrobox]~% glxgears
    Running synchronized to the vertical refresh.  The framerate should be
    approximately the same as the monitor refresh rate.
    302 frames in 5.0 seconds = 60.261 FPS
    ^C
No steps omitted. I can install software, including desktop software, including things that need hardware acceleration (yep, even on NixOS where everything is weird) and just run them. There's nothing to configure at all.

That's just Fedora. WSL can run a lot of distros, including Ubuntu. Of course, you can do the same thing with Distrobox. Is it hard? Let's find out by using Ubuntu 22.04 instead, with console output omitted:

   $ distrobox create --image ubuntu:22.04
   ...
   $ distrobox enter ubuntu-22-04
   ...
   $ sudo apt install openarena
   ...
   $ /usr/games/openarena
To be completely, 100% fair: running an old version of Ubuntu like this does actually have one downside: it triggers OpenGL software rendering for me, because the OpenGL drivers in Ubuntu 22.04 are too old to support my relatively new RX 9070 XT. You'd need to install or copy in newer drivers to make it work. There are in fact ways to do that (Ubuntu has no shortage of repos just for getting more up-to-date drivers and they work inside Distrobox pretty much the same way they work in real hardware.) Amusingly, this problem doesn't impact NVIDIA since you can just tell distrobox to copy in the NVIDIA driver verbatim with the --nvidia flag. (One of the few major points in favor of proprietary drivers, I suppose.)

On the other hand, even trying pretty hard (and using special drivers) I could never get hardware acceleration for OpenGL working inside of WSL2, so it could be worse.

That aside, everything works. More complex applications (e.g. file browsers, Krita, Blender) work just fine and you get your normal home folder mapped in just like you'd expect.

damion6

Yes, yes I can. Also does most of everything. WSL has severe issues with hardware translation.

nottorp

> I get that WSL is revolutionary for Windows users

It is... I'm working these days on bringing a legacy windows only application to the 21st century.

We are throwing a WSL container behind it and relying on the huge ecosystem of server software available for Linux to add functionality.

Yes that stuff could run directly on windows, but you'd be a lot more limited in what's supported. Even for some restricted values of supported. And you'd have to reinvent the wheel for a few parts.

sweeter

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

PaulHoule

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…

fsloth

This is very much YMMV thing. There is no objectively best platform. There are different users and requirements.

I’ve been a software developer for 20 years and in _my_ opinion Windows is the best platform for professional software development. I only drop of to linux when need some of the excellent posix tools but my whole work ergonomy is based on Windows shortcuts and Visual Studio.

I’ve been forced to use Mac for the past 1.5y but would prefer not to.

Why would Windows be superior for me? Because that’s where the users are (for the work stuff I did before this latest gig). I started in real time graphics and then spent over a decade in CAD for AEC (developing components for various offerings including SketchUp). The most critical thing for the stuff I did was the need to develop on the same platform as users run the software - C++ is only theoretically platform independent.

Windows API:s are shit for sure for the most part.

But still, from this pov, WSL was and will be the best Linux for me as well.

YMMV.

folkrav

I fully agree with you - "YMMV" is the one true take. Visual Studio has never been particularly attractive to me, my whole workflow is filled with POSIX tools, and my code mostly runs on Docker and Linux servers. Windows is just another thing to worry about for me, be it having to deal with the subtle quirks of WSL not running on raw metal or having to deal with running UNIX-first tooling (or finding alternatives) on Windows. If it wasn't for our work provided machines being Windows by default, and at home, being into VR gaming and audio production (mostly commercial plugins), I'd completely ditch Windows in a heartbeat.

GuB-42

> WSL is more powerful than Linux

This is the kind of statement that makes you pay the karma tax. WSL is great, I use it on a day to day basis. I also use Linux on a day to day basis. And as great as WSL is, for running Linux software on supported hardware, Linux beats WSL hands down. And I mean, of course it does, do you expect a VM to beat native? In the same way that Windows software runs better on Windows. (with a few exceptions on both sides).

Compared to Linux, WSL I/O is slow, graphics is slow and a bit janky, I sometimes get crashes, memory management is suboptimal, networking has some quirks, etc... These problems are typical of VMs as it is hard for the host and guest OS to coordinate resource use. If you have an overpowered computer with plenty of RAM, and are mostly just using the command line, and don't do anything unusual with your network, then sure it may be "better" than Linux. But the truth is that it really depends on your situation.

incoming1211

[flagged]

ben-schaaf

Do you believe the 600+ people with the same problem here: https://github.com/microsoft/WSL/issues/4197

spartanatreyu

WSL 1 had fast IO but couldn't support all features.

WSL 2 supports all features but has famously slow IO.

Example:

1. Shell into WSL

2. Clone a repo

3. Make a bunch of changes to the repo with a program within WSL

4. Run git status (should finish in less than a second)

5. Open repo from a Windows IDE

6. Run git status. This makes windows change each file's permissions, ownership, etc... so it can access the files as git status recursively travels through every file and folder

7. Go for coffee

8. Go for lunch

9. Git status finished after 35 minutes.

10. Close IDE

11. Shell back into WSL

12. Make a change in WSL

13. Run git status from within WSL

14. Wait another 35 minutes as Windows restores each file's ownership and permissions one by one

------------------------------------

The IO overhead is so bad that Microsoft built two new products just to get around it:

1. VSCode WSL remote-client architecture.

VSCode acts as a server within WSL and a client within Windows. Connect both VSCode instances (through proxy/tunnel if needed) and the server can perform the client's File IO ops on behalf of the client rather than letting an Application on Windows try to interact with any of WSL's file systems.

2. Windows DevDrive

Basically set aside a virtual-disk/partition and set it up as a different file system (ReFS) that doesn't use Window's file permissions, ownership and doesn't decrypt then decompress on each file input, doesn't compress then encrypt each file output, and doesn't virus scan the files on usage.

TL;DR Store the files on a network drive and hope race-condition ops from both WSL and Windows don't corrupt any files.

wkat4242

Well, WSL is Linux. It's really just a VM of it (since WSL2, WSL1 was actually running on the windows kernel which was pretty cool).

The big drawback to WSL to me is the slow filesystem access because NTFS sucks. And having to deal with Windows in the first place.

Ps I wouldn't worry about your karma. It's just a number :P

arghwhat

NTFS is not the problem.

The problem is Windows IO filters and whatnot, Microsoft Defender trying to lazily intercept every file operation, and if you're crossing between windows and Linux land, possibly 9pfs network shares.

WSL2's own disk is just a VM image and fairly fast - you're just accessing a single file with some special optimizations. Usually far, far more responsive than anything done by windows itself. Don't do your work in your network-shared windows home folder.

cma

>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 or take as much advantage of the filesystem cache (doubling it if you use the windows drive in both places I think, unless the network drive representation of it doesn't get cached on the WSL2 drive.

teruakohatu

I use it, I am required to use Windows, and it’s a huge improvement over doing Data Science on native Windows, but the terrible filesystem access ruins what otherwise would be a seamless experience.

It’s fine for running small models but when you get to large training sets that don’t fit in RAM it becomes miserable.

There is a line where the convenience of training or developing locally gives way to a larger on demand cloud VM, but on WSL the line is much closer.

xPaw

Slow IO is why I still use wsl1.

psyclobe

This. WSL was SO much more interesting in v1 times.

ohashi

I liked the networking in WSL1 more too

deetz

still use WSL1 also because VMWare runs so dreadfully slow with any kind of Hyper-V enabled - if so, VMWare must also use it, so you get a Type-2 running under a Type-1 the lag is untennable lag and performance.

ActorNightly

>The big drawback to WSL to me is the slow filesystem access because NTFS sucks

Thats if you are going from VM/host. If you use the allocated space for VM, its pretty fast.

JackSlateur

Is it really a NTFS issue ?

The culprit would be the plan9 bits (think of smb or nfs but .. wilder ? why are they using 9P again ?)

garblegarble

I'm guessing they use plan9 because distros already ship support for it, and it's super simple compared to NFS? It doesn't seem like CIFS/NFS would be any faster, and they introduce a lot more complexity.

phendrenad2

Where are you experiencing filesystem slowness? I've been using WSL in some advanced configurations (building Win32 apps by cross-compiling from Linux CLANG and dropping the .exe into a Windows folder, copying large files from Linux->Windows and vice versa, automating Linux with .BAT files, etc.) and I haven't seen this slowness at all.

jmmv

garblegarble

While I can see the subtle distinction you're trying to draw people's attention to (NTFS is not the problem, filesystem operations generally on Windows are the problem) I have to say it seems like a distinction without a difference in real terms. They made a range of changes that seem to produce more complicated code everywhere because the overhead of various filesystem tasks are substantially higher on this OS vs every other OS.

But in the end they had to get the OS vendor to bless their process name anyway, just so the OS would stop doing things that tank the performance for everybody else doing something similar but who haven't opened a direct line up with the OS vendor and got their process name on a list.

This seems like a pain point for the vendor to fix, rather than everybody shipping software to their OS

ndriscoll

I find it to be incredibly janky. Pretty much every every time my computer sleeps (so every morning, at least) I have to restart it because somehow the VM-host networking gets screwed up and VS code connections into the VM stop working. You also can't just put things in your Windows User directory because the filesystem driver is so slow that git commands will take multiple seconds, so now you have two home directories to keep track of. There were also some extremely arcane things I had to fix when setting it up involving host DNS and VPN adapter priority not getting propagated into the VM so networking was completely broken. IIRC time would also not match the host after a sleep and get extremely far out of sync, though I haven't run into that for a while since now I have to reboot Windows constantly anyway.

I don't have a need to run multiple OSes though. All of my tools are Linux based, and in companies that don't let people run Linux, the actual tools of the trade are almost all in a Linux VM because it's the only reasonable way to use them, and everything else is cross-platform. The outer OS just creates needless issues so that you now need to be a power user with two operating systems and their weird interactions.

phendrenad2

> somehow the VM-host networking gets screwed up

> extremely arcane things I had to fix when setting it up involving host DNS and VPN adapter priority not getting propagated into the VM so networking was completely broken

Are you sure you set up the VPN properly? Messing around with Linux configs is a good way to end up with "somehow" bugs like that.

ndriscoll

I don't know how it's set up. That's kind of my point though. I have to now be an expert in Linux and Windows to debug this stuff, which is a waste of my time as someone who's job it is to develop (server, i.e. Linux) software. I had exactly zero issues when I was using Fedora. At one point my company made all of the Linux users move off (we do now have an IT-supported Linux image, but I haven't found the time to re-set up my laptop and don't fully trust that it will work without a bunch of trouble/IT back-and-forth because they also made Windows users start using passkeys), and since then I've seen way more issues with Windows than Linux (e.g. one day my start menu just stopped reacting to me clicking on programs), in addition to things like ads in the lock screen and popups for some XBox pass thing that I had to turn off, which is just insane in a "professional" OS. A lot of days I end up having to hold down the power button to reboot because it just locks up entirely.

OSX was a bit janky with docker filesystem slowness, homebrew being the generally recommended package manager despite being awful (why do I sometimes tap a cask and sometimes pour a bottle? Don't tell me; I don't care. Just make it be "install". Also, don't take "install" as a cue to go update all of my other programs with incompatible versions without asking), annoying 1+ second animations that you can't turn off that make it so the only reasonable way to use your computer is to never maximize a window (with no tiling support of course), and completely broken external monitor support (text is completely illegible IIRC), but Windows takes jank to another level.

By contrast, I never encounter the issues people complain about on Linux. Bluetooth works fine. Wifi works fine. nVidia GPUs and games work fine. Containers are easy to use because they're natively part of the OS. I prefer Linux exactly because I stopped enjoying "tinkering" with my computer like 10 years ago, and I want it to just quietly work without drawing attention to itself (and because Windows 8 and the flat themes that followed were hideous and I was never going to downgrade to that from Windows 7).

arcastroe

Thats odd. I have none of these problems. Sleep doesnt interrupt the VM. And I regularly use the git CLI through WSL on projects living within windows user directories. Both work fine.

emmelaich

FWIW, you can run a VPN (e.g. tailscale) in WSL2. I have WSL2 start up on boot and I can remotely ssh to WSL2 without logging into Windows at all.

I also have tailscale running on Windows itself and they don't conflict.

Flamentono2

I think you might want to give more context.

I use linux. I don't need WSL at all. Not at work nor at home.

So you praise WSL because you use Windows as your main system? Than yes its great. It definitly makes the Windows experience a lot better.

OpenSSH for Windows was also a game changer. Honestly, i have no clue why Microsoft needed so long for that.

raggi

Openssh should have been a game changer but they made a classic openssh porting bug (not reading all bytes from the channel on close) and have now been sat on the fix in “prerelease” for years. I prodded the VP over the group about the issue and they repeatedly made excuses about how the team is too small and getting updates over to the windows team is too hard. That was multiple windows releases ago. Over on GitHub if you look up git receive pack errors being frequent clone problems for windows users you’ll find constant reports ever since the git distribution stopped using its own ssh. I know a bunch of good people at Microsoft, but this leadership is incapable of operating in a user centric manner and shouldn’t be trusted with embedded OSS forks.

frollogaston

I'm a simple man, if I open the shell and `ssh foo@bar.com` doesn't work, I don't use that computer. Idk if Windows has fixed that yet or why it's so hard for them. Also couldn't even find the shell on a Chromebook.

null

[deleted]

JonChesterfield

putty is longer necessary? That would be a wild upgrade in usability for the work laptop, shall go try it

baq

openssh has been an optional windows component for... almost a decade now? including the server, so you can ssh into powershell as easily as into any unix-like. (last time I set it up there was some fiddling with file permissions required for key auth to work, but it does work.)

Mashimo

I dislike using putty, I use the ssh client from WSL. Just feels .. better. And bash/fish history helps.

alex_smart

Dylan16807

On the other hand sometimes the GUI on WSL decides to break and you have to restart the whole thing.

LtWorf

Aged like fine milk

pton_xd

Running a Linux VM on Windows is nicer than just booting into Linux? That's quite a take. Windows is so user-hostile these days that I feel bad for those who have to deal with it. Calling it delightful must be symptomatic of some sort of Stockholm syndrome.

alex_smart

> 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.

dismalaf

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

encom

You need new reasons to hate Linux, because all those issues were solved a while ago.

CoolCold

> Running a Linux VM on Windows is nicer than just booting into Linux

Indeed, it does. Having stable system and not dealing with Linux on Desktop, clear tradoffs (like "just add another 16gb RAM stick in laptop/desktop and you are golden") is great for peace of mind.

The average uptimes on my laptops (note for plural) is ~3 weeks, until next Windows Update to be applied. I don't have nostalgia on the days of using Linux on desktop (~2003 student times, ~2008 giving it one more try, ~2015 as required by dayjob)

Of course it adds up that I can tell people around me (who are not tech guys often, but smart enough to know basic concepts and be able to run bash scripts provided to them) - "yep, machine with 32GB+ of RAM will work fine, choose any you like" - and it works.

aeroevan

I'm confused, in what world does running Linux require more RAM than Windows?

The suspend/hibernate on laptops isn't that great, but tbh I never had great results on windows either (macos is decent though).

And uptimes for desktop systems are similarly just limited by whenever there's a kernel update.

Loocid

This is the opposite of what I've heard. Most often you hear of people installing Linux on old machines due to it performing better than Windows on low resources.

frollogaston

If for some reason I could never use a MacBook again, it wouldn't be easy to decide between Windows or Linux as the host OS on a laptop. Do I want something that's intentionally user-hostile or something that's unintentionally broken a lot?

I'd at least try Linux cause I abhor Microsoft, but idk if it'd work out.

PaulHoule

Maybe it is both-sidesism but the motd you get by default on Ubuntu these days is as bad as any OS. (“Ubuntu Advantage” sounds about as good as https://prospect.org/health/2024-01-12-great-medicare-advant...)

At least the nags in Windows look like modern web-based UI (so far that ‘use Electron’ seems to be the post-Win 8 answer to ‘how to make Windows apps’) in contrast to MacOS which drove my wife crazy with nag dialogs that look like a 1999 refresh of what modal dialogs looked like on the classic Mac in 1984.

MarkusWandel

My acid test for WSL2 was to install the Linux version of Google Chrome in it, and then play Youtube videos fullscreen with that. It worked. Somehow WSL1 was the more impressive hack but how can you argue with what works? WSL2 works fine.

Also 1980s style X11 widgets on the Windows desktop in their own windows? Cool.

MarkusWandel

I have to say too, though, once you get the hang of the way an EFI system boots, it's really good for dual boot. I let the Linux installer mount the undersized existing one as /boot/orig_efi and made a new, bigger EFI system partition. Not only was the UEFI on that particular laptop fine with it, scanning both EFI system partitions for bootable stuff, but also, grub2 installed in the new one automatically included the Windows boot in the old one as a boot option.

Cool because nothing about how Windows boots is intercepted; you can just nuke the new partitions (or overwrite them with a new Linux installation). I still prefer a native Linux boot with "just in case" Windows option to WSL.

efdee

But not having to dual boot and just get both worlds at the same time definitely beats having to dual boot.

phendrenad2

I don't think people are using WSL to avoid problems with dual booting. Dual-booting has become about as simple as it can be, thanks to UEFI, but it's still not exactly fun to have to close all of your open apps to switch to another OS to run just one app.

smw

You get much nicer window decorations if you use the wayland support instead of X11.

hulitu

> You get much nicer window decorations if you use the wayland support instead of X11.

Wayland supports window managers ?

ec109685

Step it up a notch and see if Netflix works w/ its DRM.

pjmlp

Given the layoffs round from last week, in a record earnings year, I wonder if this is a side effect of those layoffs.

tgma

How would a 3% layoff in a big company affect anything unless they want to specifically axe some project? It’s just lubrication for the machine. 3% is less than nothing compared to the bloat in any bigco and let me tell you Microsoft’s reputation is not the leanest of the bunch.

jayd16

They're not uniform across every team and project. Certain projects can be hit very hard while others are not. Outside looking in, all we can really do is speculate.

tgma

Sure we can speculate that 3% is not news. Again, it’s a one way conclusion: I concede if they want to axe a project deliberately, that could show up in the layoff, but projects won’t incidentally get impacted because of a 3%. The causal relationship would be the opposite.

bitmasher9

Didn’t Microsoft use to have annual 10% layoffs? Just culling the lowest performers every year.

int_19h

If you mean stack ranking, the hard 20/70/10 bucketing was in force >15 years ago, but even then it didn't mean that those 10% automatically get fired.

littlestymaar

It's really hard to cut actual bloat when running layoffs, because the more you work the less time you have to do politics and save your ass, so the less productive type of people tend to be pretty resilient to layoffs.

tgma

Have you worked at any of these large companies? It’s really easy actually (practically, not emotionally). It’s usually very obvious and there’s consensus who the bottom 10% are. Politics would affect promotions much more than layoff.

tester756

>Given the layoffs round from last week, in a record earnings year, I wonder if this is a side effect of those layoffs.

Decisions, preparations and execution to open source such projects in big corporations to not happen within a week, two or month.

dec0dedab0de

you could probably say the same about layoffs

tester756

But the knowledge about layoffs is at very high levels at the beginning

Managers learn about lay offs day or two before engineers

jayd16

Can't help but be pessimistic about this or any news coming out of Build, given the circumstances.

90s_dev

Unless they're just flat out lying, no:

> This is the result of a multiyear effort to prepare for this

pjmlp

People lie in court under oath, so excuse my sceptism when key people across .NET, Typescript, Python and AI frameworks have been let go.

mrpippy

Note that this doesn't include lxcore.sys, the kernel side driver that powers WSL 1.

(Also, I'm surprised that WSL 1 is still supported. It must be in maintenance mode though, right?)

boxfire

That's the only part I care about dang. I still use WSL1 and have done a number of interesting hacks to cross the ABI and tunnel windows into "Linux" userspace and I'd like to make that easier/more direct

senlala

I'm very interested in knowing about your hacks! Would you mind sharing a bit more?

I'm also still using WSL1 and was hoping to be able to fix some of it's quirks :(

charcircuit

No, both are still fully supported despite what the numbering may suggest.

your_challenger

WSL is a landmine of bad design. I lost all my data once, and that incident made me switch to a Mac.

Here's how you can lose all your data - and Microsoft engineers won’t care: https://github.com/microsoft/WSL/issues/8992 https://github.com/microsoft/WSL/issues/9830 https://github.com/microsoft/WSL/issues/9049#issuecomment-26...

wbkang

I read your issue, and it's not so different from `sudo rm -rf /` as opposed to an actual design flaw.

your_challenger

`sudo rm -rf /` requires you to be a superuser or provide a password, whereas running `wsl --unregister` does not require elevated privileges.

pxc

I've hit real data loss bugs in WSL, as well— files disappearing, sometimes even rendering the WSL guest unbootable.

dbacar

Mac IS the Sotate of the Art at the developer experience. The only annoyance was the virtualisation on Arm but having UTM/Multipass/Virttualbox now, it is the best. If you are up to too many containers, a linux box would be more preferable.

udev4096

I still can't believe how people use windows as their main system with all the extremely invasive telemetry and bogus "AI" features that hogs a LOT of resources at idle

TrackerFF

I mainly use a computer for:

- Work (heavy usage of Microsoft office apps)

- Audio / recording studio

- Some gaming

- Software development

Unfortunately for me, that's three uses where Windows excels, versus one for Linux.

k8sToGo

Three out of four would also work on a Mac though

paintbox

[flagged]

misja111

I am forced to use Windows at work. Surprisingly many large enterprises use Windows, mostly because of their dependency on Microsoft Office and Exchange. I'm really happy that WSL exists so I have to deal as little with Windows as possible.

At home I still need to have a native Windows laptop because of one application that I use a lot (a backgammon analyser) that runs natively on Windows and is heavily cpu driven. I could run it in a VM but the performance penalty is just too heavy.

LikelyLiar

I play video games that require an anti-cheat, so there's that. But honestly, it's fairly easy to deal with that. You can use the Windows IoT LTSC version and use one of those trusted debloaters. I haven't seen any AI features or bloat in a very long time.

I am not that proficient, I tried it three times, first hurdle is trying to find a distro, making all that research about which ones have more pre-configuration and which ones would be less buggy for your hardware can be a pain.

The thing that attracted me to Linux is the file system and customization. I just wanted to daily drive it, not really for any work. But bugs are just a reality using most DEs available.

In my case once, it even was related to performance, I had to stay the whole day trying to find out why Kubuntu was slower than Windows on my laptop, ended up just being one line in some config file that forced battery-saving performance, I failed to find the post online after encountering the same issue months later after reinstalling the system.

Believe it or not, it's not all sunshine and rainbows, I just realized I use Windows more and more in my dual boot system, so I gave up on using Linux after that.

Mashimo

What AI features hogs a lot of resources on windows?

spixy

Because 90% of software run only on Windows.

As a software dev I understand that having telemetry is a good thing. I dont believe it is "extremely invasive".

And I have no idea what AI features you mean (at least on Win10).

udev4096

It is definitely in win11. Might be less on win10. Maybe try using something like simplewall [0], which shows prompts for every network request that phones home

[0] - https://github.com/henrypp/simplewall

designerarvid

Few people know what Linux is. Most only know that there are "macs" and "pc" and haven't used a personal computer privately at all since they got their first ipad in 2016.

grishka

Some people don't know that computers can be fast. Others modify their system to remove/neutralize all this crap. There are even tools to automate that.

ruszki

It’s not even that difficult to manually remove these from Windows. It’s like a handful of configs. It’s way easier to do that than make (probably) any Linux distro to work with my current and previous setups. Which btw I could never achieve even with considerable amount of tinkering.

udev4096

"Some people are just stupid"

Ylpertnodi

But most are just ignorant. Ignorance, not being a crime, of course.

71bw

Blunt and yet so true

gowthamgts12

i use it only for gaming. no developer i know personally uses windows. either they are on mac or linux.

palata

Not a Windows user, but I think WSL is great. I see a lot of Windows user criticising Linux for... essentially not looking like Windows. "Linux Desktop will never reach mass adoption unless it [something that boils down to 'looks more like Windows']".

The thing is: I consider myself a real Linux user, and I don't want it to look like Windows. And I hate it when Windows people try to push Linux there, just because they want a free-with-no-ads version of Windows.

In that sense, if WSL can keep Windows users on Windows such that they don't come and bother me on Linux, I'm happy :-).

tryauuum

Not a Windows user, but I hate WSL. Looks like microsoft realizing they will lose a generation of developers to linux so they implemented linux inside their OS. Now people won't see the joys of recompiling kernel :)

naikrovek

WSL isn’t Linux implemented in Windows. WSL 1 was, but it is not the good version of WSL that most use.

WSL 2 is a special purpose VM which has ties into Windows in a few key ways to make interoperability easier. You can run a program on Windows and pipe its output to a Linux program for example. Windows and WSL can trade system RAM back and forth as needed. Networking between the two is very smooth.

You can recompile the kernel for WSL all you want, and many do. Microsoft make their changes public as required by the GPL. You can use your own kernel without anything from Microsoft. You can easily create your own WSL distributions, customized to your hearts content.

It’s more than the sum of its parts, really. Feels that way to me, anyway.

CoolCold

I've stopped seeing joys of recompiling kernel [and consequence reboots of servers which easily could take 10 minutes and that's without IPMI /KVM] since 2009-2010

palata

Fortunately, Desktop users never need to recompile their kernel, it's really just a choice.

And I hope that you don't use WSL for servers :).

dd_xplore

People just want to bash Windows left n right. But no other OS in history has been this mature with handling GUI snd and providing the flexibility, customisations etc.

Before I say anything, Windows 11 is bad.

I remember playing with Win98, XP , I would modify many many registry settings, mod binary files to do something with games, you could access all sorts of weird hardware which only had drivers for windows!

Windows 98-7 were best for learning stuff about computers (inner workings etc).

I remember, to remove viruses (XP)I was trying to hard delete system 32 folder, it deleted lots of files and it continued to run!

behnamoh

meanwhile Apple won't even make it easy to boot Asahi Linux on Apple Silicon.

jeroenhd

Buying Apple hardware with the intent on running anything but what Apple wants you to run is setting yourself up for a battle, including trying to use non-Apple hardware with the hardware you purchased. It's why I'm not spending any personal money on Apple hardware.

Could've been worse. At least they're not locking you out of your device like on iPhones and iPads. They don't stop you from running Asahi, they just aren't interested in helping anyone run Asahi.

Microsoft, on the other hand, sells laptops that actively prevent you from running Linux on them. Things get a little blurry once you hit the tablet form factor (Surface devices run on amd64, but are they really that different from an iPad?) where both companies suck equally, though Microsoft also sells tablets that will run Linux once someone bothers to write drivers for them.

mschuster91

Apple might not be releasing documentation on their peripherals, but they went out of their way in making it possible in the first place.

Apple could just have gone and do a straight port of the iOS boot procedure to their ARM Mac lineup... and we'd have been thoroughly screwed, given how long ago the latest untethered bootrom exploit was.

Or they could have pulled a Qualcomm, Samsung et al and just randomly change implementation details between each revision to make life for alt-os implementers hell (which is why so many Android BSP dumps are the way they are, with zero hope of ever getting anything upstream). Instead, to the best of my knowledge the UART on the M series SoCs dates back right to the very first iPod.

The fact that the Asahi Linux people were able to create a GPU driver that surpasses Apple's own in conformance tests [1], despite not having any kind of documentation at all is telling enough - and not just of the pure genius of everyone involved.

[1] https://appleinsider.com/articles/23/08/22/linux-for-apple-s...

ActorNightly

Macs are almost universally seen as developer computers. If you are going to be developer friendly, then you need to do things that are developer friendly. Asahi project is 80% reverse engineering stuff.

int_19h

On the macOS side, https://github.com/lima-vm/lima is the closest equivalent to WSL.

Parallels also has a commercial offering that does some nice GUI-level integration with both Windows and Linux VMs.

My understanding is that these are both built on top of some Apple API, and Parallels actually collaborates with Apple on making it work for their use case. So it's not the first-class support that you get from Microsoft with WSL, but it's still pretty good.

rfoo

Nah, the closest thing to WSL on macOS is OrbStack.

Exactly same experience to WSL - great out of the box experience, easy to use, and insist on using their own patched kernel.

lenerdenator

Apple's opinion is probably that if you want to run a *NIX-like OS on their hardware, you should use MacOS.

Which is... not necessarily wrong.

frollogaston

Eh, I have a Mac but end up SSHing into some Linux machine pretty often. There are too many differences between the two unless I'm using something like Python or JS. Docker helps too, but that's Linux.

Also, it's really annoying that macOS switched to zsh. It's not a drop-in for bash. Yeah you can change it back to bash, but then any Mac-specific help/docs assume zsh because defaults matter. Pretty fundamental thing to have issues with.

zygentoma

You can also use zsh in Linux ;)

tgma

Apple has gone out of their way to build first party virtualization APIs in their OS to boot a Linux VM directly by specifying kernel and initrd on disk. That would be a direct point of comparison to WSL, not Asahi. What are you talking about?

[1]: https://developer.apple.com/documentation/virtualization/vzl...

P.S. They also specifically built Rosetta for Linux to compile x64 Linux binaries into aarch64 to run inside Linux VMs on their machines.

frollogaston

I don't know about any of that, just that as a user, I cannot run Linux on my Mac easily.

tgma

You can’t? Just install UTM for a full VM one-click install (easier than wsl /install and two reboots) or any number of docker thingies that people build for the Mac.

OsrsNeedsf2P

It's easier to dual boot Asahi than Windows. Secure boot and disk partitioning are two examples of roadblocks that are streamlined in the Asahi installation, but quite difficult on Windows

bigyabai

Let's be honest, nobody earnestly expected them to care about running native Linux in the first place. You knew what you got into when you bought the Mac.

flykespice

Really, the only thing that is saving their reputation is their hardware being top notch compared to competition, whose hardware is more "open".

That must be the reason hackers(even here) still insist on buying apple hardware.