From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,b0b9a5eaad4ab6eb X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,b0b9a5eaad4ab6eb X-Google-Attributes: gid110292,public From: piercarl@sabi.Demon.co.UK (Piercarlo Grandi) Subject: Re: [++] Tight coding (Was: Re: Wildfire and NT) Date: 1998/02/28 Message-ID: #1/1 X-Deja-AN: 329541031 X-NNTP-Posting-Host: sabi.demon.co.uk [158.152.42.79] X-Disclaimer: Contents reflect my personal views only References: <6csl81$rb9@news-rocq.inria.fr> <34F3B7C5.5FD1@earthlink.net> <34F49435.B6307838@hda.hydro.com> Content-Type: text/plain; charset=US-ASCII Organization: Home's where my rucksack's Mime-Version: 1.0 (generated by tm-edit 7.108) Newsgroups: comp.sys.dec,comp.arch,comp.sys.intel >>> On Wed, 25 Feb 1998 21:59:18 +0000, Terje Mathisen >>> said: Terje.Mathisen> Sean Burke wrote: Sean> system is so popular today. Perhaps our code will in turn be Sean> described as "lean-n-mean" by those who follow us. But don't Sean> bet on it. In the Mac world, the term "byte-squeaking pinheadery" Sean> has been applied to some of the brilliant coding that enabled Sean> the original MacOS to run in 128K. Sean> -SEan Sean> (Think about it - OS, window system, and even space left to run Sean> a simple word processor, in 128K! Boggles the mind, doesn't it? ) Yes, but it was really tight and it did run awfully slowly, and functionality was next to terrible. Well coded graphics toolbox, yes, but that not an OS make. Terje.Mathisen> Another example: The original Turbo Pascal 1.0: This Terje.Mathisen> program used a total of 35kB (37 if you allowed textual Terje.Mathisen> error messages instead of just numbers), and contained a Terje.Mathisen> full-screen editor (using WordStar keys), a Terje.Mathisen> compiler/linker(/debugger?), as well as the full runtime Terje.Mathisen> library. Well, what about the original PDP-11 version of UNIX, of which the best examples were V7 and 2.xBSD? The kernel occupied less than 64KB, and it could run a single user, with multiple processes, rather well in 128KB total memory, and even two users could be accomodated rather decently in the same amount of memory, with some swapping. Not difficult to do when process size is typically 8-32KB. I used to run three concurrent users on a 256KB PDP-11/34B, doing serious development work, usually two of them editing with VI and one compiling with the make and PCC. This was by no means heroic: it was how it was designed to run, and it run well. And what about the version of UNIX/Xenix by IBM that somehow managed to run on an 8088 (atrociously slowly)? And all those 286s with SCO Xenix that could run a dozen users using an accounting package in 1MB total RAM? Terje.Mathisen> I still believe this must rank as one of the best hacks Terje.Mathisen> ever (written by Anders Heilsberg, the dane). Uh, it reminds me of a story by Dijkstra, that goes more or less like this: that he had gone to a language implementation conference in the USA, as he had done an Algol 60 compiler and had written a paper about it. He said that the first speaker described his FORTRAN compiler, that was 50,000 lines long, which the audience quite liked. The next guy then introduced his COBOL compiler, claiming that it was 250,000 lines long, and the audience clapped in appreciation. The next guy then smugly announced that his PL/1 compiler was 1,000,000 lines of code, and then the audience gave him an ovation. At that point he had to speak himself and he was very embarassed as he announced that his ALGOL 60 compiler was very fast and generated good code and as bug free as far as they could see, however it was only 5,000 lines long, and the audience almost booed him. American programmers :-).