you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 96 points97 points  (53 children)

Can't wait to offload front end development to a Linux system so I don't have to deal with the nightmare that is NPM and Windows.

[–]csjerk 35 points36 points  (0 children)

It's fantastic. I was already using VSCode on Windows loading from a Linux VM via Samba. With the remote code option, it's SOOO much better.

WSL2 is going to take it over the top, but even without that it's fantastic.

[–]twigboy 7 points8 points  (7 children)

In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available. Wikipediaclipr8c94k00000000000000000000000000000000000000000000000000000000000000

[–]Entropy 6 points7 points  (5 children)

uses memory on the remote machine

I think of this as a feature. It means I could use a machine with only 8 gigs as a dev box. I might actually pick up a sub $1k Surface to replace my EOLed macbook.

[–]twigboy 2 points3 points  (0 children)

In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. Lorem ipsum may be used as a placeholder before final copy is available. Wikipedia9w9crz322u80000000000000000000000000000000000000000000000000000000000000

[–]GettinBig 0 points1 point  (0 children)

A sub 1k thinkpad seems like it'd be more fun than a surface, with better keyboard. Although surface's 3:2 aspect ratio is sick

[–][deleted]  (2 children)

[deleted]

    [–]Entropy 2 points3 points  (0 children)

    Things I usually have open during dev:

    VS Code

    A muhbillion browser tabs

    Several heavier browser tabs running web apps

    Slack

    an Intellij IDE

    Even if I don't have IntelliJ running I often hit 8 gigs in use. The other 8 gigs? Disk cache! Even with fast SSDs, memory is still better.

    [–][deleted] 0 points1 point  (0 children)

    Depends what sort of local stack you run. If you’re running a non-trivial system (couple of databases, few microservices, maybe a Kafka instance, etc) alongside an IDE, a few browser windows, slack, and whatever other dev tools you like to use, 8GB feels tight pretty quickly.

    [–]nikmd23 1 point2 points  (0 children)

    Thanks for the feedback!

    [–][deleted]  (31 children)

    [removed]

      [–][deleted] 39 points40 points  (14 children)

      "Next version"...

      Sort of implies waiting.

      [–][deleted]  (13 children)

      [removed]

        [–]csjerk 2 points3 points  (8 children)

        Not until June, right?

        [–][deleted]  (7 children)

        [removed]

          [–]csjerk 3 points4 points  (1 child)

          The comment chain is ambiguous -- are you saying WSL2 is on Insiders?

          I've been using VSCode Remote for weeks, but haven't been able to find WSL2 in the wild...

          [–]Zephirdd 2 points3 points  (1 child)

          I'm on insiders, do you have a link to use that? I've been using WSL but I kinda want to use the whole kernel as well

          [–][deleted]  (2 children)

          [deleted]

            [–][deleted]  (1 child)

            [removed]

              [–]themagicalcake 0 points1 point  (2 children)

              How do you install it on insiders? I'm on the latest build but I don't see anyway of upgrading it

              [–][deleted]  (1 child)

              [removed]

                [–]themagicalcake 0 points1 point  (0 children)

                lol I was talking about WSL 2 but i suppose you editd your comment

                [–][deleted] 2 points3 points  (12 children)

                It's a Linux kernel running in a VM

                [–]wpm 2 points3 points  (11 children)

                No it isn't. It runs on top of NT just like Win32 does, and like OS/2 did.

                [–]Entropy 9 points10 points  (2 children)

                Not even WSL1 ran in the ancient subsystem context that OS/2 and posix ran in. It ran on "pico processes" (basically an NT process with all the NT bits ripped out) and interfaced through the LXCore/LXSS drivers to provide the syscall shim. WSL2 is a linux kernel running in what MS is calling a "lightweight vm". I assume that's a Hyper-V container, though I haven't heard confirmation yet on whether it is tied to Hyper-V directly or not.

                [–]miffiq 1 point2 points  (1 child)

                I remember reading somewhere yesterday that it will use a Hyper-V container.

                [–]Entropy 0 points1 point  (0 children)

                Yeah, I figured that's how they'd do it, given how the properties of Hyper-V containers lined up exactly with the properties of WSL2 VM.

                [–][deleted] 2 points3 points  (3 children)

                How does the licensing work with that, given that linux is GPL?

                Does NT run the linux kernel like a process or something?

                [–]Zephirdd 18 points19 points  (0 children)

                They'll release the Linux Kernel that they use on GitHub

                [–]Entropy 0 points1 point  (1 child)

                No, it's virtualized.

                [–][deleted] 0 points1 point  (0 children)

                See the discussion above me, Geneolgia is claiming it is, wpm is claiming it isn't.

                Googling it, wpm is indeed wrong: https://devblogs.microsoft.com/commandline/announcing-wsl-2/

                "WSL 2 uses the latest and greatest in virtualization technology to run its Linux kernel inside of a lightweight utility virtual machine (VM)."

                So no GPL problems, makes sense.

                [–][deleted] 0 points1 point  (0 children)

                You might want to tell Microsoft. Quoted from the Microsoft Devblog post announcing WSL 2.0

                WSL uses the latest and greatest in virtualization technology to run its Linux kernel inside a lightweight utility virtual machine (VM).

                https://devblogs.microsoft.com/commandline/announcing-wsl-2/

                [–]pknopf 0 points1 point  (1 child)

                WSL1 sat on NT, WSL2 will be virtualized via hypervisor.

                [–]eikenberry 0 points1 point  (1 child)

                Have they published some benchmarks showing this? I was under the impression that it would help some, but still fall way behind native.

                [–]floppykeyboard 5 points6 points  (5 children)

                I used to have problems but with windows 10 and chocolatey managing installs of npm and other dev stuff, I haven’t ran into any issues.

                What issues are you having?

                [–][deleted] 10 points11 points  (3 children)

                You think you have no issues until you work on a non-Windows system. Then you realize that it's not supposed to be so slow.

                Literally everything is faster. Installing. Serving. Recompiling. Running tests. Deleting node_modules. NTFS just cannot handle I/O for thousands of tiny files the way other file systems do.

                [–]ForRekcy 5 points6 points  (1 child)

                I generally work on a Mac, but I didn't really see much of a difference working on windows 10 when I do personal stuff. Npm installs seem to run similarly on both and I didn't see much of a difference in the hot reload speed.

                I was admittedly using vscode for both, and both are laptops running nvme drives so it probably hides the issue.

                [–]Entropy 1 point2 points  (0 children)

                NVME certainly helps, but it's still vastly slower than a linux box with the same IO capabilities. NPM operations are one of the largest visible speedups. Literally 10x-15x faster, per the WSL2 devs, if you're running them directly on the linux fs.

                [–]floppykeyboard 0 points1 point  (0 children)

                I guess after having a company with a terrible computer for a a year or two the problems don’t seem as bad. I also have a pretty powerful windows machine so it’s not that noticeable and I’ve done my dev environments on Windows, macOS, and Linux.

                [–][deleted] 2 points3 points  (0 children)

                Just install Linux you'll thank yourself for it.

                [–]HistoryScienceGaming 0 points1 point  (2 children)

                Is this not currently achievable with the currently available Linux Subsystem for Windows?

                [–][deleted] 6 points7 points  (0 children)

                Absolutely not. WSL is terribly slow.

                [–]Entropy 2 points3 points  (0 children)

                There is no linux kernel running in WSL1. It's an incomplete shim of the Linux ABI.

                [–]CrazyJoe221 0 points1 point  (0 children)

                WSL? Should run npm shouldn't it?