93 points · by Borkdude · 6y ago · 86 comments
I've been using WSL 1 + Docker for full time web development since early 2018 on Windows 10 Pro.
Upgraded to WSL 2 when it hit the stable release and it works quite well. The only thing that sucks is mount performance for files outside of WSL 2's file system but if your source code is inside of WSL 2's file system it's very solid.
This is with ~$850 worth of 6 year old hardware too (i5 3.2ghz, 16gb of RAM, 1st generation SSD, etc.). I never bothered to upgrade because everything I do around Flask / Phoenix / Rails / Node development + running Docker / VMs + etc. works great. I do video editing too.
If anyone is curious what it's like, I made a video where I went over all of the tools I use on Windows and WSL 2 to have an acceptable dev environment for Linux based development https://nickjanetakis.com/blog/a-linux-dev-environment-on-wi....
It covers both the Windows tools and how I have everything configured on the WSL 2 side of things (tmux, terminal Vim, etc.).
I only use it for Dropbox since my org files live there but I ended up installing the Dropbox CLI instead.
It kinda sucks though since WSL 2 doesn't have a proper init setup meaning I have to manually start Dropbox's daemon anytime I restart
Does using Powershell instead of CMD solve this for you perhaps (I mean, it does wrt UNC, but I don't know what else you're doing with it)?
You could exclusively run npm commands inside of WSL 2 and never have to touch cmd.exe.
This is the advantage of the development model behind Linux "drivers." People with serious commitment to code quality review them. They typically should work more reliably.
I usually don't complain about anything Windows, but certain OEMs (Dell, HP) clearly care only for hardware. I've been suffering through a comedy of awful drivers, culminating in using my phone to print.
I wish WHQL did more thorough testing.
- have an Ubuntu dev environment,
- while benefiting from Win's RDP
- AND also having access to native Windows for testing.
Because Clojure runs perfectly well on regular Windows, it's not like WSL is required. So otherwise the author would have to have a separate Windows install just for testing.I've been doing Clojure stuff on a pure Windows setup for quite a while and honestly I liked it more than my current Linux setup (only switched because of some linux kernel features I needed).
[0] note that ansi-term is (or used to be) broken on Windows tough , other than that pretty much everything works
Also, most if not all compilers (GCC is a number 1 offender here) are much slower than Linux or macOS under Windows. It all depends on what you do, what kind of user you are and what kind of job you are trying to do. No one uses something worse on purpose, so there sure must be reasons why people still say installing Linux is worth it. WSL is good for those who would have run Linux in a VM anyway, but if you need Linux or if you're just used to it, it's still not enough.
This is not very accurate. Just the compiler/linker (which doesn't need the SDK to build and run programs, i.e. equivalent of getting just gcc) is about 300mb to download. Then, assuming you're talking about the Windows SDK, which as far as I'm aware you only need when targetting OS-specifics is abut 700mb.
Also if we must be fair, Windows still has no way to reliably install Windows updates through SSH, because you apparently cannot elevate yourself, without even if you are logged in as administrator. I still need to RDP into my Windows instances while every other OS can conveniently be updated using just a few shell commands.
If you are forced to use Windows (often corp IT are not competent enough or are simply not willing to spend extra resources on Linux support and are forcing Windows on users), then WLS2 is an option for running Linux. But I'd never pick it as a first choice.
For most of the users doing a lightweight work, it might not be a problem but my repository is extremely huge and building on WSL 2 takes at least 5X more than natives Widnows or MacOS.
https://github.com/microsoft/WSL/issues/4197
edit: My use-case for WSL 2 is that I have codebase that only runs on windows / Linux. Switching between the two is cumbersome and VM takes a hit on performance. If I didn't need Windows then definitley no need to use WSL 2 and just go for Linux/MacOS
It's not perfect, but it's fine. WSL2 is also great for some use cases, but for anything JVM-based I expect first-class support for JetBrains tooling and that really doesn't work well. Keeps me solidly on a Linux desktop for now.
Honestly, Pop_OS! on the same setup is much smoother. Probably something to do with the HiDPI Daemon it has running.
The only flawless operating system on this 4k external setup has been macOS. Can't think of any problems and that's my daily system.
With regard to Win32 apps appearing blurry, I think that's a fair compromise considering Windows heavy focus on backwards compatibility.
On other screens with different dpi basically the only apps that look right are the ones using the latest dpi aware api’s.
Even the Windows issues with HiDPI are non existent on Kubuntu. Really a good OS.
It seems the highest MT score on Geekbench is the Mac Pro W-3275M with 19,189 points.
An AMD Ryzen Threadripper 3990X gets 24,049 points and costs less than $4000.
And WSL2 is good enough for personal development that I use it on my desktop as well -- I don't want to waste time fucking around with drivers or dual booting for something I do infrequently anyways.
I've always found Windows to be the huge pain in the rear end, not Linux.
I hate getting jerked around by Apple but not as much as I hate driver issues.
Sometimes Windows Update can't automatically find an appropriate driver the first time a device is connected and I have to install one manually. Time lost: fifteen minutes, tops.
Linux:
Last time I bought a USB wifi dongle, I bought one with a Linux penguin on the box. It turned out that the driver was a realtek fork and I had to manually apply their patches and rebuild every time my kernel updated. Could never get DKMS working quite right. Time lost: two hours.
I have dual monitors, one running on an Intel integrated card, one running on NVidia. Either one can run on the open source drivers alone, but I cannot activate both at the same time. The Intel drivers output hot garbage when Nouveau is running. There's a "flicker free" mode which eliminates a similar problem, but the Intel driver appears to ignore my config in this duel head configuration. Time lost: eight hours.
Oh, that is changing and very quickly.
Even Microsoft is on board, for some reason.