Essay PreviewMore ↓
Lest a whole new generation of programmers grow up in ignorance of this glorious past, I feel duty-bound to describe, as best I can through the generation gap, how a Real Programmer wrote code. I'll call him Mel, because that was his name.
I first met Mel when I went to work for Royal McBee Computer Corp., a now-defunct subsidiary of the typewriter company. The firm manufactured the LGP-30, a small, cheap (by the standards of the day) drum-memory computer, and had just started to manufacture the RPC-4000, a much-improved, bigger, better, faster -- drum-memory computer. Cores cost too much, and weren't here to stay, anyway. (That's why you haven't heard of the company, or the computer.)
I had been hired to write a Fortran compiler for this new marvel and Mel was my guide to its wonders. Mel didn't approve of compilers.
"If a program can't rewrite its own code," he asked, "what good is it?"
Mel had written, in hexadecimal, the most popular computer program the company owned. It ran on the LGP-30 and played blackjack with potential customers at computer shows. Its effect was always dramatic. The LGP-30 booth was packed at every show, and the IBM salesmen stood around talking to each other. Whether or not this actually sold computers was a question we never discussed.
Mel's job was to re-write the blackjack program for the RPC-4000. (Port? What does that mean?) The new computer had a one-plus-one addressing scheme, in which each machine instruction, in addition to the operation code and the address of the needed operand, had a second address that indicated where, on the revolving drum, the next instruction was located. In modern parlance, every single instruction was followed by a GO TO! Put *that* in Pascal's pipe and smoke it.
Mel loved the RPC-4000 because he could optimize his code: that is, locate instructions on the drum so that just as one finished its job, the next would be just arriving at the "read head" and available for immediate execution.
How to Cite this Page
"the story of mel." 123HelpMe.com. 06 Dec 2019
Need Writing Help?
Get feedback on grammar, clarity, concision and logic instantly.Check your paper »
- The film Braveheart directed and starred by Mel Gibson is based on the First War of Scottish Independence against England and is led by the Scottish warrior, William Wallace. This film depicts the life and the influence William Wallace had in 13th-century Scotland. Mel Gibson dramatizes the story so that the American audience will feel excitement and satisfaction with the film. Through the film’s inaccuracies’, Braveheart reveals the American view of masculinity, a desire for action and excitement over reality, importance of freedom and a desire to see the underdog.... [tags: Film Analysis, Masculinity]
1380 words (3.9 pages)
- The Patriot starring Mel Gibson “The Patriot”, starring Mel Gibson and Heath Ledger, was one of the highest grossing films of 2000. Based upon the story of an ex-soldier turned father and farmer, “The Patriot” is set in South Carolina during the Revolutionary War. This critique on the film, however, is not based upon how monetarily successful it was, but rather on its historical accuracy. So the question arises, does “The Patriot” accurately portray the struggle between the colonies and Great Britain during the Revolutionary War.... [tags: Papers]
623 words (1.8 pages)
- Young Frankenstein (1974) was the fourth motion picture directed by Mel Brooks. According to Goodykoontz and Jacobs (2011) “the narrative structure is the basic building block of any story” (p. 2.3). The structure is built on the story of how the grandson of Baron Von Frankenstein goes back to his grandfather’s castle and takes over his life’s work on re-animation. Gene Wilder is the creator of the screenplay, and Mel Brooks was invited to help co-write the story. Wilder got the idea one day while sitting around wondering what it would be like to be the grandson of Dr.... [tags: film analysis, Goodykoontz and Jacobs]
1537 words (4.4 pages)
- Camp Rhetorical Analysis Mel Brook's film ,Young Frankenstein, is a comedic throwback and famous parody to Univeral's Frankenstein (1931), Bride of Frankenstein (1935), Son of Frankenstein (1939), and The Ghost of Frankenstein (1942). (quote from interview generally describing movie experience). Young Frankenstein has important visual effects that bring to this film a well-rounded sense of both frivolity and campy thrill. Satirically embodying the older films, Young Frankenstein includes overly dramatic scene transitions such as iris outs, wipes, and “fading to black”, like all classic Hollywood horror films.... [tags: hollywood horror, death, rebirth]
1078 words (3.1 pages)
- Throughout history, there have been countless stories, legends, myths, and tales featuring larger-than-life heroes that metaphorically or even physically go to the ends of the earth achieving heroic feats and gathering companions along the way, each playing their own role in the hero's story. Many of these epics have the same plot structure and similar character archetypes that make these stories stand out from the rest, giving them a distinct and unique style. The story The Epic of Gilgamesh translated by N.K.... [tags: Epic Analysis, Character, Theme]
1237 words (3.5 pages)
- Countries vary in multiple ways. Some are big, some have mountains, some have dictators, some are as old as time. One thing that remains constant is the cultural pride and need for national identity in each. According to the Merriam-Webster dictionary, pride is the “delight or elation arising from some act, possession, or relationship.” Therefore, it can be inferred that cultural pride is the love, appreciation, and elation for where a person comes from and the practices of that culture. For example, Americans take pride in everything that has been invented and accomplished in America.... [tags: cultural pride, national identity, Scottland]
1535 words (4.4 pages)
- Hamlet, a tragedy by William Shakespeare shows a lot of adaptations to movies. Hamlet by Mel Gibson (1990) and Kenneth Branagh (1996) interpret and portray the play by Shakespeare in different ways. The two film versions of Act IV of Hamlet have many differences and similarities. Kenneth Branagh’s version of Hamlet is seen covering most of the original text of Shakespeare’s play of Hamlet unlike the Mel Gibson version which omits many scenes and dialogues. The film version of Hamlet featuring Kenneth Branagh is a more successful production of Shakespeare’s play of Act IV according to its setting, editing choices and character portrayal.... [tags: Shakespeare film versions]
1124 words (3.2 pages)
- The Passion of the Christ - The Pathetic Appeal of the Death of Jesus In February 2004, one day after the release of The Passion of the Christ, my girlfriend and I took our seats in the crowded theatre. I came into the night prepared to watch the death of Jesus Christ. However, I had no idea that I would actually be watching the death of Jesus Christ. For ten or more years prior to this night, I had always been told that Jesus had died on a cross for my sins. My parents, my Sunday school teachers, my friends’ parents, and my extended family had, at some time in my youth, told me the story of Jesus from the Gospels of the New Testament (Matthew, Mark, Luke, and John).... [tags: Reflective The Passion of the Christ]
1475 words (4.2 pages)
- Mel Gibson’s The Passion of the Christ Many Americans flocked to see Mel Gibson’s movie, “The Passion of the Christ.” On over 2.000 screens across America the viewed the “harrowing depiction of Jesus' last 12 hours in wide-screen vivid color.” (Allen 2004) People viewed images of Jesus being flogged, crucified and left to die. This violence caused some Christians discomfort with theology, and some Jews’ fear that it will “incite violence against them because of its portrayal of Jews’ involvement in Jesus’ death.” (Allen 2004) Despite all of these factors, people embraced the idea behind the movie.... [tags: Film Movies]
824 words (2.4 pages)
- The Passion Assignment The purpose of this assignment is to compare the canonical Gospels to the move Passion of the Christ by Mel Gibson. In order to complete the assignment I will use Kurt Aland’s Synopsis of the Four Gospels and will view the passion scene in Mel Gibson’s Passion of the Christ. The content of this report will include a comparison of the four canonical Gospels. This will show what all four Gospels agree on. Next I will discuss five differences found in the canonical Gospels. After showing how the Gospels are alike and how they are different I will discuss two details in the canonical Gospel’s that was not included in Mel Gibson’s film.... [tags: Jesus, Gospel of John, Gospel, Gospel of Mark]
1146 words (3.3 pages)
"You never know where it's going to put things", he explained, "so you'd have to use separate constants".
It was a long time before I understood that remark. Since Mel knew the numerical value of every operation code, and assigned his own drum addresses, every instruction he wrote could also be considered a numerical constant. He could pick up an earlier "add" instruction, say, and multiply by it, if it had the right numeric value. His code was not easy for someone else to modify.
I compared Mel's hand-optimized programs with the same code massaged by the optimizing assembler program, and Mel's always ran faster. That was because the "top-down" method of program design hadn't been invented yet, and Mel wouldn't have used it anyway. He wrote the innermost parts of his program loops first, so they would get first choice of the optimum address locations on the drum. The optimizing assembler wasn't smart enough to do it that way.
Mel never wrote time-delay loops, either, even when the balky Flexowriter required a delay between output characters to work right. He just located instructions on the drum so each successive one was just *past* the read head when it was needed; the drum had to execute another complete revolution to find the next instruction. He coined an unforgettable term for this procedure. Although "optimum" is an absolute term, like "unique", it became common verbal practice to make it relative: "not quite optimum" or "less optimum" or "not very optimum". Mel called the maximum time-delay locations the "most pessimum".
After he finished the blackjack program and got it to run, ("Even the initializer is optimized", he said proudly) he got a Change Request from the sales department. The program used an elegant (optimized) random number generator to shuffle the "cards" and deal from the "deck", and some of the salesmen felt it was too fair, since sometimes the customers lost. They wanted Mel to modify the program so, at the setting of a sense switch on the console, they could change the odds and let the customer win.
Mel balked. He felt this was patently dishonest, which it was, and that it impinged on his personal integrity as a programmer, which it did, so he refused to do it. The Head Salesman talked to Mel, as did the Big Boss and, at the boss's urging, a few Fellow Programmers. Mel finally gave in and wrote the code, but he got the test backwards, and, when the sense switch was turned on, the program would cheat, winning every time. Mel was delighted with this, claiming his subconscious was uncontrollably ethical, and adamantly refused to fix it.
After Mel had left the company for greener pa$ture$, the Big Boss asked me to look at the code and see if I could find the test and reverse it. Somewhat reluctantly, I agreed to look. Tracking Mel's code was a real adventure.
I have often felt that programming is an art form, whose real value can only be appreciated by another versed in the same arcane art; there are lovely gems and brilliant coups hidden from human view and admiration, sometimes forever, by the very nature of the process. You can learn a lot about an individual just by reading through his code, even in hexadecimal. Mel was, I think, an unsung genius.
Perhaps my greatest shock came when I found an innocent loop that had no test in it. No test. *None*. Common sense said it had to be a closed loop, where the program would circle, forever, endlessly. Program control passed right through it, however, and safely out the other side. It took me two weeks to figure it out.
The RPC-4000 computer had a really modern facility called an index register. It allowed the programmer to write a program loop that used an indexed instruction inside; each time through, the number in the index register was added to the address of that instruction, so it would refer to the next datum in a series. He had only to increment the index register each time through. Mel never used it.
Instead, he would pull the instruction into a machine register, add one to its address, and store it back. He would then execute the modified instruction right from the register. The loop was written so this additional execution time was taken into account -- just as this instruction finished, the next one was right under the drum's read head, ready to go. But the loop had no test in it.
The vital clue came when I noticed the index register bit, the bit that lay between the address and the operation code in the instruction word, was turned on-- yet Mel never used the index register, leaving it zero all the time. When the light went on it nearly blinded me.
He had located the data he was working on near the top of memory -- the largest locations the instructions could address -- so, after the last datum was handled, incrementing the instruction address would make it overflow. The carry would add one to the operation code, changing it to the next one in the instruction set: a jump instruction. Sure enough, the next program instruction was in address location zero, and the program went happily on its way.
I haven't kept in touch with Mel, so I don't know if he ever gave in to the flood of change that has washed over programming techniques since those long-gone days. I like to think he didn't. In any event, I was impressed enough that I quit looking for the offending test, telling the Big Boss I couldn't find it. He didn't seem surprised.
When I left the company, the blackjack program would still cheat if you turned on the right sense switch, and I think that's how it should be. I didn't feel comfortable hacking up the code of a Real Programmer.