News for hackers. Stuff that matters.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by LoganDark on Tuesday July 18, 2023 @04:23AM (#36769428)
> Windows 10 also had WSL2 which made it an okay development system.

To be honest, I would have preferred WSL1 which implemented the syscalls directly under Windows for the best possible integration, but they eventually just threw that away and switched to using virtual machines!

Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by ht85 on Tuesday July 18, 2023 @04:33AM (#36769503)
To be honest, I would prefer to have my guts sprayed with honey and exposed to a large colony of ants.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by rootw0rm on Tuesday July 18, 2023 @04:33AM (#36769504)
agreed, WSL1 was an ambitious, cool project
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by dspillett on Tuesday July 18, 2023 @04:58AM (#36769663)
Agreed, but I could never get past the thought “all the friendliness of Unix, all the security & stability¹ of Windows”!

--

[1] never trust an OS that can't reliably be left alone for 24 hours without rebooting itself while you aren't looking

Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by blodkorv on Tuesday July 18, 2023 @07:17AM (#36770548)
If windows is certified to run the US military its secure and stable.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by dspillett on Tuesday July 18, 2023 @07:37AM (#36770713)
Debatable.

In any case: How do I get the version+configuration used on US military installations on my machine?

Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by PrimeMcFly on Tuesday July 18, 2023 @08:27AM (#36771133)
The stripped down very carefully configured Windows the military uses isn't the same Windows most people/businesses are using.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by jifarina on Tuesday July 18, 2023 @12:35PM (#36775257)
I need to get my hands on that Windows Military Edition®
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by LoganDark on Tuesday July 18, 2023 @11:41PM (#36781877)
Do they use LTSC or something else?
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by lloeki on Tuesday July 18, 2023 @04:57AM (#36769659)
To be fair it's quite impressive WSL1 got this far, but ultimately it was doomed from the start if one targets perfect compatibility.

Given there's no "Linux specification" the spec is the actual code, nooks and crannies and all, down to nitty gritty details and implicit behaviours that end up indirectly getting relied upon. The only solution is to basically implement these in excruciating details, which may or may not possible depending on the Windows things being wrapped. Then the question of intellectual property, copyright, and licensing come in, as MS would have to ensure that it's a clean room implementation or be subject to GPL terms (cue the Oracle Java vs Android shenanigans).

So at some point it makes sense to just throw a VM at the job, cleanly separating realms, sidestepping any legal landmines, and ensuring perfect compatibility, especially as the whole HyperV infrastructure is quite solid and used throughout the MS ecosystem as a general strategy, e.g the Xbox uses HyperV to isolate games and apps.

Tangent: I wish (the VM part of) WSL2 would be available on Xbox, allowing one to run Linux while keeping the whole regular OS and features!

Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by ori_prior on Tuesday July 18, 2023 @05:39AM (#36769921)
WSL1 was a dead end, not because of compatibility but because of performance, especially when it comes to file system access and process operations. Windows is supremely complex in both, with things like filesystem filters, fused fork+exec+setuid+setcap+doWindowsStuffThatDoesntHaveUnixEquivalents syscalls, all of which you cannot avoid. If you layer a Linux syscall personality on top of that, things will get molasses-slow quickly.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by pjc50 on Tuesday July 18, 2023 @06:53AM (#36770373)
Correct - the semantics are simply too different to directly emulate. The simple fact that starting processes takes much longer in Windows cripples naive implementations, for example.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by LoganDark on Tuesday July 18, 2023 @10:54AM (#36773394)
"fused fork+exec" otherwise known as "process creation" (that is one thing i'll give windows credit for)
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by monocasa on Tuesday July 18, 2023 @01:46PM (#36776499)
To be fair, at least on the syscall side, WSL1 was built in kernel space on Pico Processes, not regular NT processes. They very much were able to avoid the windows cruft. It really seemed to be the long tail on compat and the impedance mismatch on the vfs layer that killed it.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by supriyo-biswas on Tuesday July 18, 2023 @05:12AM (#36769744)
Wine does all of that though for Windows, even when the syscall structure and caveats or compatibility fixes for the Win32 APIs are unknown.

With Linux, all the syscalls and their bugs are documented, at least in the commit history, if not the man pages.

Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by CJefferson on Tuesday July 18, 2023 @05:15AM (#36769774)
Wine is an amazing piece of software,but it’s still easy to find issues in many apps. Microsoft wanted something it could sell as a general Linux replacement, so it needed close to 100% compatibility.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by supriyo-biswas on Tuesday July 18, 2023 @05:20AM (#36769798)
My point still stands — Linux syscalls are documented, the Win32 APIs and syscalls aren’t.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by lloeki on Tuesday July 18, 2023 @05:53AM (#36770007)
> Linux syscalls are documented

It doesn't mean they are implementable atop NT/Windows kernel facilities, semantics, and behaviours, in which case it's an alternative implementation to maintain that foregoes integration.

While Wine's effort and compatibility levels achieved are impressive, they actually prove my point: compatibility is a constant fight, there are a ton of tunables (some automated), and it's still not perfect (which is what a VM gives you for essentially free).

There's more than "basic" syscall interface to it though, there's the whole implementation of features (that are GPLv2 licensed) e.g btrfs? iptables? ebpf? ptrace? hold my beer; run kernel-backed wireguard in WSL2? no problem; alsa? you betcha; real time facilities? sure! custom kernel with a missing feature like usb passthrough? be my guest; contribute to the linux kernel code? entirely possible. It's all there, today, and not at the mercy of MS's will or ability to implement this or that.

Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by LoganDark on Tuesday July 18, 2023 @05:20AM (#36769799)
yeah, windows already ran in hyper-v anyway for protection of high-level processes at the hypervisor level, so it probably wasn't even that much of a leap to introduce other VMs alongside windows (aka WSL2)
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by realitythreek on Tuesday July 18, 2023 @08:15AM (#36771002)
WSL v1 hasn’t gone anywhere. It likely won’t until they fix the issues with v2 and VPNs.
Re:Windows 11 Collects an Awful Lot of Telemetry About Your PC by JohnFen on Tuesday July 18, 2023 @12:08PM (#36774751)
I'd never used WSL1, but I use WSL2 at work (where I'm forced to use Windows). It's OK. I don't understand all the fanfare about it, though, because it's only OK. I still need to have a real Linux system around. WSL2 isn't an adequate replacement.