My 1992 view of the problems of computer programming in 1992 (blog.plover.com)

86 points by speckx 3 days ago

miyoji 2 hours ago

> Computer programming is still a black art. It's less than fifty years old, and nobody is very good at it yet. We can make better tools than we know how to use.

I don't think this has changed much at all since 1992. Now you can say that it's less than 90 years old, and nobody is very good at it yet.

And most of our profession has already given up on getting any better at it because a machine can spit out code that compiles.

GolDDranks 17 minutes ago

I disagree. I think that after 1992, we got memory safe languages that brought a meaningful improvement to the status quo. And after 2015, we've got low-level memory safe languages (Rust, as the major example. There are others, more experimental.)

The average programmer doesn't get better – if anything, we might be getting worse, because the tools allow us to, and the capitalist reality doesn't optimize for great programs or programmers but for more money.

But, at least, the tools are way better than in 1992, and I think we, as a collective profession, have learned a thing or two.

ozim 11 minutes ago

It sounds like excuses I hear from junior devs that don’t want to take time to learn existing frameworks and systems.

Juniors just label anything that requires putting effort to understand as „bad”.

There was insane growth in junior dev numbers last 3 decades. It is not like „no one knows”, it is more like there is much more people who don’t know.

wood_spirit 6 hours ago

Beautifully written but when the lack of a better compiler gets attributed to rational actions my brain glitched. That’s not fitting my mental model of how big corps operate at all!

Occam’s razor IBM didn’t invest in Fortran I because the internal political environment at the corporation didn’t have the incentives aligned to do so. This is completely orthogonal to whether they could have used a better compiler or not.

IAmBroom 4 hours ago

IBM has historically been heavily influenced by petty politics. Legacy programs like DOORS (an acquisition, but developed largely afterwards) continue to use UI patterns unlike any other Windows products, which I attribute to their legendary humiliations by Gates.

Letting pride outvote usability is an insane business decision.

diseasedyak 2 hours ago

I went to the University of Arkansas in the fall of 1993, into Computer Systems Engineering, and we were the first freshman class to work on C/C++ as a primary language to be learned, instead of FORTRAN. I still to this day haven't written a single line of that language, but I find it fascinating.

fsmv 2 hours ago

> We don't really know how to program yet, or how to manage our programs. We don't really know what we want to say or how to say it. We don't have good computer languages for expressing what we want to computer to do. We don't know how to think about programming.

I think this is still true today. Software is only just starting and there is a lot of room to find better ways of doing things.

adamddev1 5 hours ago

How did we get so much better at writing compilers? Was it a better understanding of how to make syntax trees with ADTs etc?

Someone 4 hours ago

I think significant improvements are

- not writing compilers in assembly

- not requiring overlays

- knowing how previous compilers produced fast code (Web search doesn’t give me conclusive answers, but that Fortran compiler may have been the first to do loop unrolling and common subexpression elimination)

- having way more memory, CPU and disk available

- possibly: spending less time looking at optimizations. I expect IBM tried hard to make the output of their compiler to match the performance of hand-written assembly

The best link I could find is https://en.wikipedia.org/wiki/Fortran#FORTRAN_IV:

“In particular, the FORTRAN H compiler played an important role in the development of certain kinds of optimization approaches, such as allocating a specific set of registers to hold the values of variables while in a loop. Overall, the compiler had three levels of possible optimization, as Fortran compiler developers had learned early on that the ability to turn off optimization was a necessity, since it drove up compilation times considerability for program runs that often were not going to work anyway. Even with the larger amount of main memory available to it, the FORTRAN H compiler was still organized via a number of overlays.”

senfiaj 3 hours ago

Writing an optimizing production ready compiler doesn't seem to be an easy task, even today. I mean you can fork a compiler or look at the code, but maintaining your own one alone doesn't seem to be realistic.

>> - not writing compilers in assembly

Sure, but you still generate the machine code, right? You still have to master the instructions and their specifics of the target CPUs.

bigfishrunning 3 hours ago

jcranmer 2 hours ago

