←back to thread

Ubuntu on Windows

(blog.dustinkirkland.com)
2049 points bpierre | 1 comments | | HN request time: 0s | source
Show context
zymhan ◴[] No.11390932[source]
"Linux geeks can think of it sort of the inverse of "wine" -- Ubuntu binaries running natively in Windows. Microsoft calls it their "Windows Subsystem for Linux"."

I find it amazing that you can have such a functional Ubuntu environment by translating system calls. Microsoft does have the advantage of Linux being open-source I suppose, while the Wine project had to reverse engineer DLLs. Or have you supply them on your own.

replies(9): >>11391001 #>>11391011 #>>11391074 #>>11391084 #>>11391105 #>>11391166 #>>11391290 #>>11391798 #>>11391866 #
jdub ◴[] No.11391290[source]
Windows NT was designed from the start to have modular subsystems. It was most infamously used to provide a POSIX subsystem which really only checked boxes on government acquisition forms. :-)

The reason WINE went with the library emulation route is because: (a) the Windows kernel doesn't have a stable system call layer, and (b) the Win32 API is massive anyway.

Windows has an easier time emulating Linux at the very lowest levels because Linux has an ABI stable system call layer. If you emulate those, you can run ANY Linux binary.

It also means Microsoft doesn't have to ship or support hundreds of Open Source projects. They ship the syscall layer, and distributions ship the user layer.

replies(4): >>11391432 #>>11391477 #>>11393730 #>>11480831 #
1. JdeBP ◴[] No.11480831[source]
This makes it seem that the POSIX subsystem only ever did that, which is not true at all. A better statement is at https://news.ycombinator.com/item?id=11392369 .