Live data from Hacker News

Ubuntu on Windows

blog.dustinkirkland.com

11–20 of 933 posts

Re: Ubuntu on Windows

#11
post #5

> Windows 10 users > Can open the Windows Start menu > And type "bash" [enter] > Which opens a cmd.exe console Right... Bash is a shell, but your interaction with it is controlled by a terminal program. Unless there are some real changes to cmd.exe t̶h̶e̶n̶ ̶i̶t̶'̶s̶ ̶n̶o̶t̶ ̶t̶h̶a̶t̶ ̶i̶m̶p̶r̶e̶s̶s̶i̶v̶e̶ . You can compile a native bash and other utils now yourself, it's not that hard. EDIT: It's more like a Linuxul…

> "Hum, well it's like cygwin perhaps?" Nope! Cygwin includes open source utilities are recompiled from source to run natively in Windows. Here, we're talking about bit-for-bit, checksum-for-checksum Ubuntu ELF binaries running directly in Windows.

If you write a command line utility, just putting in ubuntu repo makes it available to all windows user, without even recompiling.

Re: Ubuntu on Windows

#12
post #4

"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 yo…

Windows NT had a POSIX subsystem awhile ago, not sure what happened to it. The NT Kernel was designed to have different personalities like Win32, OS/2, POSIX, etc

It could be an updated version.

Re: Ubuntu on Windows

#14
post #8

So what OS you're going to get when you run an application under this? So if I run this: node -e 'console.log(require("os").type())' What it's going to print?

Would depend entirely on how you installed node, I would imagine.

Re: Ubuntu on Windows

#15
post #5

> Windows 10 users > Can open the Windows Start menu > And type "bash" [enter] > Which opens a cmd.exe console Right... Bash is a shell, but your interaction with it is controlled by a terminal program. Unless there are some real changes to cmd.exe t̶h̶e̶n̶ ̶i̶t̶'̶s̶ ̶n̶o̶t̶ ̶t̶h̶a̶t̶ ̶i̶m̶p̶r̶e̶s̶s̶i̶v̶e̶ . You can compile a native bash and other utils now yourself, it's not that hard. EDIT: It's more like a Linuxul…

"cmd.exe console" means (presumably...) a standard Windows console subsystem window. This is independent of cmd.exe, but it's common to conflate the two. Unix users often get this mixed up, presumably because they don't believe Windows has any kind of layering or modularity ;)

Re: Ubuntu on Windows

#17
post #12
post #4

"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 yo…

Windows NT had a POSIX subsystem awhile ago, not sure what happened to it. The NT Kernel was designed to have different personalities like Win32, OS/2, POSIX, etc It could be an updated version.

I came here to make the same comment.

Its ironic (old)microsoft exerted so much effort to put the personalities in place (OS/2, posix etc), then (mid)microsoft systematically destroyed that work under Balmer, and now (new)microsoft are reimplementing the same thing under a (seemingly) completely different system.

Re: Ubuntu on Windows

#18
post #8

So what OS you're going to get when you run an application under this? So if I run this: node -e 'console.log(require("os").type())' What it's going to print?

Whatever it prints on Ubuntu I expect. Obviously it's not going to return "Windows", or "UbuntuInWindows" else anything that makes that call that would break.
Post reply on HN