From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,b0b9a5eaad4ab6eb X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,b0b9a5eaad4ab6eb X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,b0b9a5eaad4ab6eb X-Google-Attributes: gid102b75,public From: handleym@apple.com (Maynard Handley) Subject: Re: Wildfire and NT Date: 1998/02/25 Message-ID: #1/1 X-Deja-AN: 328581864 References: <6csl81$rb9@news-rocq.inria.fr> <34F3B7C5.5FD1@earthlink.net> Organization: Apple Computer Newsgroups: comp.sys.dec,vmsnet.alpha,comp.arch,comp.sys.intel In article <34F3B7C5.5FD1@earthlink.net>, Sean Burke wrote: > Today, we use malloc'ed objects, storing the pointers in linked-lists, > btrees and hash tables. These data structures come with a lot of > overhead both in space and time - malloc overhead, pointer-indirection, > etc. But they are more flexible than arrays, and in modern systems, > the overhead just isn't often noticeable. One of the tenets of "modern" > coding is to avoid any kind of fixed limitations in one's code. (I > recently was annoyed to discover that a certain C compiler would not > handle literal strings over 32K bytes - imagine! :^) I think it's issues like this that people forget. Often the extra overhead of current systems is NOT simply mass stupidity on the part of all involved. It's a reflection of (1) bending over backwards to be compatible with the past (2) trying to incorporate as much flexibility as possible into what's now being done. One can compare, for example, the fairly lean dispatch of COM or BeOS (basically a vtable) with the more heavyweight dispatch of SOM or QuickTime components. Sure the former is faster and simpler to code up. But the latter allows one to grow a whole lot more cleanly. At least some of the extra crud that lives in OSs and apps is impedance matching between pieces of code written by independent groups. Sure in an ideal world everyone would get together to bypass the glue and use more efficient interfaces. In the real world this is simply not feasible. The other part of course is that we simply want more. You can write an MPEG decoder that plays forward in maybe 50K of code. But if you also want it to play backward, that's not just another 5K---it's a re-architecting that doubles the size. If you add in frame-accurate random access, you double the size again. If you want the video and audio to be able to be piped through third party pieces of code that can then apply their own effects to them, you double the code size again. I am not personally familar with NT, apart from just knowing the overall ideas. However I suspect that the people claimining it's "all of UNIX" only 5 times as large are being disingenous. My suspicion is that the parts that are directly comparable to UNIX are of similar size, but that there are large parts that are NOT comparable to UNIX. For example the file system is a whole lot richer. Or the crud in there to deal with DOS/Win95 apps. I think such complaints would be a whole lot more useful if people were to specify exactly how pieces of software being compared to each other differed in functionality. (Finally let me say that I would not disagree with the assessment that much modern code sucks---I was flabbergasted at being shown a project that generates the user interface for some network code that consisted of over 1000 files! It seemed to be based on adding together the code from 20 previous projects with no attempt to winnow the results. This stuff does happen. However there are also architectural differences between what MacOS or WinNT are trying to do and what UNIX is trying to do, and those differences are not purely stupidity, and they are not free in code space and time.) Maynard -- My opinion only