Mostrando entradas con la etiqueta Ellen Ullman. Mostrar todas las entradas
Mostrando entradas con la etiqueta Ellen Ullman. Mostrar todas las entradas

lunes, 4 de agosto de 2008

"The Bug": unexpectedly interesting.

Now, when I first read about this novel my first impression was: "What? A novel about a programmer dealing with a bug? That has to be booooring!" Well, Ellen Ullman definitely does raise to the challenge... at least in the eyes of somebody interested in these issues like me. Perhaps a non-techie would find the book boring but I thought it was amazing how the author manages to pull this one out. A book telling us the story of a programmer and his relationship to a bug —no chases, no crimes— and it still manages to be interesting. She writes about the human side of the story —the programmer slowly being eaten away by this intractable bug as well as by his own ghosts and personal problems with his girlfriend— and also discusses deeply technical issue in a manner that they become understandable by the average reader. Chapeau!

A programmer's madness.

And yet another description of a programmer mesmerized by his task, of which Ullman's book is full of:
He pushed away his plate. By now the water for this night's dinner had boiled, the past had cooked, been drained, and Ethan was sitting behind a plate of pasta with sauce from a jar, but his appetite was gone. He wanted to give up on this remembering thing. It was useless, disorienting. What he wanted was to find that clarity again, the astringent pleasure of the time after Joanna had left, when he was alone with his books and manuals, and he didn't think about her at all.

Because that's what happened while she was away: he forgot her. He was working on the most interesting project of his life, doing significant work, nontrivial work. A programmer can write code for years and never be involved in a project of lasting value. Ethan's work before going to Telligentsia was a compendium if disappointments: projects canceled when a vice president was fired, when a hardware manufacturer changed its pricing structure, when a company was bought by a bigger one. Telligentsia was his chance to build something that might be used for years —decades! Who could blame him for sequestering himself with books and manuals?

(Ullman: p. 302)

Haha! Pasta? Sauce from a jar? Ramen noodles anyone? Man, that sounds familiar! No wonder there are so many people who believe that geeks are almost autistic. But then, we can also find this high level of commitment and concentration in other fields. It's quite normal among artists, for instance, who are quite often accused of being egotistical. Perhaps there is a connection between the two activities after all. Perhaps the programmer is nothing but an artist who gives shape to the most important medium of our time: bits.

Artificial intelligence and complexity arising from simplicity.

Nathan Levin describes Conway's Game of Life in a very excited manner:
At first, his description of the simulation was reasoned, quiet. He told me about the creatures, their interactions with the habitats, how the populations rose and fell in response to the food stores, and how the food stores in turn responded to the presence or absence of creatures. He discussed his plans for migration, so that the creatures could search for food stores on other "island" habitats. Next he turned to the philosophy behind the simulation, the idea that all complex systems were actually nothing more than a collection of simple, "mindless" interactions, complexity not being something built into a system from "on high" by some designer, but something that emerges from "below", as a result of some unexpected interplay among all the underlying simple interactions. A complicated world without a god to oversee it, he called it (or, the idea of God itself was something that emerged from the underlying interactions —I really don't recall which way he put it). All of this took some ten or fifteen minutes, during which time I started to have hope for the night's outcome. I was impressed with what he was attempting, if not for the current results. And he showed philosophical depths I had not suspected were in him.

But as he began describing the elements he would add over time to his world —genders, species, variation in habitats, weather, predators, parasites, viruses, fires, floods, earthquakes, all manner of biblical-scale disasters— a terrible manic energy began to take him over. He started swiping at his hair. His voice rose in pitch and volume, and his legs, splayed out from the sides of the stool, began shaking up and down. It was as if the ideas themselves were banging around furiously in his body, wanting to get out. I had no idea exactly what was causing this reaction, whether it was the drinking or the lateness of the hour or something truly strange in Ethan suddenly showing itself (or the ideas actually battling it out inside him), so there was no recourse for me but to sit quietly and hope that soon come to a conclusion.

(Ullman: pp. 291-292)

Now, these ideas are quite similar to those proposed by Stephen Wolfram in A New Kind of Science, as Ullman herself acknowledges later in the book:

By then he was raving. I'd already spent hours inside his mind —an odd mind, full of tight kinks like his hair. But I was not prepared for this rush of what seemed to be intellectual hysteria. I had no way of knowing that, less than two decades later, a famous computer scientist would be trying to warn the world about the dangers of self-replicating artificial creatures, descendants of Ethan Levin's silly milling O's. No idea I would attend a seminar at which perfectly sane-seeming men would debate not if but only when artificial life-forms, complete in their "humanity", would surpass our poor carbon-based existence, the coming of the "posthuman". What Ethan could only imagine in a fever that night —the notion of human beings as nothing more than a collection of chemical and electrical processes that could be scanned, stored, and replicated in silicon— has already come to be seen as reasonable. And his ideas about complexity arising from simple interactions —now proposed as the basis of an entirely new science. But at the time, I simply thought that Ethan Levin had gone a little crazy —in that hyperlogical way men can get crazy, when they isolate an idea and keep traveling deeper and deeper into it, until they arrive at a place so narrow their little idea seems huge, all-encompassing, an explanation for the world.

(Ullman: p. 293)


Well, that happens, right? How many times have we heard of what we thought was a pretty crazy idea just to find out years later that it slowly became the widely accepted mainstream? Wolfram's theory remains quite controversial, to be fair, but the overall idea that information pervades our whole universe is a whole different story. That other idea is quickly becoming part of the mainstream, if not the main hypothesis of what some might term a new paradigm. Now, from there to Wolfram's hypothesis there is only one more step: the one that assumes that even complex systems can be reduced to small tidbits of information, simple statements —as in a computer program— that, when combined with other statements and interacting with them, can end up building enormously complex systems. I'm by no means an expert on any of this, but it sounds quite reasonable to me, to be honest.

miércoles, 30 de julio de 2008

A geek's love for puns.

Who hasn't "enjoyed" the rapid exchange of puns that geeks quickly engage in as soon as they are set lose in a meeting room? I found Ullman's musings about this quite interesting:
My first reaction to programmer punning had been a certain curiosity. The reason for compulsive punning among computer people seemed interesting, ripe for study. Perhaps this would be my ticket to tenure, I thought. My time spent as a "quality-assurance engineer" would not be seen as falling away from academia but as... fieldwork! I would write papers. I would be invited to the next meeting of the Modern Language Association in San Francisco. There I would tell a learned but computer-illiterate audience how programmers had to work in the relentlessly literal language of code, where one slip of a letter reduced everything to incomprehensibility. The compiler, I would tell them, is a computer program that translates the programmer's code into a set of instructions that can be executed by the microprocessor, the chip at the heart of the machine. The compiler is the entity the programmer must talk to, the creature he or she must make understand the intentions embodied in the code. But this compiler-creature is error-intolerant to a fault; it demands a degree of exactness that is exhausting, painful for an intelligent human being. Leave out a comma, and the compiler halts, affronted at the slightest whiff of error. Fix the comma, run the compiler again, then it halts again, this time at a typo. Puns, I would say, represented a human being's pent-up need for ambiguity. That a word could signify two things at once! And these double meanings could be simultaneously understood! What a relief from the flat-line understanding of a programmer's conversation with the machine!

(People coming up to shake my hand. One of whom tells me about an opening at the University X, for which I should apply immediately. I would be short-listed at once.)

But as my time at Telligentsia progressed, I began to see something more sinister in the programmers' penchant for puns. It wasn't an upwelling of humanistic impulses in the face of the mute machine; it wasn't a cry for the sweet confusion of being human. Quite the contrary, it was an act of disdain for the complicated interchange known as conversation: for its vagaries, lost and meandering trails, half-understandings, and mysterious clarities. For the meaning of a pun is clear, all too clear. It demands a leap in understanding, to the exact place the punner demands. It's the programming of a conversation. Llike the GOTO instruction in code, Go here, jump to this place, unconditionally. Forget about the person Chuck Glover, the desire to know something, Raisa Vastnov's hope for an answer to her question. Would. Chuck. How much wood. Duck. Fuck. A ricochet. A question goes out in a direction, to a listener, a potential answerer, then off it flies at some bizarre trajectory. To take a word at the level of sound, to feel absolutely free (and delighted!) to take that word anywhere language suggested, never mind the intention of the person talking to you —there is something fundamentally hostile in a pun.

(Ullman: pp. 59-60)

As for me, I don't know. I think that perhaps Ullman is just over-analyzing here. I like puns. I like the type of jokes that play with our assumptions about language, concepts and situations. Is that typical of a geek? I don't know, but I certainly like it far more than the typical slapstick humor, not to talk about "jokes" based on denigrating other people or the ones based on bodily functions.

The complexities of event-driven programming.

A good description of event-driven programming:
He was afraid of the mouse. Among everything he had to learn, the mouse seemed the most impenetrable, and the more he read of the e-mail, the more afraid he became. He had never worked with a mouse before; neither had anyone else at Telligentsia, except for Harry, who had once read some code involving a mouse. There were perhaps a few hundred people in the world who knew anything about it, and most of them were working at Apple or at the two or three companies building mice. The documentation from SM Corp., the company that had built the systems Telligentsia was using, consisted of a few barely comprehensible pages, mostly of C-code samples, which Ethan had puzzled over in growing alarm. He felt horribly stupid about this device that had suddenly become so central to the workings of the system. Everything in the graphical user interface was centered on it: Where was the mouse? Was a button pressed? Which one? Single- or double-click? It was an "event-driven" system, code that was constantly being interrupted by the user through the movement and clicking of the mouse, code that was designed to be interrupted by the user's intentions: here, now here, now here. The systems he was used to, in contrast, moved from instruction to instruction under the direction of the programmer's imagination —if this is true, go here; if not, go there. Now he had to rearrange his mind. He had to know how these interruptions were being generated, what happened to them as they percolated up from the mouse, through the mouse device-driver software, through SM's mouse routines, finally to reach his code. He had to understand the mouse.

(Ullman: p. 43)


Obviously, thanks to abstraction layers, we don't need to do this anymore. However, it's still true that event-driven programming still requires a completely different mindset. Personally, as the Ehan Levin from the novel, I also come from the tradition where you directed the computer instruction after instruction and I still find the whole event-driven paradigm quite mind-boggling whenever I dare take a quick look. Perhaps that's why I feel more comfortable with scripting and Web development.

martes, 29 de julio de 2008

Programming as plumbing.

Programming as plumbing:
Ethan sat in his dining room and remembered the moment when his bluff and self-sell suddenly failed him, when he found himself muttering something about there being a "skills mismatch" between himself and the job. And then Harry leaning forward in his chair (with great difficulty, breathing at the mere exertion of shifting his formidable weight), telling him not to worry about not having finished graduate school: "It's all mostly useless by now anyway," he said. "Look, Levin. Programming starts out like it's going to be architecture —all black lines on white paper, theoretical and abstract and spatial and up-in-the-head. Then, right around the time you have to get something fucking working, it has this nasty tendency to turn into plumbing."

"No, no. Lemme think," Harry interrupted himself. "It's more like you're hired as a plumber to work in an old house full of ancient, leaky pipes laid out by some long-gone plumbers who were even weirder that you are. Most of the time you spend scratching your head and thinking: Why the fuck did they do that?"

"Why the fuck did they?" Ethan said.

Which appeared to amuse Harry to no end. "Oh, you know," he went on, laughing hoarsely, "they didn't understand whatever the fuck had come before them, and they just had to get something working in some ridiculous time. Hey, software is just a shitload of pipe fitting you do to get something the hell working. Me," he said, holding up his chewed, nail-torn hands as if for evidence, "I'm just a plumber."

(Ullman: pp. 27-28)

That sentence towards the end should be a classic: "Hey, software is just a shitload of pipe fitting you do to get something the hell working". Whoever hasn't heard of this or that programming language as an excellent glue to fit things together? For, in the end, that's what a programmer does most of the time. Yes, design is also a part of it. Yes, there are certain tecniques learnt from engineering disciplines that help. Still, for the most part, the priority is to get the code working, especially in this crazy world of ours where the product had to be released yesterday. The simile is great, I think.

Great description of a programmer mesmerized by his activity.

Sorry for the long quote, but I think this ought to be one of the best descriptions of a programmer (Ethan Levin, the main character in the novel) mesmerized by his programming work:
He was running the compiler when the bug report came across his desk. The compiler, the program that translates a programmer's code into machine-readable bits —Ethan Levin had laid his code before its merciless gaze, and now he stared into his screen to see its verdit. Was he aware of the tester passing behind him? Did he take any notice of how carefully she slipped between his whiteboard and his chair, holding in her stomach so as not even to brush against him? No, of course not. Oh, all right: perhaps peripherally. Literally in his peripheral vision he might have seen her, and the thought "tester" might have formed in his brain, which would have led to the automatically accompanying idea that testers only bring news of trouble, and so why bother with whatever trouble she was bringing him now?

He was occupied by other troubles. Warning messages were scrolling up his screen, the compiler's responses, notices that this and that little thing in his code might not be legal, might not parse according to the rules, might prevent the compiler from turning his routine into an "object file," a little file full of ones and zeros, ready to be linked up with other object files to create the executable program. He wasn't getting fatal errors —no, not on this pass. There was nothing yet that caused the compiler to issue the awful message that began "Fatal error" and then, abruptly, stop. But such fatalities had already befallen him many times this morning, how many times, he'd lost track —twenty, fifty, a hundred? On each occasion, he had fixed whatever little thing wasn't legal, didn't parse, prevented his code from becoming machine-readable bits; and then he ran the compiler again.

Warning. Warning. Warning. Fatal error. Stop.

Fix the little thing in the code that wasn't legal. Run the compiler again.

Warning. Warning. Fatal error. Stop.

Fix the next little thing.

Warning. Warning.

"It'll compile this time" was the only thought Ethan Levin kept steadily in mind, over and over, on that morning of March 5, 1984. Even the phone had to go on ringing —once, twice, three times— until it reached him, three rings to get inside his window of attention so tuned to the nervous refresh rate of the screen: Warning. Warning.

"What! Are you still there?" said the voice on the phone. "You're supposed to be here!"

He sat confused for a moment. Yes, he knew the voice was Joanna's, but the words "there" and "here": What exactly did they mean? Then, all at once, his attention snapped into focus: It was Joanna, he was supposed to take her to the airport, and he was late.

"I'm leaving!", he said.

"I mean now. Are you leaving now?"

"I'm leaving, I'm leaving," he said again, but vacantly, automatically, because despite himself, his eyes had been drawn back to the screen, to the irregular pulse of the messages as they appeared: Warning. Warning.

"Hello? Are you there?"

"Yeah, yeah. I'm here," he said, jusr as the compiler suddenly displayed the message "Fatal error: MAXWINSIZE not defined," and came to a stop.

"Shit!" Ethan Levin muttered under his breath.

"Ethan! You're compiling! I know it!"

"Yeah, yeah, sorry," he said to Joanna McCarty, who, as his girlfriend of four years, knew all too well the sort of exclamations he made when he was programming and compiling. "Sorry," he repeated, but again automatically, because —though he knew better than to do this now— his mind immediately began ranging over the places where MAXWINSIZE should have been defined. On one side of his attention was Joanna, the month-long trip to India she was taking with Paul Ostrick, husband of her best friend, Marsha Ostrick, and the promise Ethan had made to take them to the airport —and be on time! he swore! But on the other was his sudden and unexpected problem of MAXWINSIZE, this branching trail of questions that led off in many directions, curious and puzzling, down which his mind involuntarily started traveling...

"It's an airplane, Ethan! It's not going to wait for a compile!"

"Shit! Yes! I'm leaving now."

"That's like now now, right? Not like a one-more-compile now?"

"Now now," he repeated, as much to himself as to Joanna. "Now now."

Still, even after he'd stood up and grabbed his jacket from the back of his chair, the face of the screen drew him back. He sat down again, reread the messages on the monitor, typed a command to the system that set it searching the entire code library for all occurrences of MAXWINSIZE. Yes, much better now. The system would tell him where the problem was. Then, tomorrow, he'd fix it.

(Ullman: pp. 17-19)

Who hasn't experienced something like this? Programming, unlike many other human activities —especially the ones we do while at work—, does have that extraordinary ability to suck you in. Viewing the code, writing it, compiling it, testing it, you lose track of time, forget whether it's daytime or nightime, and quite often even disregard basic human needs, such as eating too. The only other activity I can think of that's similar in this respect is any artistic endeavor. It shouldn't surprise us then that so many people speak of programming as an art.

Complying with the rules does not guarantee meaning: linguistics and programming.

Interesting reference to Noam Chomsky, unfortunately better known for his political ideas than his work in linguistics:
Plans, rules, order —I should have known better. The relief I looked forward to at my desk, my perfect test —I should have realized even before I logged on to the system that morning that something else was going to happen. A linguist knows that following the rules is no assurance of anything. "Colorless green ideas sleep furiously," the linguist Noam Chomsky once famously said, his perfectly well-formed sentence: grammatically correct, signifying nothing.

(Ullman: pp. 11-12)

The study of linguistics does have a direct link to that of programming languages —not to talk about the field of artificial intelligence. Basically, a language is nothing but a system where patterns, structures, syntax, grammar, rules... are all very closely related. How is this any different from a computer or a computer network? More and more we realize that different fields that up until know where considered to be separate are actually far more closely related than we ever thought. I have a feeling this trend will do nothing but to deepen in the near future.

Computers gave us... a life full of waits and pauses.

Roberta Walton, the narrator of the book, starts the novel telling us how she is waiting for an immigration agent to pass her passport through the scanner:
And so we waited. Tick-tock, blink-blink, thirty seconds stretched themselves out one by one, a hole in human experience. Waiting for the system: life today is full of such pauses. The soft clacking of computer keys, then the voice on the telephone telling you, "Just a moment, please." The credit-card reader instructing you "Remove card quickly!" then displaying "Processing. Please, wait." The little hourglass icon on your computer screen reminding you how time is passing and there is nothing you can do about it. The diddler at the bottom of the browser screen going back and forth, back and forth like a caged crazed animal. All the hours the computer is supposedly saving us —I don't believe it, in the sum of things, I thought as I stood there leaning on my lugagge cart. It has filled our lives with little wait states like this one, useless wait states, little slices of time in which you can't do anything at all but stand there, sit there, hold the phone -the sort of unoccupied little slices of time no decent computer operating system would tolerate for itself. A computer, waiting like this, would find something usefult to do: check for other processes wanting attention, flush a file buffer, refresh a cache, at least.

(Ullman: pp. 4-5)

Sure, it's unfair to depict computers in this manner. For the most part they do indeed save us plenty of time —what if that very same immigration agent had to manually verify her identity, for starters? Still, I think it was an interesting —in the sense of different, unusual— thought. We are perhaps too used to complimenting the use of new technology in the modern world to realize this sort of small, almost imperceptible waits.

The Bug.

Author of Close to the Machine, yet another cult book among geeks, Ellen Ullman is a computer programmer turned novelist. In The Bug, she describes the fate of a programmer, Ethan Levin, who struggles to fix an UI bug that only shows up sporadically and without any sort of regularity in its behavior. Deeply insecure about his skills because he doesn't have a computer science degree, Levin is in charge of doing the debugging in the midst of a personal crisis that drives his neglected girlfriend to the arms of a hippie. Ullman does a pretty decent job of portraying the overall programmer mindset to the lay reader, as well as the environment of extreme competition and even collective madness they often have to work in.

Technical description:
Title: The Bug.
Author: Ellen Ullman.
Publisher: Nan A. Talese/Doubleday.
Edition: New York (USA), first edition, 2003.
Pages: 356 pages, including postscripts.
ISBN: 0-385-50860-3