News for hackers. Stuff that matters.
Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by scalanewaccount on Friday September 20, 2019 @01:56AM (#21023655)
I'm seriously considering moving back to Windows from Arch. I miss some software. Can you give some downsides of WSL2 so I know you're being impartial (I am) and to help me make a decision. I wasted a few days with WSL1 and don't want to repeat that.
Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by throwaway13249 on Friday September 20, 2019 @02:06AM (#21023701)
Just minor issues:

You need to be on the insider programmer which forces telemetry and means you have a PITA windows style upgrade every other week (and the nagging associated with it).

Whilst you can read /mnt/c/ you can't read virtual file systems such as Google drive stream /mnt/g/ is just empty.

You need to do a bit of fuckery like pinning your ssh-agent to a known file socket and test this in your bash/zsh startup - not a biggie since you arent starting this off your WM

No X support - there are third party x viewers though but not officially endorsed. So no apps like xkeynav and xkill.

None of the intellij ecosystem have WSL support - sure you can set the terminal to be use wsl.exe but stuff like using your WSL2 distro's openssh config or using the agent running in your WSL2 etc... arent there or coming, VSCode is lightyears ahead in this department due to the way its modelled. Sadly intellij team aren't thinking in the same way of the vscode team, so instead of proxying through a remote demon they are thinking of doing something like reading //wsl$/distro/home/you/.ssh/config instead, hacking WSL support in their ssh/git bits

Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by throwaway13249 on Friday September 20, 2019 @02:08AM (#21023712)
Need to set max memory in wslconfig too - not so well documented - otherwise your VM will just balloon to fill up all your RAM and windows and windows app will start swapping
Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by jstarks on Friday September 20, 2019 @02:24AM (#21023761)
We are working on solving that. No promises that we will solve it completely the first time, but it should get better soon.
Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by adar on Friday September 20, 2019 @04:51AM (#21024535)
> You need to be on the insider programmer which forces telemetry and means you have a PITA windows style upgrade every other week (and the nagging associated with it).

FWIW you can upgrade to the Fast Ring version of Windows that gets you WSL 2 and then switch to the Slow Ring that only gives you updates every month or so.

Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by rits on Friday September 20, 2019 @03:04AM (#21023919)
If I got you right about ssh-agent, there is a console frontend https://www.funtoo.org/Keychain.
Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by throwaway8941 on Friday September 20, 2019 @02:17AM (#21023742)
>None of the intellij ecosystem

If you're doing C or C++ development, CLion does support WSL compilers/debuggers.

Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by throwaway13249 on Friday September 20, 2019 @03:29AM (#21024055)
It's all hacked in on intellij platform and reading their youtrack that their plan - each plugin bakes in WSL knowledge, where as VSCode basically launches a remote command proxy so it works the same weather WSL2 or a local vbox with ssh or a remote VPS and plugins dont need to change (or do so in a minor away). More an IntelliJ rant I guess
Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by kbumsik on Friday September 20, 2019 @03:42AM (#21024124)
WSL2 aren't shipped with systemd (or any other init processes) out of the box. So you, as an Arch user especially, will have much trouble managing Linux daemons.

If you are an embedded dev keep in mind that USB or any native devices on WSL2 is not supported.

If you are a web dev keep in mind that localhost is not available so that you need to figure out the IP address of WSL2.

Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by y4mi on Friday September 20, 2019 @03:51AM (#21024182)
> If you are a web dev keep in mind that localhost is not available so that you need to figure out the IP address of WSL2.

Which sounds like a non-issue, but is actually quite annoying, as almost every unconfigured daemon binds to localhost...

Re:Show HN: Cascadia Code, a Font for Windows Terminal and V... by throwaway13249 on Friday September 20, 2019 @04:57AM (#21024569)
This is fixed at least in the fast ring