Hacker News new | ask | show | jobs
by rvz 2099 days ago
Use WSL2.

It essentially brings all the Unix stuff from Linux but gives you a Windows desktop with all the same mainstream applications, games, developer tools, etc.

It is the best 'Linux distribution' you can get with a sane Desktop.

1 comments

I'm definitely going to give it a try, but posts like this[1] don't give me too much hope.

From early research, i'm struggling to understand what advantage WSL2 has over Cygwin. Thoughts?

[1]: https://news.ycombinator.com/item?id=22874305

Cygwin was great in 2005, but I don't think they've been playing to win ever since.

The environment they are in is changing and they haven't been putting the effort in to keep up.

WSL was a "better cygwin" in many ways, although it was working at the syscall layer instead of the library layer.

I loved the old WSL but it had the fatal problem, in Microsoft's mind, that filesystem metadata operations on Windows are much slower than they are on Linux and there is no way around it if you want to use NTFS, use the Windows page cache, etc. If you're lucky you might live your life as a developer and not care, but if you're living with the wrong kind of build process on Linux, you will go to Windows and find your 2 minute build is more of a 1 hour build. (It never happened to me in core activities, but boy I ran into this problem with one-off data processing scripts)

Turning off the antivirus helps, but it turns out the filesystem interface in Windows is fundamentally slower than Linux for certain operations -- Microsoft thinks this stops some people from using WSL and they took the desperate act of bypassing the internal filesystem API and running the whole Linux kernel under a VM in WSL 2.

(Which probably chased away more developers than it attracted since WSL 2 is overall not so solid as WSL was for most tasks, and you can live a much more trouble-free life if you install Ubuntu under Hyper-V)

WSL2 ist real Linux :-) I switched from Linux to Windows (company policies ... ), and WSL2 so far works great for me. You can easily run a Linux desktop. Check for Kali Linux s "kex". latency of a native Linux desktop is certainly better, but there's hope that MS will fix this. IIRC native wayland support is in the works.