timsneath
4 hours ago
To clarify a few comments here: this is not only OCI containers: container machines add support for persistence and filesystem mounting, making container machines a great lightweight Linux environment for developers using macOS. More details here: https://developer.apple.com/videos/play/wwdc2026/389
Onavo
3 hours ago
Ah, the Darwin/BSD Subsystem for Linux.
CGamesPlay
3 hours ago
Not quite, it’s still a VM. And while it supports virtio balloon for growing RAM, it doesn’t yet support releasing that RAM back to the host. And there isn’t a convenient way to shrink the sparse disk images as they grow yet, either.
AlexB138
3 hours ago
Isn't the Windows subsystem for Linux (the reference there) also a VM?
gsnedders
3 hours ago
Only WSL2; WSL1 was an actual subsystem.
selcuka
3 hours ago
So this is Darwin/BSD Subsystem for Linux 2.
rvz
21 minutes ago
Yes.
LoganDark
2 hours ago
WSL1 was so cool, WSL2 made it boring and isolated.
TylerE
2 hours ago
Back in my day you to to download a couple GB worth of cygwin, and that wasn't an actual environment, basically just a GNU toolchain compiled for windows. But it got you like....grep and bash and stuff that ran natively on windows which was kinda cool.
noduerme
an hour ago
Cygwin was fun. I'd done zero development on Windows, but about 10 years ago I had to figure out how to deploy some nightly shell scripts across a bunch of local computers in a few dozen offices, where about 80% were MacOS and the rest were Windows. I don't remember exactly how I rigged it, but basically cygwin allowed me to keep the scripts as they were and trigger them in place, with a few small modifications.
I never want to deal with that again ;)
[edit] fwiw, Termux on Android is similarly a fun pseudo-environment. It's a nice and helpful toy.
TylerE
an hour ago
The biggest issue I remember is directory seperators... windows of course using \ which bash would then interpret as an escape. Cygwin mostly papered over that from what I can recall, but it could lead to some weirdness, like sometimes you'd get C:\\path\\es\\like\\this
rpeden
an hour ago
You could also use forward slashes, like C:/path/subpath, which has worked since Windows 1.0/DOS 2.0.
That's handy when you're entering paths in a Cygwin/MSYS Bash shell, but might not help much if you're trying to parse or otherwise work with existing patgh variables composed with backslashes.
TylerE
an hour ago
Yes, you could if you were entering them manually, but some apps that generated file names would screw it up. I think they were using some sort of stdlib function to get the path seperator. Forward slash paths working in native windows apps also wasn't quite a given, either. Keep in mind this was a loooong time ago... like windows xp era maybe, even.
_blk
2 hours ago
... Now it's just called git bash
michaelsbradley
2 hours ago
Just install and use MSYS2, git bash is derived from it anyway, and a regular MSYS2 installation offers a lot more.
jayd16
3 hours ago
Mac Subsystem for Linux 2