The author is comparing a 1990 hypothetical compiler to a 1970-ish compiler. The late 1960s and early 1970s are essentially when all of the foundational parser theory gets laid down. By the late 1970s, we're getting into autoparallelization and autovectorization research. Monotone dataflow analysis was developed in the 1970s as well. To be a little bit glib, basically what happened is compiler theory is really birthed starting in the 1970s; if you wanted to track down most of the techniques in the Dragon book, I suspect the vast majority of them originate in that timeframe.

There is a second shift that occurs around 2000-2005-ish, which is the transition of optimizing compilers from an instruction-based semantics to a more value-based semantics, in that modern optimizers make no real attempt or guarantee to preserve the structure of code. For example, an if statement may happily be converted into an expression lacking an if entirely.

fsmv 3 hours ago

I think the reason writing a compiler is easy today is the theory I learned in compilers class. How to do context free grammars, the concept of abstract syntax trees, the pattern of writing a recursive descent parser and having a lexer that only looks one symbol ahead and has a peek function. On top of that we have experience with lots of languages and type systems to draw from when constructing a new one.

I was just doing some research and apparently all of this stuff was invented around the late 60s and so in the 70s it was still new and by the 90s it was standard practice. The dragon book came out in 1986 and spelled it all out in one place.

Today we have the benefit of knowing the right ideas to use from the start and confidence that if you follow the formula it will all work out.

amelius 3 hours ago

I never hear anyone talk about big-O notation anymore ...

Nowadays it's all about optimizing the same old algorithms but on a GPU.

aidenn0 2 hours ago

1. For the most common things people will write, we have a plethora of asymptotically optimal choices that have been discovered.

2. Consider any algorithm of roughly linear complexity (this probably applies to N lg N as well): the only way to make it significantly faster now is to improve parallelism (whether making it so the CPU can exploit ILP, running multicore, or running on a GPU). In 1992, you could make things run significantly faster by just waiting until it was 1994.

Joker_vD 21 minutes ago

> In 1992, you could make things run significantly faster by just waiting until it was 1994.

    In the late 90s a couple of companies, including Microsoft and Apple, noticed (just a little bit sooner than anyone
    else) that Moore's Law meant that they shouldn't think too hard about performance and memory usage... just build
    cool stuff, and wait for the hardware to catch up. Microsoft first shipped Excel for Windows when 80386s were too
    expensive to buy, but they were patient. Within a couple of years, the 80386SX came out, and anybody who could
    afford a $1500 clone could run Excel.

    As a programmer, thanks to plummeting memory prices, and CPU speeds doubling every year, you had a choice. You
    could spend six months rewriting your inner loops in Assembler, or take six months off to play drums in a rock and
    roll band, and in either case, your program would run faster. Assembler programmers don't have groupies.

    So, we don't care about performance or optimization much anymore.

                                                                             — Joel Spolsky, "Strategy Letter VI" (2007)
Also, during that time the computer market grew extensionally as well: there were a lot of people who didn't have a computer, and when they went to buy one, they'd naturally buy one of the more modern, more powerful models. Nowadays, it's mostly people updating their already owned hardware.

bunderbunder 2 hours ago

I still think about it sometimes, but I don’t think it matters nearly as much nowadays as it did back in the day. Oftentimes I’m working in situations where the all the complicating factors that big O explicitly excludes matter much more now than they used to. Partially because they’re relatively larger (e.g., cost of memory access) and partially because they’ve become variable in a way that they weren’t 30+ years ago (e.g., the cost of a conditional branch instruction).

Also to some extent it’s just that we’ve pretty well standardized on algorithm implementations. Thinking about the relative merits of a BST vs a red-black tree vs a hash table with bucketing or open addressing or whatever just doesn’t happen as often when the standard library has one implementation and not choosing it would cost you a week of implementing testing and justifying the decision to your colleagues.

jayd16 2 hours ago

Big O doesn't capture parallelism well enough and that's really been the push since Moore's Law started to hit diminishing returns on single threaded perf.

hectdev 2 hours ago

It is fun when debugging slow code and you see a for loop in a for loop. Feels rewarding to sort that out.

dwoldrich 2 hours ago

