News for hackers. Stuff that matters.
Re:More developers use Linux than Mac, according to 2022 Sta... by paulmd on Wednesday December 28, 2022 @03:02PM (#34165207)
The BSD world has had this for ages in the form of "branded zones" in opensolaris/illumos and linuxulator for jails.

It's too complex to thunk windows calls to linux, that is what WSL1 tried and failed at, because windows is just too different from a POSIX paradigm for that to work well. But posix-on-posix isn't really all that hard... nor is other *nix-on*nix.

Re:More developers use Linux than Mac, according to 2022 Sta... by schappim on Wednesday December 28, 2022 @03:11PM (#34165305)
> that is what WSL1 tried and failed at

What did they do differently with WSL2+?

Re:More developers use Linux than Mac, according to 2022 Sta... by nodja on Wednesday December 28, 2022 @03:36PM (#34165608)
Broadly speaking WSL1 is linux implemented in the windows kernel, think reverse wine. WSL2 is linux running on a thin VM with several bridge layers that can access windows resources (networking, files, GPU, etc.)
Re:More developers use Linux than Mac, according to 2022 Sta... by dm319 on Wednesday December 28, 2022 @04:08PM (#34165986)
Isn't WSL1 everything _but_ linux? I.e. more like gnu/WinNT.
Re:More developers use Linux than Mac, according to 2022 Sta... by schappim on Wednesday December 28, 2022 @04:19PM (#34166108)
Thanks for the explanation! I always knew that WSL1 was implemented on the Windows kernel and thought it was quite ambitious - props to them! I didn't know they moved to the VM model for WSL2.
Re:More developers use Linux than Mac, according to 2022 Sta... by baq on Wednesday December 28, 2022 @03:21PM (#34165429)
Everything, WSL2 is a special hyperv vm. It’s a true Linux kernel with a true Linux file system. The network stack is one way integrated so you don’t have to forward any ports or configure NAT.
Re:More developers use Linux than Mac, according to 2022 Sta... by thangngoc89 on Wednesday December 28, 2022 @03:21PM (#34165433)
WSL2 uses VM. So actual Ubuntu distribution under the hood
Re:More developers use Linux than Mac, according to 2022 Sta... by qbasic_forever on Wednesday December 28, 2022 @03:20PM (#34165421)
It runs a hyper-v VM with a Linux kernel.
Re:More developers use Linux than Mac, according to 2022 Sta... by seiferteric on Wednesday December 28, 2022 @03:50PM (#34165784)
I wonder if Windows could add more support in the kernel for better POSIX support, or maybe it's just too hard.
Re:More developers use Linux than Mac, according to 2022 Sta... by baq on Wednesday December 28, 2022 @04:38PM (#34166332)
They tried, it was possible but way too slow to be usable due to all the baggage that the NT kernel carries (think antivirus support).