Windows Terminal + Visual Studio Code + WSL2 is the bee's knees.
Windows Terminal + Visual Studio Code + WSL2 is the bee's knees.
It's getting better all the time though - they tease usb passthrough might be doable as it's already supported with remote desktop
Once they figure that out I might just as well be able to switch over and stop dual booting. I hate dual booting more than I hate Windows, so it would be an improvement.
[1] https://github.com/microsoft/WSL/issues/2195#issuecomment-74...
WSL1 performance is better for CPU-bound problems
WSL2 only shines due to the VHDX approach. If WSL1 could use a VHDX or (gasp!) a native partition in a native linux format, it would smoke WSL2.
The problem with WSL1 is limited to disk IO performance, because the compatibility layer that's easy to do with system calls isn't so easy to do with the filesystem.
> We'd be back to square one, with things like containers being unusable again.
It's complementary. WSL2 when you play with containers, WSL1 when you don't.
Personally, I don't bother with containers for about 90% of the development cycle - and it's just for testing before being deployed to a genuine linux, not some VM.
Also, if you want to run servers with WSL (say, postgres), having containers is the last of your problems.
VHDX/partition would help significantly by not being NTFS and/or enabling a linux-style dentry cache.
No containerization: Agreed, this is a significant limit.
Background services work just fine, I don't know what you're getting at. I have cron and stuff going.
What's improper about the init system? I start services, I stop services, it seems fine.
No kernel modules: I feel like this is pretty niche.
I will say that Docker Desktop works MUCH more smoothly with WSL2 than the prior approach.
About the only issue I see now is about once a month I have to reboot because the magic localhost port mapping between docker, wsl-ubuntu and native host goes wonky. It's not so bad as long as I realize before diving into a rabbit hole to figure out why I can't connect to something.
I can do it fine in WSL1.
Wonder why it is never seen by WSL devs! Most of those trying to use WSL are running Windows, in a corp network, where a VPN is there by default.