7 ms·
I am giving up. WSL1 was a great invention but Microsoft gave up on it, either because of the filesystem performance problems or because of the debuggers. http
by chx 7y ago
I am giving up.
WSL1 was a great invention but Microsoft gave up on it, either because of the filesystem performance problems or because of the debuggers. https://github.com/microsoft/WSL/issues/2028 https://github.com/microsoft/WSL/issues/2028 (lldb, rr, delve all affected). This looks like a dreaded case of the first 90% is easy, it's the second 90% that is hard. Imagine implementing a translator for a vast majority of Linux syscalls just to find certain flavors of ptrace are just not doable. I do not have insider knowledge to ascertain this happened but this would be my educated guess.
WSL2 is a VM like any other VM with an uncertain promise for better networking experience and even less certain promise for cross OS file performance which is much, much worse than WSL1 which was already abominable. https://github.com/microsoft/WSL/issues/4197#issuecomment-604592340 https://github.com/microsoft/WSL/issues/4197#issuecomment-60...
It was a very nice dream, pity it didn't work out.
Because I am using an eGPU Windows 10 needs to stay as the primary OS on the laptop. I bought a little fanless machine from Aliexpress (with laptop-like hardware) for <$300 USD it'll be my home Linux server. What can one do?
I guess https://www.reddit.com/r/VFIO/comments/am10z3/success_thunderbolt_egpu_passthrough_on_dell_9560/ https://www.reddit.com/r/VFIO/comments/am10z3/success_thunde... could be a solution if I wanted to go back to Linux primary but I really badly don't want to. Constant hardware headaches were par for the course -- I was solely Linux 2004-2017. I don't want to be again. If there would be a cheap remote sysadmin service... but it doesn't exist. QuadraNet will sysop a server for $39 a month, that'd be awesome for a laptop... but I have never seen anyone doing that.
- sdegutis 7y agoI guess it's subjective. I've been using Linux on Windows 10 pretty successfully for a year now to do some things that would otherwise be much more inconvenient.
- juped 7y agoWSL was very cool from a pure tech standpoint, but I've never been clear what the actual use case for it was. WSL2 seems to be more along the lines of coLinux, which I felt the same way about when it was new.
- waheoo 7y agoThe usecase was Apple has Terminal.app, Windows has MS-DOS. Tell me which you would rather use for node and or docker development.
- dboreham 7y agoWindows with git and its bash installed works surprisingly well for node development. Docker doesn't work on either MacOS nor Windows, right?
- abhishekjha 7y agoI have used docker on MacOS. I don’t know about windows but it ran fine on my mac. Is there something particular that didn’t work for you?
- geerlingguy 7y agoThere are a number of use cases where Docker for Mac and Windows are painful compared to Linux, and to overcome those problems (like fs performance on shared volumes) people spend a lot of time building hacky solutions.
- jacobr1 7y agodocker for osx uses a linux VM behind the scenes (transparently)
- zxexz 7y agoI use Docker on macOS daily for work. I love it, and am grateful for it, but the experience is NOTHING like using Docker on Linux. Docker for macOS runs in a virtual machine, and requires dedicating RAM to the daemon. You aren’t directly using the host OS’ kernel either, which can lead to wonky behavior, especially in regards to networking (IME).
- RMPR 7y ago
- deleted 7y ago[deleted]
- wutwutwutwut 7y agoI haven't used all variants of VMs but my experience with VMs is very different from WSL2. For example: * Smooth set up. Don't have to install some large commercial 800MB MSI like VMware workstation, download some Linux image, go through partitioning of file system etc. * Well integrated. I can open up a terminal and it acts as any other window in my system (meaning I don't get the window in a window effect as you get with a new VM). * My file system is mapped automatically. No need to set up Shared Folders or whatever manually. * Better startup perf. WSL starts in a second on my computer. Never had the same experience with full VMs. Even if I use something like alpine just starting VMware or VirtualBox takes a lot longer than starting WSL. Saying it is like any other VM seems just incorrect. Saying it didn't work out seems even more misguided.
- ssutch3 7y agoI have been using multipass very successfully the past few weeks. It's a full fat VM and has an experience very similar to that of WSL. https://multipass.run/ https://multipass.run/
- chx 7y agoHow's filesystem performance on a directory mounted with "multipass mount"?
- wtallis 7y ago> Saying it didn't work out seems even more misguided. That may be, but the rest of your comment seems to be unrelated to the matter at hand since you merely listed some advantages of WSL2 instead of addressing the disadvantages that are causing people trouble.
- sz4kerto 7y agoLet's not forget one of the important things of H-V: dynamic memory allocation.
- quotemstr 7y agoNT supports process monitoring, inspection, and alteration in a manner that's already basically a superset of ptrace. As I mentioned in another comment, I can imagine some internal resistance to adding the necessary hooks for complete support eventually making WSL1 infeasible to support --- but for social infeasibility, not technical infeasibility. Big companies that employ lots of smart people frequently seize up and become incapable of innovating because their internal parts mesh against each other and halt the whole machine. I suspect that's what happened here.
- lcnmrn 7y agoWith scoop.sh we don't need WSL1/2 any longer on Windows, except for when we want a real VM.
- devit 7y agoThey control and can change the Windows NT kernel, so anything is doable.