Reply to post: Should work well

Bash on Windows. Repeat, Microsoft demos Bash on Windows

Henry Wertz 1 Gold badge

Should work well

"Looks like it. Windows NT has always had the ability for multiple subsystems like this. That was one of the cool design features of NT back in the day. This was how it ran Win16 and OS/2 apps in the beginning after all. It was part of the original design work for NT3.1, but largely just got pi$$ed away when Ballmer decided they didn't want compatibility with anyone other than themselves in the naughts."

I think rather than using an updated POSIX subsystem (or a new subsystem), this is trapping Linux syscalls and implementing them using equivalent Windows syscalls (and additional code as needed.) This should work pretty well actually.

qemu's "qemu user" emulation simulates CPU and then maps syscalls (I've used this and it works reasonably well.) When I started using Linux, the kernel had several syscall mapping tables for several contemporary UNIXes to run their binaries (Linux for MIPS had SGI Irix support for instance, which from what I read at the time did work reasonably well.) nestedvm simulates a MIPS-I in java, traps syscalls and implements them with equivalent Java calls. This has to run crosscompiled binaries but also works surprisingly well.

Interesting times indeed.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon