Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: piercarl@sabi.Demon.co.UK (Piercarlo Grandi)
Subject: Re: [++] Tight coding (Was: Re: Wildfire and NT)
Date: 1998/02/28	[thread overview]
Message-ID: <yf3vhtzie77.fsf@sabi.Demon.co.UK> (raw)
In-Reply-To: 34F49435.B6307838@hda.hydro.com


>>> On Wed, 25 Feb 1998 21:59:18 +0000, Terje Mathisen
>>> <Terje.Mathisen@hda.hydro.com> 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 :-).



  reply	other threads:[~1998-02-28  5:00 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-23  5:00 Wildfire and NT Robert Harley
1998-02-24  5:00 ` brianh
1998-02-24  5:00   ` Sean Burke
1998-02-25  5:00     ` brianh
1998-02-25  5:00     ` Mike Albaugh
1998-02-25  5:00     ` [++] Tight coding (Was: Re: Wildfire and NT) Terje Mathisen
1998-02-28  5:00       ` Piercarlo Grandi [this message]
1998-03-01  5:00       ` [++] Tight coding Bill Moyer
1998-03-01  5:00         ` Ruud Bruijnesteijn
1998-03-01  5:00           ` scott
1998-03-02  5:00             ` Martin Tom Brown
1998-03-02  5:00             ` Terry Moore
1998-03-02  5:00               ` Kaz Kylheku
1998-03-02  5:00               ` Pete Becker
1998-03-03  5:00                 ` Ruud Bruijnesteijn
1998-03-03  5:00                   ` Pete Becker
1998-03-04  5:00                     ` Terry Moore
1998-03-03  5:00                       ` Pete Becker
1998-03-04  5:00                       ` Ruud Bruijnesteijn
1998-03-02  5:00             ` Kaz Kylheku
1998-03-01  5:00         ` Larry Kilgallen
1998-03-01  5:00           ` [++] Tight coding (comp.sys.dec-only thread) Bill Moyer
1998-03-02  5:00         ` [++] Tight coding Peter Moylan
1998-03-02  5:00           ` Lawrence Kirby
1998-03-02  5:00             ` Peter Moylan
1998-03-02  5:00               ` Kaz Kylheku
1998-03-02  5:00               ` Ketil Z Malde
1998-03-04  5:00                 ` Lyn A Headley
1998-03-03  5:00               ` Lawrence Kirby
1998-03-02  5:00           ` Kaz Kylheku
1998-03-02  5:00           ` Scott Fluhrer
1998-03-02  5:00           ` Martin Harvey
1998-03-03  5:00           ` Larry Kilgallen
1998-02-25  5:00     ` Wildfire and NT Maynard Handley
1998-02-24  5:00   ` David Hinds
1998-02-25  5:00     ` Del Cecchi
1998-02-25  5:00     ` brianh
1998-02-24  5:00   ` Bill Moyer
1998-02-25  5:00     ` John Hascall
1998-02-25  5:00       ` Rob Rodgers
1998-02-25  5:00     ` Larry Kilgallen
1998-02-25  5:00       ` brianh
1998-02-25  5:00         ` Epiphanies (was: Wildfire and NT) Carlie Coats
1998-02-25  5:00   ` Wildfire and NT Bernd Paysan
1998-02-25  5:00     ` brianh
1998-02-26  5:00       ` Doug
1998-02-26  5:00         ` Jeffrey S. Dutky
1998-02-26  5:00       ` Bernd Paysan
1998-02-27  5:00         ` brianh
1998-03-01  5:00           ` Ketil Z Malde
1998-02-27  5:00   ` Paul Kahler
1998-03-02  5:00     ` Joel Gallun
1998-03-02  5:00       ` Przemek Klosowski
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox