5 ms·
Windows isn't exactly known for OS innovation! A whole bunch of things were promised for Longhorn and then never delivered. Are you thinking of one of the many
by pjc50 11y ago
Windows isn't exactly known for OS innovation! A whole bunch of things were promised for Longhorn and then never delivered. Are you thinking of one of the many Microsoft Research projects that hasn't quite made it into use?
The sheer permanence of the Windows API makes it hard for Windows to innovate.
- UK-AL 11y agoThe NT Kernel has some cool features. One of them is that it has environment subsystems. So it has POSIX environment subsystem, Win32 subsystem , OS/2 subsystem. So it's not limited by the win32 api. Most of these are no longer maintained, but has the capability to do so.
- beagle3 11y agoIn what way do these "environment subsystems" differ from a user-level library? Linux has a Win32 subsystem, it's called "Wine", and POSIX subsystems called "glibc" and "musl". Seriously, what makes these "subsystems" different than "libraries", other than they are shipped with the OS?
- pjmlp 11y agoYou cannot implement features like fork() without kernel level support. This is just one example.
- beagle3 11y agoThere have, in fact, been multiple fork() implementation for Windows without kernel support. They weren't very efficient, but IIRC, only in version 1.7 (at about 15 years of age), did the Cygwin fork() implementation start to use kernel support. And that still does not answer my question: In what way is the "NT kernel subsystem" different from a user mode library? Either the underlying kernel supports the features you need, or it doesn't. From my perspective, there's an NT kernel (with the so-called Native API) and a few libraries that make it look like Win32 or severely limited POSIX or at one point in time OS2.
- pjmlp 11y agoBut that is the whole point, efficiency. They are some kind of blessed libraries, you cannot do everything they are able to do with plain userspace code. I don't remember all the technical details from "Inside Windows Kernel" book series to discuss it further, but I can have a look.
- jandrese 11y agoThe POSIX subsystem was one of the worst offenders for the "checkbox marketing" abuse that I've ever seen. I am hard pressed to think of anybody who successfully used it for anything because it came with so many caveats right out of the box. Microsoft implemented the absolute minimum they needed to check the box and nothing more. I don't know about the OS/2 subsystem, but I wouldn't be surprised if it was only sufficient to run Lotus Notes or something back when that was a relevant business need.
- pjmlp 11y agoIt is not known by those that don't invest on it. Just out of my head: - pushing C away and allowing C++ on kernel space - OO ABI besides a procedural one - object based API even with Win16/32 - asynchronous IO architecture only beaten by Solaris asynchronous IO - hybrid OS architecture pushing device drivers into user space - the only shell that can somehow replicate the REPL experience of Xerox PARC systems - pushing for memory safe systems programming, via C++/CX, .NET Native, static analysis and efforts like GSL at CppCon 2015 - device driver verification via a theorem prover - integration of container model for mainstream users - every OS object has security credentials
- trentnelson 11y ago> asynchronous IO architecture only beaten by Solaris asynchronous IO Wait, what? Event ports are nice, but they're still inherently limited by the UNIX "readiness"-oriented I/O interface. And they don't provide a unified file/socket asynchronous I/O interface, either. (No UNIX does.) VMS got I/O right: I/O request packets and a completion-oriented I/O interface. This, combined with multiple IRQ levels, is the key element behind Windows' superior virtual memory management, combined file system cache management and actual asynchronous file I/O. Strip everything else away from NT and UNIX and it comes down to buffer-based I/O versus packet-based I/O (Irps), APCs instead of signals, and multiple IRQ levels (not just hi/lo). Side note: AIX copied the NT I/O completion port API verbatim. (Except they ignore the concurrency parameter, which speaks volumes about impedance mismatch between multiple threads and the traditional process-based UNIX IPC model.) Fun quote from Wikipedia -- David Cutler on the UNIX I/O model: "getta byte getta byte getta a byte byte byte". (https://en.wikipedia.org/wiki/Dave_Cutler https://en.wikipedia.org/wiki/Dave_Cutler) Another tidbit I find interesting: David Cutler was 47 when Bill Gates called him in 1988. He had been working on OS development in a lead capacity since 1975, and subsequently championed the NT kernel that Gates "bet the company on". The core NT APIs that were established in the late 80s and early 90s have stayed the same because they solved the problem correctly the first time 'round. Linux, on the other hand, was started by Linus in the early nineties (when he was in his 20s) "just for fun". He implemented enough syscalls to get bash to work and went from there. At the end of the day, it was still a UNIX-like operating system. Cutler knew UNIX inside out and technically knew where and why it was deficient; VMS and thus NT benefited from that. At the end of the day, it's all about the I/O, and NT has been dominating that since inception.