News for hackers. Stuff that matters.
Re:Things That Turbo Pascal is Smaller Than by kabdib on Sunday October 30, 2011 @11:22PM (#3176238)
TP is about the same size as Leor Zolman's C compiler for the 8080.

Fast-forward about seven years, and my company was looking at an interpreted BASIC implementation that took about 120K. Since this was supposed to live in ROM, you could think about it as Real Money. We dug into it and found all kinds of fat -- the usual 13 fear-based reimplementations of strlen and strcpy, about a zillion porting layers, endless amounts of cut-and-paste nonsense.

Somewhere between 1978 and 1985, the software industry's drive to be lean and mean on PCs died. I found myself writing 'sed' scripts to do peephole optimization on the intermediate assembly language of one of the C compilers we were using. It was pathetic.

Now, of course, I light my cigars with gigabytes. But in terms of actual cost, I'm still a cheap bastard and I probably don't spend any more money per year on CPUs, memory or storage than I did 30 years ago.

Had a chance last year to write a mission-critical hunk of code that /had/ to fit into 1920 bytes. I can't tell you how much fun that was.

Re:Things That Turbo Pascal is Smaller Than by archgoon on Sunday October 30, 2011 @11:29PM (#3176253)
>Had a chance last year to write a mission-critical hunk of code that /had/ to fit into 1920 bytes.

Awesome. What was that for? Please don't leave us hanging :)

Re:Things That Turbo Pascal is Smaller Than by wlievens on Monday October 31, 2011 @07:01AM (#3176986)
Would be something in an embedded context.
Re:Things That Turbo Pascal is Smaller Than by xarien on Sunday October 30, 2011 @11:51PM (#3176289)
I'm guessing DoD if he used the word mission.
Re:Things That Turbo Pascal is Smaller Than by perokreco on Sunday October 30, 2011 @11:54PM (#3176302)
Mission-critical is actually a pretty common term and not really connected to the military.
Re:Things That Turbo Pascal is Smaller Than by xarien on Monday October 31, 2011 @01:19AM (#3176472)
I don't disagree that it's used outside of defense. It's just used very very commonly in defense. Just harmless speculation ;).
Re:Things That Turbo Pascal is Smaller Than by skrebbel on Monday October 31, 2011 @05:53AM (#3176887)
Big bucketloads of business terms and concepts were stolen from the military.

Tactical advantages, strategic initiatives, anyone? And what about the ranking system in your average BigCo? They guys aren't called Sergeant or General but in effect it's the same.

Re:Things That Turbo Pascal is Smaller Than by Figs on Monday October 31, 2011 @06:48AM (#3176970)
"the usual 13 fear-based reimplementations of strlen and strcpy"

What does that mean?

Re:Things That Turbo Pascal is Smaller Than by dbattaglia on Monday October 31, 2011 @08:28AM (#3177152)
I assumed he meant that a bunch of different programmers on the project thought they could avoid buffer overruns by either wrapping or completely re-implementing strlen/strcpy themselves. And probably not ending up any more safe than the standard versions.
Re:Things That Turbo Pascal is Smaller Than by 1000110101 on Monday October 31, 2011 @02:23AM (#3176563)
mission-critical = consulting company, govt contractor, some organization with advanced bureaucracy

another question: why is sed in quotes?

tis true what you say. somewhere in that time, better hardware and better storage became an excuse to write worse software. and this has continued unchecked to the present.

programmers rejoice in the option to be lazy, sloppy and ignorant as if this signifies great advances in software. small advances perhaps relative to the huge advances in hardware and storage. but the real loss is one of skill.