Re:Windows Subsystem for Linux 2 Moving into General Availab...
by AaronFriel on Wednesday April 15, 2020 @01:46AM
(#22874921)
You can convert WSL2 to WSL1! There's an argument to wsl.exe you can use to go back.
Do it, free yourself (and your kernel)
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by squaresmile on Wednesday April 15, 2020 @06:43AM
(#22876281)
I feel like they don't advertise this enough. I was under the impression that it's a one way street from wsl1 to wsl2. Since wsl2 is not strictly better than wsl1, it's nice to be able to convert and pick the trade-offs you want.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by WorldMaker on Wednesday April 15, 2020 @12:57PM
(#22880082)
Yeah, the mistake of using numbers instead of names gives the impression that 2 is strictly better than 1 and that migrations are unidirectional upgrades.
Even just letters like WSL-A and WSL-B might have given a better impression.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by dleslie on Wednesday April 15, 2020 @01:48AM
(#22874934)
Will do! Thank-you.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by nickjj on Wednesday April 15, 2020 @06:35AM
(#22876246)
Is your git repo inside of the WSL2 file system or mounted through a Windows directory like it would have been with WSL1?
The supposed speed boosts of WSL2 requires having your files living directly inside of WSL2's file system.
I haven't tried WSL2 yet since I'm waiting for it to hit stable.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by Zekio on Wednesday April 15, 2020 @02:04AM
(#22875033)
why not use git natively? I've never understood why people use git in WSL since the IO performance isn't great
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by tsimionescu on Wednesday April 15, 2020 @03:24AM
(#22875391)
Unfortunately Git on Windows is also extremely slow. Especially using Magit in emacs, which does a lot of git calls, works much, much faster for me if it's sshing to a Linux VM for each call then running natively on Windows.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by vbezhenar on Wednesday April 15, 2020 @09:43AM
(#22877575)
Git is not slow for me. Don't know about Emacs, but I'm using git from command line and from Idea and it works just fine, instantly for ordinary tasks. Commiting 1000+ files takes few seconds.
Given the fact that Git is used for Windows development with monster monorepository, I think that something's wrong with your setup rather than Git on Windows in general.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by tsimionescu on Wednesday April 15, 2020 @06:21PM
(#22883793)
Git itself is decent, the problem is that Magit calls git a lot of times for a single GUI action. For some things, it can call git 5-10 times for a single key press. If every git invocation is around 1 second, that becomes a noticeable delay...
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by jfkebwjsbx on Wednesday April 15, 2020 @04:14AM
(#22875606)
That may have been the case in the past, but Microsoft put some effort into making Git faster in Windows.
Also, remember to disable the antivirus for your Git folder!
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by tsimionescu on Wednesday April 15, 2020 @06:39PM
(#22883967)
If only that were up to me... Company laptop, company antivirus, company code...
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by dleslie on Wednesday April 15, 2020 @02:07AM
(#22875052)
I use Emacs in WSL, along with a suite of other tools like rust-analyzer, and the experience is _lightyears_ beyond trying to run those tools under regular Windows.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by mtzet on Wednesday April 15, 2020 @02:12AM
(#22875077)
Can't you just store your repositories in the ext4 partition then?
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by dleslie on Wednesday April 15, 2020 @02:13AM
(#22875083)
I need them available to Windows tools, like Visual Studio and Unity.
Re:Windows Subsystem for Linux 2 Moving into General Availab...
by nindalf on Wednesday April 15, 2020 @02:24AM
(#22875133)
I think the popular Windows development tools will get support for remote development with WSL. JetBrains is working on it for IntelliJ and I can't imagine Visual Studio will be far behind.
Shame, it was really good.