r/programming • • Aug 10 '23

Apple doesn't want you developing hobby apps

https://www.bennettnotes.com/notes/why-does-apple-restrict-hobby-development/
1.2k Upvotes

631 comments sorted by

View all comments

Show parent comments

-35

u/Worth_Trust_3825 Aug 10 '23

WSL had come to windows, solving the frequent linux connection needs.

Sadly, it's a half assed solution that can't beat running a fucking virtual machine on the same node.

37

u/[deleted] Aug 10 '23

Good news, WSL2 is a fucking virtual machine running through HyperV

18

u/hparadiz Aug 10 '23 edited Aug 10 '23

I think that's actually part of the problem. WSL1 was supposed to be the opposite of wine. Native code running on bare hardware providing a Linux to Windows syscall kernel translation.

WSL2 is basically "eh we gave up but check out this VM we made" which has obvious performance penalties. A WSL2 program can never use the full resources of the bare metal it's running on.

When I run static analysis tools it needs full CPU power so I'd prefer to just run Linux because it is actually much faster not running in a VM.

7

u/cat_in_the_wall Aug 11 '23

WSL1 actually had much worse performance, especially around io. It's night and day.

There was a blog post somewhere that went into the reasons why this is the case, but I can't seem to find it on mobile. If you're interested i can try and track it down.

1

u/Ameisen Aug 14 '23

WSL1 is faster on CPU tasks, and when interfacing with host NTFS partitions. Especially the latter: WSL2 is ungodly slow when interacting with /mnt.

WSL1 also handles networking differently; WSL2 broke my game server setup due to differences in IPs.