1755: Old Days
Title text: Lot of drama in those days, including constant efforts to force the "Reflections on Trusting Trust" guy into retirement so we could stop being so paranoid about compilers.
| This explanation may be incomplete or incorrect: More explanation required on computer programming. Fill out the explanation column in the table that lists all the statements.|
If you can address this issue, please edit the page! Thanks.
This comic is showing a conversation between (young) Cueball and (old) Hairbun about computer programming in the past, specifically the compilers. Cueball, having a faint idea of just how difficult and byzantine programming was "in the old days", asks Hairbun to enlighten him on the specifics. Hairbun promptly seizes the opportunity to screw with his head.
While her initial agreement that code needed to be compiled for multiple architectures is correct, Hairbun's claims rapidly grow ridiculous to the point where the improvement from C to C++ was that C++ finally supported floppy disks but just punched holes in them rather than using punch cards "like C used". (A notch in the side of 5.25" floppy disks indicates when the disk could be written. Though many floppy disks were intended to have only a single side with data, many people used a hole punch to notch the opposite side of the disk, allowing a drive to write data to the other side of the disk in a single sided drive. 5.25" floppies also featured a tiny "index hole" near the central hole of the disk)
Hairbun tells Cueball a tall tale about how hard it was back in the old days, making it sound like some of the programming languages used today (C, C++) were written on punch cards and that you had to ship your code in the mail to a computer company (IBM in this case) to compile your code, which would take from four to six weeks. If there was a simple error, you would have to ship it again for another compilation.
Nothing of what she tells Cueball makes any sense, but it is clear from Cueball's final Wow that he falls for it, ready to believe anything the old Hairbun tells him about how horrible it was to program in the olden days. It is true that it was tough and slow to program on punch cards, which were actually used for an extended period of time, but there is nothing in the rest of Hairbun's story that accurate, except that it was a big deal when the floppy disk was invented.
In the title text, Hairbun continues her musings on the old compiler days, stating that there was a lot of drama in those days. Specifically the references Reflections on Trusting Trust a famous 1984 paper by UNIX co-creator Ken Thompson in which he described a way to hide a virtually undetectable backdoor in the UNIX login code via a second backdoor in the C compiler. Using the technique in his paper, it would be impossible to discover the hacked login by examining the official source code for either the login or the compiler itself. Ken Thompson may have actually included this backdoor in early versions of UNIX, undiscovered. Ken Thompson's paper demonstrated that it was functionally impossible to prove that any piece of software was fully trustworthy.
Hairbun claims that one of the dramas she refers to was that people tried to force Ken Thompson to retire, so everyone could stop being so paranoid about compilers. In reality, any coder who created the first version of a compiler (or a similar critical component) could inject a similar backdoor into software, so it would be false safety. Even if no one else had thought of this, then Thompson's paper was there for any future hacker to see. Though the problem was (claimed to be) solved in David A. Wheeler Ph.D dissertation "Fully Countering Trusting Trust through Diverse Double-Compiling (DDC)".
Table of statements
|Compile things for different processors||Compilers convert code from a human-readable programming language into a binary code that can be directly executed by computer processors.||Many popular modern programming languages are either interpreted - meaning that they run directly from source code - or compile to an intermediate bytecode, like Java or common Python implementations. Programs written in such languages are portable across processor architectures - x86 to ARM, for example. Lower-level languages must take into account the features available on a given processor architecture and operating system. Before that, programs needed to compile directly into the native machine language for each processor they were intended to run on.
Native machine language is dependent on processor architecture. Therefore different processors designed around different architectures will not run the same compiled code (unless the architectures are compatible; AMD64 processors will run i386 code natively, for example.) If the same code needs to be run on multiple architectures, it must be compiled separately for each supported architecture.
|To compile your code, you had to mail it to IBM. It took 4-6 weeks.||Similar to sending Kodachrome slide film to Kodak to be developed.||While IBM has released multiple compilers, they sent the compiler to you, you did not send the code to them. There is some kind of truth in the statement, though: When programming on mainframes, programmers submitted their source code in the evening for compilation over night. When there was an error in the code, they did not get a compiled version of it back, and had to resubmit their code. Sometimes there were time slots available for compilation, and in universities, students will have to wait for their next time slot for another try.|
|Before garbage collection, data would pile up until the computer got full and you had to throw it away.||A garbage collector is a piece of the software that cleans the RAM of data that is no longer being used in the execution of a program.||Hairbun's comment is grounded in reality. Garbage collection is a form of memory management that generally destroys objects or frees up memory once a program no longer needs it. In languages without automatic memory management, like C, the program itself must keep track of what memory has been allocated, and free it once it is no longer needed. If the program does not, it can end up trying to use more memory than the computer has, and may crash. This was, however, a temporary condition. In the worst case, a simple reboot will clear the computer's memory.|
|Early compilers could handle code fine, but comments had to be written in assembly.||A comment in programming is a text written in natural language that is meant to explain some feature of the source code; it is tagged such that the compiler will discard it to save space. Assembly is a low-level programming language.||Comments, in code, are portions of one or more lines that are ignored by the compiler. They are commonly used to explain or comment on the code itself. But sometimes the comments are written in a certain way to compile documentation automatically from it. Also, when examining the output of compilers it's a common practice to use assembly code annotated with comments containing the source code of the program from which the assembly code was generated.
Hairbun's comment is thus very strange, implying the compilers of the day could only distinguish between comments and code if assembly was used to insert the separating tags.
|C could only be written on punch cards. You had to pick a compact font, or you'd only fit a few characters per card.||C is a programming language. A punch card is a primitive form of storing data; it stored data in binary language with holes in a paper or cardboard card where a hole meant a 1 and the absence of a hole meant a 0.||While punch cards were used through the late 1970s and early 1980s to enter programs and data in COBOL, FORTRAN and other early languages, the use of punch cards and punch card machines had been replaced by a text editor long before C (or C++) was developed as a language. This site demonstrates a card punch and cards http://www.masswerk.at/keypunch/
Hairbun claims that code was not written using keyboards, but by punching out letter and character shapes in the punch cards, and the computer would load read keystrokes that way. Simply put, this was never true. Punch cards store characters in binary; there is no font involved and they store up to fixed limit of characters per card (80 characters in the most common format.)
|C++ was big because it supported floppy disks. It still punched holes in them, but it was a start.||C++ is a programming language. A floppy disk is a form of storing data magnetically. It's more advanced than punch cards, but it's still old.||Hairbun says that the improvement from C to C++ was that C++ finally "supported floppy disks", but then it turns out that in C++ the floppy disks were just used instead of punch cards. So the programing was to make holes in floppy disks rather than punch cards. This would of course not be an improvement as floppy disks store information magnetically, as opposed to physically, as punch cards do. This is likely a play on the concept of punching holes in 5.25" floppy disks to double their storage (Source: https://en.wikipedia.org/w/index.php?title=Double-sided_disk&oldid=713168494), or it can also be a reference to the "index hole" of 5.25" floppy disks (see https://en.wikipedia.org/wiki/Floppy_disk#Design -- the tiny hole at the right of the big central hole here: https://www.staff.ncl.ac.uk/roger.broughton/museum/floppys/images/201041b.jpg)|
- [Cueball and Hairbun are standing together and Cueball is talking to her.]
- Cueball: What were things like in the old days?
- Cueball: I hear that you had to ... compile things for different processors?
- Hairbun: Yeah
- [Same setting in a slimmer panel, now Hairbun is replying.]
- Hairbun: To compile your code, you had to mail it to IBM.
- Hairbun: It took 4-6 weeks.
- [Close-up of Hairbun from the waist up.]
- Hairbun: Before garbage collection, data would pile up until the computer got full and you had to throw it away.
- [Same setting as in the first panel with Hairbun gesturing toward Cueball raising one hand palm up.]
- Hairbun: Early compilers could handle code fine, but comments had to be written in assembly.
- [In a frame-less panel Hairbun is seen from the front, with both arms out to the side with both hands held palm up.]
- Hairbun: C could only be written on punch cards.You had to pick a compact font, or you'd only fit a few characters per card.
- [Exactly the same setting as the first panel, but with Hairbun doing the talking.]
- Hairbun: C++ was big because it supported floppy disks.
- Hairbun: It still punched holes in them, but it was a start.
- Cueball: Wow.
add a comment! ⋅ add a topic (use sparingly)! ⋅ refresh comments!