8 ms·
Dave Cutler’s five-decade-long quest for quality (2016)
- FearNotDaniel 8y ago(2016)
- dang 8y agoThanks—added above. Discussed at the time: https://news.ycombinator.com/item?id=11504102 https://news.ycombinator.com/item?id=11504102.
- scardine 8y agoFor anyone interested in the history behind the NT kernel I recommend a book called "Show Stopper!: The Breakneck Race to Create Windows NT and the Next Generation at Microsoft" by G. Pascal Zachary - really enjoyed it. I think the Windows NT kernel is a very underrated piece of technology - the reason it was unstable in the beginning is due to a corporate top-down decision: the hardware of the time was limited so they included GDI stuff in the kernel (crappy code not written by Cutler's team).
- CaptainZapp 8y agoIt's, in a way, the continuation of VMS and inherited a lot of the concepts. Which is not really surprising , considering that Dave was one of the main architects of VMS. On a personal note: Best OS I ever worked with. Rock solid stable and a few conecpts and tools, which are still unmatched. At to that the arguably best documentation I've ever had the pleasure to work with in any environment.
- magduf 8y ago>At to that the arguably best documentation I've ever had the pleasure to work with in any environment. Documentation for everything was a lot better in the 70s.
- CaptainZapp 8y agoYou're right, of course. DEC, however, was in some respects really above the pack. Documentation being one of them. I'd throw in DECnet and VAX Clustering as other examples.
- taneq 8y agoNT was pretty damn good, in hindsight. 2K was alright too but bang-for-seniority NT4 was great.
- mixmastamyk 8y agoNT 3.5 was rock solid, believe it was NT4 where they put graphics in the kernel to speed it up. One wonders why they don't put it back now that computers are 1000x faster.
- krylon 8y agoI was under the impression that GPU drivers run in userspace since ... Vista? At least I have seen the GPU driver crash on Windows 7 machines - the screen went blank for a second or two, then it showed the same desktop as before, with a popup that rougly said, "The GPU driver crashed, so I restarted it."
- tw04 8y agoThey did, it's why you no longer have to reboot when upgrading video drives. You just get a couple of black screens as the modules are reloaded.
- orbital-decay 8y agoThey actually finally did this in OneCore AFAIK.
- mixmastamyk 8y agoAwesome, NT finally shedding some baggage.
- chasil 8y agoOne particular flaw was CMD.EXE. In the few pages where it is mentioned in the Showstoppers book, it appears that this code came from IBM. The scripting in CMD.EXE has been described as a "serial killer," and they really would have been better off implementing a Bourne shell for Windows. http://blog.nullspace.io/batch.html http://blog.nullspace.io/batch.html
- kyberias 8y agoWhoever borrowed that book from me, please return it. Thanks.
- muststopmyths 8y ago>I think the Windows NT kernel is a very underrated piece of technology - the reason it was unstable in the beginning is due to a corporate top-down decision: the hardware of the time was limited so they included GDI stuff in the kernel (crappy code not written by Cutler's team). Err, no. The reason it was unstable in the beginning were choices like having a "MUST SUCCEED" kernel memory pool which caused a bugcheck if the system could not allocate from that pool. Random kernel components allocated from this pool and if you opened too many handles (sockets for example), you'd get a bluescreen because an unrelated driver was trying to allocate memory for some other activity. There were probably other similar choices that I don't remember now. It has been 25+ years. And let's talk about the NT Driver I/O model. The most highly complex, over-designed POS I have ever seen. And this design was "polluted" for performance out of the gate (Fast I/O path, for example). It took Microsoft years to reliably and safely cancel pending I/O in the kernel. Remember the days when a random peripheral driver could hold on to an IRP and cause bluescreens all over the place because the process it was doing I/O for exited ? It was hard for internal Microsoft people to write good drivers, let alone OEMs in the wild with a fraction of the learning resources at their disposal. NT was based on the microkernels that were fashionable in those days (e.g, Mach from Rick Rashid et. al). As with most academic ideas, when microkernels met the real world they had to be adapted. Win32K came about because GDI performance in NT was crap. There were other things that were similarly pushed into the kernel already. I believe a classic microkernel would also have networking modules in user mode, for example. DirectX in the kernel (hated by the purists back in the day) is inarguably responsible for NT being able to supplant Win9x in the consumer PC market. The NT kernel evolved over the years to be something that actually met the needs of Microsoft's customers. I would argue that's the real achievement, and not all of that can be laid at the feet of "Cutler's team". I second the recommendation for "Show Stopper" :-)
- filereaper 8y agoI can't really comment about mentions on the I/O model or the early instability. We should give credit to the early architectural decisions made by Cutler which allow for niceties like the Windows Subsystem for Linux (WSL) that came about recently. I third the recommendation for "Show Stopper" as well. :-)
- EamonnMR 8y agoI second the recommendation for Showstopper!, though I wonder if MS's culture of burning out developers for months contributed to its reputation for buggyness in the early 00s.
- ghaff 8y agoShow Stopper is probably my second favorite product development story book. (My favorite is Soul of a New Machine but I'm biased there because I worked at the company a bit later and knew many of the people involved.)
- foobiekr 8y agoIf you liked Show Stopper, you would probably really like the various MIT Platform Series books. Each of them is excellent and while they are not really the story of new product development, there is plenty of product development in them.
- reubenswartz 8y agoThat was a great book. In college, I read it on the plane on the way to an interview with an operating systems team. During my interviews, people thought I had a ton of experience with operating systems coding, which I didn't, but the concepts, terminology, and design debates from the book were fresh in my mind. ;-)
- nbevans 8y agoDave Cutler is a better OS engineer than Linus Torvalds. Fact.
- nindalf 8y agoIs it necessary to compare them? I'm puzzled why we seem to do this everywhere. When some people see Messi score a goal, the immediate reaction isn't "what a great goal", it's "he's better than Ronaldo". Why can't we just appreciate greatness without comparing?
- criddell 8y agoI hate it too. The tribalism around tech things and politics and nutrition and cars and just about anything feels so damned toxic.
- adrian_b 8y agoWhile I agree that Dave Cutler was a very good OS engineer, it absolutely ridiculous to compare the work of an experienced OS engineer who already learned a lot by designing other operating systems and who also was free to design a new incompatible OS, with the work of an inexperienced senior student, whose purpose was just to reimplement the UNIX API's. Even if the Linux kernel has evolved internally a lot since then, it has remained constrained by the userland POSIX interfaces, some of which are obsolete. You cannot predict whether Linus, at his current age and experience (which only now are similar with those of Dave Cutler when designing Windows NT), would do a better or a worse OS than Dave Cutler, if he would be free to abandon everything else and to design a new incompatible OS, without legacy baggage. Even if it had a nice clean design, I do not remember anything really revolutionary in the initial Windows NT, at least in the features exposed to the users. Almost everything had a correspondence either in UNIX or in OS/2, but because NT could afford to be incompatible, most NT interfaces had various nice improvements, especially in asynchronous IO, event handling and security. Also because they were designed together instead of being accreted over a long time, the NT interfaces and types were much more consistent in the beginning, compared to UNIX. After other 25 years, Windows has accumulated again countless API additions and replacements, so the initial consistency is long gone.
- wglb 8y agoGreat article about a very significant accomplishment. Few of us get a chance to write an operating system--Dave wrote three. VMS was about as solid as you can imagine. At the time, I wondered if there weren't too many features in VMS and now NT. But that is always the tension, isn't it? One interesting fact that the article doesn't cover is that MS had to pay Compaq, interitor of DEC, something like $60 million as the result of hiring Cutler. There are very significant similarities in NT with VMS. All in all, it was certainly worth it.
- magwa101 8y agoNT was a huge disappointment. To wit, they've never had a shell that even approximates Unix sh from years ago.
- nxc18 8y agoAre you kidding? Check out WSL - they've got the full bash working just like it does on Linux.
- diroussel 8y agoWith lots of caveats and gotchas. See comment from Microsoft guy linked here. https://news.ycombinator.com/item?id=18783525 https://news.ycombinator.com/item?id=18783525
- ThrowawayR2 8y agoDave Cutler was the kernel architect and a shell has almost nothing to do with the quality of the kernel it's running on. Does WSL running on Windows magically make its kernel better? Would the old CMD shell running on Linux make its kernel worse? No.
- anth_anm 8y agoIt's a kernel, not an OS.
- lacey 8y agoThree hours of interviews with Cutler for the Computer History Museum: Part 1: https://youtu.be/29RkHH-psrY https://youtu.be/29RkHH-psrY Part 2: https://youtu.be/SVgSLud50ss https://youtu.be/SVgSLud50ss
- diroussel 8y agoI find the persimitic locking model of NT handles to a fundamental design flaw in NT. is this something that came from VMS. Sure the unix model of ‘user must handle errors’ is a pain, but it leads to more flexibility in the long run.
- kyberias 8y agoCare to elaborate on this pessimistic locking model of NT handles?
- marcthe12 8y agoBasic you cannot write a file in use.
- icedchai 8y agoPretty sure it came from DOS. This behavior existed in Windows 95 and earlier.
- ratsmack 8y agoIt didn't. I was admin on a VAX 11/780 back around 1980. One day I noticed two directories contained the same files and assumed they were duplicate do I deleted one copy to open up some disk space (we were using RM80 disks). Then I noticed that the files had disappeared from both folders, because they were hard linked. I was like "oh shit" because they were system files. I called support and they helped restore the files from tape and then I rebooted. So I can honestly say that VMS is very similar to Unix in that respect.
- kyberias 8y agoHaving hard links in the file system has nothing to do with whether handles can be shared.
- bbstemmer 8y agoFunny to see this article given that Microsoft is not known for quality software
- anth_anm 8y agoShame NT is so buried under 12 layers of crap that people write it off and demand that we just go entirely for a Linux monoculture.
- alpb 8y agoWhen I used to work at Microsoft, my manager (pretty high level person, not a middle-manager) used to tell me: Dave Cutler is one of the biggest assholes in the company and most people don’t like him but the company has to put up with him because the cost of losing him to another competitor (like Google) would be too much from competition standpoint. Given the fact that Dave Cutler would basically be peers with Jeff Dean and Sanjay Ghemawat who had key contributions to multiple fields in the computer science, this makes sense. Instead of hearing a story by a random Microsoft press corp reporter, or his management (like Steve Ballmer), I actually would like to hear stories about Dave Cutler from his subordinates.
- kyberias 8y agoWhat could possible be the purpose for you to tell us that your former boss thinks Dave Cutler is "asshole". There is zero people in the world that need that information.
- alpb 8y agoIt was a discussion about how sometimes upper-level engineers can be demeaning to others. I don’t remember the details, it's been many years. This was within the context of the company culture mostly prior to the Satya Nadella era. I think we were discussing that how assholes should not be tolerated, but there are sometimes assholes up in the food chain that are far too risky to lose.
- kyberias 8y agoPlease stop labeling people "assholes". It doesn't contain any useful information. That's the same as saying "I hate that person".
- coldtea 8y agoNo, it says "that person behaves badly". Whether that's true or false is another matter, but it's not the same as saying "I hate that person".
- acqq 8y agoNitpick, reading this published in 2016: > At the time, some questioned why Microsoft developed a 64-bit system; today most computers are 64-bit systems and even our phones will soon have a 64-bit operating system. I've had to refresh my memory: the first 64-bit iPhone was released on September 20, 2013. It was "we have 64-bit since almost 3 years ago" for Apple in 2016.
- foobiekr 8y agoAs an aside, since it's getting on time for me to move on from my current employer, are there any companies doing these kinds of hardcore engineering projects any more outside of the defense industry? I have spent most of my life (until recently) doing systems work (sometimes but not always big-iron embedded) and I kind of wish companies were still investing in ~30 person teams for big engineering projects. I've always wanted to work on a Windows NT ... but no more routers.