• yaaaaayPancakes@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    ·
    1 year ago

    I used WSL extensively at a couple of previous jobs. Sometimes IT only gives you the choice of Windows or Mac. I’m quite happy to have a Linux machine at my current job, but WSL has gotten the job done for me when I lacked that option.

    • avapa@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      My company mandates Windows laptops but I mostly work with Linux VMs hosted on our servers. WSL2 and Visual Studio Code (with Remote SSH and WSL2 plug-ins) are the best things that happened to Windows in years. Without these tools I would simply be unable to work.

  • hungryish@lemmy.world
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    2
    ·
    1 year ago

    My personal computer is Windows mainly because of gaming and game dev, but WSL means I don’t have to dual boot to tinker on a web project or something. In a way, it killed the Linux desktop for me, but I still use Linux as much as ever. With Docker as well.

  • Sestren@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    1 year ago

    I don’t understand the pointless hate over wsl. Sure, it doesn’t replace Linux. It also doesn’t have to… Just having access to basic nix functionality from a windows desktop is still a useful feature. It makes stuff like putty mostly obsolete. It let’s windows users unpack tarballs without 7zip. It let’s developers play video games while “compiling”. It’s just an all-around convenient tool to have.

    Maybe Microsoft wanted it to replace the Linux desktop, but since when has anyone really cared about what Microsoft wanted :P

    • Madmaddy@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 year ago

      Yeah, I don’t see what the big deal is. I won’t be switching from Windows anytime soon, for various reasons, but I very much appreciate being able to have access to a local linux environment without having to dual boot.

    • Square Singer@feddit.de
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Yeah, I don’t get it either.

      While technically different (VM vs compatibility layer), WSL and Wine fill the same role. I have yet to see lots of people bashing Wine for being incomplete and imperfect.

    • CoderKat@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Yeah, I can’t emphasize enough how it can’t replace Linux. And it doesn’t even always work that well for stuff that you’d expect to be able to work there.

      I use Windows for my mostly-for-gaming desktop and because I’m very lazy with dual booting, I usually just use WSL if I wanna do some small thing. Or even some not so small thing. I tried to get stable diffusion working using it. I strongly dislike using the windows command line (I do all my professional dev on Linux and it’s what I’m most comfortable with), so I tried to use the Linux instructions with WSL. Did not go well. Wasted more time than I should have trying to make it work before I just gave up on that idea.

      Not the first time I hit some weird WSL incompatibility either. I really should know better.

    • TriLevelSync@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I spend like 80% of my work day in WSL. Using a Linux image that 100% matches the production environment, docker and k8s integration, and using VScode easily with WSL.

      The big thing that makes is work is all I need is a command line.

      • mcmxci@mimiclem.me
        cake
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Same, I have completely integrate WSL into my workflow. I use devcontainers with VScode and docker in WSL directly skipping docker in windows. It’s great

        • yaaaaayPancakes@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Yes, with WSL2, it’s implemented as a VM on hyper-v. But, that should be treated as an implementation detail, it’s a very light VM, compared to your usual linux VM. And you get the tight integration with the windows side of the machine for free, without fuss.

          It’s very cool that you can have a workflow that starts in powershell, then executes commands in the bash shell, and the results stream right into powershell.

          • indetermin8@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            Is that still true with WSL2? It absolutely was with 1, but when 2 came out everyone said: Forget that we ever had WSL1.

            • yaaaaayPancakes@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Yep. When I last had a windows machine at work I used WSL2 and for my workflow at least, it worked just like WSL1. I do know a few things changed between 1 and 2, but I never encountered them.

  • amanwithausername@vlemmy.netOP
    link
    fedilink
    English
    arrow-up
    14
    ·
    1 year ago

    Transcript:

    [Miracle of the word wide web meme template]
    “Thanks to the miracle of windows subsystem for linux…”
    “…I can use the Linux terminal from the comfort of windows”
    [Computer monitor showing windows update screen]
    “Marvelous”

  • jmanes@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    1 year ago

    I work at Oracle and leverage WSL for for some things. It works… but I wish I could just use Linux. WSL is full of gotchas and weird bugs. Performance is not good either.

    • DigitalBits@lemmy.fmhy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      WSL2 is essentially a VM, and doesn’t seem to have any weird bugs or gotcha’s anymore (at least for command line programs). I don’t use it for work, but playing around with it as a hobby, it seems fairly solid.

      • jmanes@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        I use WSL2. It has bugs. DNS stops working when you connect to a VPN, which I have to do every day for all of my work. To fix that you can either modify the resolv conf (which gets wiped out on every startup) and then chattr it to prevent it from being deleted (this still didn’t quite work for me). Or you can install wsl-vpnkit and pipe all of your network traffic through another container.

        I have been working in docker and rancher desktop, both of which have integrations with WSL but with other caviats and bugs. I basically have a bunch of very highly specific steps written up for other employees for “how to get this working with WSL” because it is so buggy.

        • RyeBread@feddit.de
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          I feel so vinticated reading somebody else going through the DNS hell WSL2+VPN DNS issues. It is a nightmare in professional environments and for the life of me I cannot get my resolv to stop reverting after a while. Thanks for the tip on wsl-vpnkit, much harder to convince VM teams to spin you up a remote dev environment than to just use WSL sometimes.

        • communistcapy@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 year ago

          Tinkering around to get things working is a part of the authentic Linux experience. Performance is 95% to Ubuntu 20.0.4 so not sure what you mean by that. resolv.conf won’t get wiped out if you put

          [networking]
          generateResolvConf = false
          

          in your /etc/wsl.conf file.

          A more modern solution is outlined here which you will want to adjust if you’re using something other than Cisco.

  • addie
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    2
    ·
    1 year ago

    Combines the power of a really half-arsed Linux distro with the pure speed of the Windows file system.

    I mean, it’s slightly better than nothing, but installing a real Linux distro on Windows through eg. VirtualBox absolutely fucks it into the bin. I don’t see who WSL is for. People in really locked-down corporate environments?

    • entropicshart@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      I use it a lot - I use my main rig for gaming and general stuff, but also need to be able to program things; rather than dealing with dual booting and the headaches it brings (including limited hardware support), I use docker with WSL2.

      I am able to launch VS Code or PhpStorm on my local, have it remote into WSL and run things how they’re meant to be ran on a Linux box, without dealing with installing windows specific variants.

      This makes working with things like Laravel/Composer a lot easier and with everything built on docker, deploying to prod is as simple as a docker image push to my registry of choice.

      I also enjoy the benefits of not having a bunch of dependencies sitting around - drop the container and you’re system is as clean as it was before

      • Mayoman68@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I understand that this doesn’t work for everyone but I’m kinda the reverse. My entire workflow relies on Linux, but I occasionally play video games. I’d say any game without aggressive anti cheat works fine on Linux nowadays.

        • TrontheTechie@lemmy.blahaj.zone
          cake
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          The one good thing that came about for me from Reddit was realizing I’m not the target gamer demographic anymore. It really opened up my mind to realize if I’m not enjoying or playing online multiplayer anyways what do I have to lose?

          I was so afraid of potentially missing out on the one or two games I’d actually be interested in playing that I stayed on windows even when it only gave me a pain in the ass every other quarter. Nowadays If the game doesn’t work on Linux it doesn’t deserve my money, and that isn’t as big a compromise as I thought.

        • entropicshart@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I’ve not been able to get full performance of games on Linux; then you add on lack of support for mouse/keyboard/headsets and it just becomes easier to have a windows setup to play games

    • SpaceCadet2000@kbin.social
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I don’t see who WSL is for. People in really locked-down corporate environments?

      That’s me pretty much. Locked down low spec Windows 10 laptop that would probably suffocate under the weight of a full VM anyway, so I’m happy to have access to a proper Linux shell with a nice-ish terminal that’s a lot less clunky than “git bash”, MingW etc.

      I use it for ad hoc scripting and things like interacting with webservices (curl), massaging text files with tools like jq, sed, awk and to use Azure and AWS cli tools to interact with cloud infrastructure.

    • amanwithausername@vlemmy.netOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      1 year ago

      I don’t see who WSL is for.

      My guess is that this time they really wanted to pull the developer demographic over into the M$ sphere of influence. MSYS, MingW, and Git Shell already fill the same niche as WSL, so it wasn’t destined to succeed. Thing is, they probably didn’t expect it to succeed either. Microsoft’s strategy has always been to throw a hundred dicks at the wall and hope that one of them sticks (think Zune, Windows Phone, etc). This time, Azure kind of stuck. WSL didn’t. When you’re as big as Microsoft, the occasional win more than covers the cost of a hundred fails.

  • sol87@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    I think most actual Linux users saw this as expanded access to the Linux environment, and easier ways for Windows users to dip their toes in. That was the feel i got from the general community at the time.

  • zosu@vlemmy.net
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    the worst thing about windows is that you can’t natively change the window manager or desktop environment. that is so backwards. they even removed the ability to move the taskbar wherever you want. this is so weird.

    • CentreMetre@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      Cant move the taskbar? Do you mean in windows 11, cos its possible in windows 10. If so i have just another reason to be glad i didnt make the move

    • hydra@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      They removed the classic theme and I’m still pissed because you can’t quite get it back.

  • binboupan@lemmy.kagura.eu
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    1 year ago

    WSL is nice if you want to build things/run software for Linux, otherwise… just use Linux. Also it’s a nice way to run Docker without paying for it.

  • milkjug@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    1 year ago

    Weird how tribal people are. Let people enjoy things for God’s sake. I use all combinations of macOS, Windows, Fedora, Ubuntu (server + on WSL), Pop_OS!, and what not. Different horses for different courses, and I like each one of these in their ways they excel at.

    • Duamerthrax@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I shit on windows because I have had terrible experiences with windows. I dual boot a hackintosh with win10 and win10 is more unstable despite using it less. I use linux on my laptop and headless stuff and the only problems I have are ones that I create.

    • jtk@lemmy.sdf.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      People who get out, see the world, meet people from other places tend to be far less tribal. Early career, I could have easily been a paid Microsoft Evangelist (is that still a real job title?). Eventually I was forced to begrudgingly learn a whole bunch of other things, then I became obsessed with OSS, shunning my former tribe every chance I got. At some point I just stopped caring about everything. Language, tabs vs spaces, design patterns, IDE, frameworks, I just don’t care any more. I still have my go-tos if I’m starting fresh but, if the direction of the wind changes, it doesn’t bother me a bit.

    • amesoeurs@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      3
      ·
      1 year ago

      it’s fun to fling shit at the other side on the internet, regardless of what you truly think. has been for 30 years. how is that difficult to understand?

  • regeya@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    I don’t understand how Linux could make Linux obsolete

    Or were they talking about the original WSL, where it was an implementation instead of a specialized VM

    • amanwithausername@vlemmy.netOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      They were really trying to pander to developers back then… What shows it best is their ad for windows terminal that I swear has more production value than most of Nike’s advertisements. You know you’re desperate when you go this hard on advertising a bloody terminal

      • Anti-Antidote@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Hey now, as someone who works in a 100% Microsoft shop, WSL2 and the Windows Terminal are the only things keeping me sane. Please MS, keep pandering.

        • entropicshart@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Absolutely love the new Terminal app - anyone having to work on windows machines knows much value it finally adds over the ancient cmd/pwshell.

          This is one of the core apps I install on any windows rig now

          • zeppo@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Being very familiar with bash/zsh etc, and somewhat forced to use Windows, I’ve tried to learn use PowerShell. My impression is basically, what? Why would I do this? The design is intriguing but the verbosity is awful.

            • entropicshart@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              It is not meant just for powershell; it combines all the shells on windows plus support of fit, bash/zsh in WSL.

              I use Linux daily for development and a MacBook for a laptop; having to go from extensive terminals back to shitty blue windows was painful.

              The new Terminal has been the best addition MS has added to windows in a long while.

              • zeppo@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                Sure, I gather that the topic is something other than regular PowerShell. This is actually the first I’ve heard of it. I’ll check it out, thanks!

        • CupDock@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          I second this. WSL and windows terminal are both part of my daily toolbox and I love them both dearly.

      • marcos@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Well, if something in Windows did need an ad for developers, it’s the terminal. Advertising it here was the correct choice.

        But that ad is ridiculous, because it shows absolutely nothing of value. It’s all emotion-based “look how nice it looks” stuff.

        • amanwithausername@vlemmy.netOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          But that ad is ridiculous, because it shows absolutely nothing of value.

          I think I disagree with you here. The ad shows:

          • Ligature support
          • Themeing
          • Integration with WSL
          • that Windows Terminal is open source (“Check out our github!” at 0:21)
          • Hyperlink support
          • Unicode support (implied by the emoji)
          • Some sort of package manager specifically for Windows Terminal extensions? (0:20)

          Which are all features that could conceivably be valued by developers. At the very least it gets across the point that “Yeah, CMD is shit, but fear not! Now there’s a first-party terminal that doesn’t suck!”. There’s no denying that all of this is presented in an “emotion-based” format as you put it, but I would argue that it’s a good balance between informative and entertaining. Heck, I much prefer it to the ads you get nowadays on youtube where you can’t even tell what they hell they’re trying to sell to you.

  • callmepk@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    Personally, I think WSL is a great start point to introduce users in Windows to take the first step to Linux. Me myself and several people from what I know starts from WSL and end up using Linux full-time