AI propaganda crew hasn't rolled on yet today; not seeing the "it's different now, code is cheap/free with AI" messaging yet.

80% of the cost is maintenance, and all software dies so there will always be work to do.

ch_123 5 hours ago

I agree with the overall point of the article, but I feel compelled to be _that guy_ and point out that most of IBM's systems programming involved various dialects of PL/I, not Fortran, and they went through a bunch of different iterations on those compilers and their code generators.

epc 4 hours ago

Was going to make a similar comment…most systems programming was in PL/S or PL/X on 370/390 architecture (regardless of the O/S). AIX and OS/2 were mostly in C. AS/400 in RPG. There were some oddball programs in APL. And thousands of internal "tools" in Rexx.

shakna 7 hours ago

Fortran H was faster than the fastest punchcard feeder of the time. That bottleneck is unfortunately long gone, without the same magnitude of improvement on the other side. (Physical limits, amazing optimisations, etc.)

Last time I was working with CCE, I was looking at blistering runtime speeds, but six or seven hour compiles. Huge codebase (40mil+ LoC), and the optimisations were great, but not exactly a fantastic dev lifestyle.

IAmBroom 4 hours ago

> That bottleneck is unfortunately long gone

? You are pro-bottleneck?

hectdev 4 hours ago

I like this. Really paints a picture of what we are progressing towards. The tools we needed to build the tools we need to build. And the fact that it all boils down to getting the computer to do the thing we want it to do and trying to figure out what that is. Makes me hopeful for the future.

KptMarchewa 7 hours ago

The definition of "passable compiler" in 1992 must have been very different from what it is today; while third year students write interpreters and compilers, nobody would call them useful or passable.

mackeye 16 minutes ago

for advanced undergrads, the university of michigan (i'm speaking from my own experience here) has a course progression of (1) programming languages for 1st year grad students, (2) compilers for undergraduates, (3) compiler optimization for 1st year grad students. the expectation is that you can write a fast implementation of a simple language (~scheme) on your own, and you have the knowledge to write a simple optimizing compiler for e.g. c89/99 if you were to take it on as a longer project. any compiler written in a semester probably doesn't have enough manpower to be optimized to a point of usefulness, and you'll learn some things only via implementation struggles, but you'll have the capability to try, search for literature to get unstuck, etc. which is cool!

Sharlin 3 hours ago

Languages were simpler (except for certain ones, like C++ which was a beast even in 1992), and incredibly complex and magical optimizers weren’t yet a thing, never mind a feature expected of a "passable" compiler. One could still write a reasonable non-optimizing Pascal or C89 compiler in a weekend more or less, and it would be both faster to write (thanks to more expressive languages) and faster at compiling (thanks to itself being compiled by an optimizing compiler) than in 1992!

dTal 3 hours ago

I dunno, Chez Scheme is from 1985 and remains today one of the most magically optimizing compilers for a dynamic language in existence... kind of makes you wonder how we went so far wrong with Python.

aidenn0 2 hours ago

BigTTYGothGF 5 hours ago

> The definition of "passable compiler" in 1992 must have been very different from what it is today;

It was.

photios 8 hours ago

> Now a question: Since we're obviously thousands of times better at producing compilers than we were fifteen years ago, so much so that a single undergraduate can write a passable one in four months, why hasn't IBM invested millions of dollars and hundreds of programmer-years to produce a super FORTRAN I compiler that's thousands of times better than the FORTRAN H compiler?

s/FORTRAN I/Mythos/ for the 2026 version of this.

inigyou 5 hours ago

But they did invest billions in a super-Opus, which they called Mythos.

iberator 4 hours ago

This article is fake.

Intel Fortran Compiler and IBM XL Fortran compilers are still developed and very well funded

zeech 7 hours ago

Jtsummers 6 hours ago

This submission was made two days earlier than the one you linked to, it just came back through the second chance pool. Not a dupe.

IAmBroom 4 hours ago

Both are duplicates of each other.

One was submitted earlier. The other reached the front page earlier.

baddash 8 hours ago

what do you think of it?

uberex 8 hours ago

Beautifully written. Was this a note to self. If so amazing.