r/AskComputerScience • • Jan 07 '26

Optimality in computing

So this question is gonna be mouthful but I have geniune curiousity I'm questioning every fundamental concept of computing we know and use everyday like cpu architecture, the use of binary and bytes, the use of ram and all the components that make a up a computer, a phone or whatever Are all these fundamentals optimal? If we could start over and erase all out history and don't care about backward compatibility at all How would an optimal computer look like? Would we use for example ternary instead of binary? Are we mathematically sure that all the fundamentals of computing are optimal or are we just using them because of market, history, compatibility constraints and if not what would be the mathematically and physically and economically optimal computer look like (theoretically of course)

12 Upvotes

46 comments sorted by

View all comments

Show parent comment

1

u/AdreKiseque Jan 08 '26

Wait FORTRAN sounds kinda cool.

2

u/flatfinger Jan 08 '26 edited Jan 08 '26

It was. The only really bad things about it were (1) its requirement that source programs to be formatted for punched cards remained in Fortran-77, ignoring the industry shift toward on-line text entry; (2) it was only suitable for tasks that involved conventional I/O and memory usage paradigms, and not those that required lower-level hardware or memory manipulations. If #1 had been fixed prior to the formation of the C Standards Committee, we might have a world where tasks that require low-level hardware or memory manipulations are performed using C code, but tasks that don't require low-level control and where longer program-build times are acceptable are often done in Fortran, and I think Dennis Ritchie would have been happier in a world where his language was used less, but where its users appreciated it for what it was designed to be without prioritizing "optimizations" over semantics.

BTW, while I think people's disdain for FORTRAN in the 1980s was unfortunate, I think the blame really falls on the FORTRAN-77 Committee. While some shops were still using punched cards in 1977, HP's time-sharing BASIC, which used online terminals for program entry, had been around for almost a decade. Why should anyone view as modern a language that requires source code programs to be submitted on punched cards? By way of analogy, imagine someone today introducing a program language that supported include files, but required that their filenames be eight or fewer uppercase-only letters regardless of the file system upon which the compiler was running. Would anyone today view such a language as modern?

Back in the days, I was one of the many who viewed FORTRAN as the stuff of dinosaurs, and although I've written a couple of FORTRAN programs I don't really remember much of it. Lately, though, I've gained an appreciation for languages like FORTRAN and even COBOL, which was the butt of even more jokes back in the day.