{"id":85,"date":"2008-02-11T12:01:01","date_gmt":"2008-02-11T17:01:01","guid":{"rendered":"http:\/\/alarmingdevelopment.org\/?p=85"},"modified":"2008-08-03T08:41:18","modified_gmt":"2008-08-03T13:41:18","slug":"informality-sans-mysticism","status":"publish","type":"post","link":"https:\/\/alarmingdevelopment.org\/?p=85","title":{"rendered":"Informality sans Mysticism"},"content":{"rendered":"<p>Gregor Kiczales (of Aspect Oriented Programming fame) gave a keynote talk at OOPSLA&#8217;07 titled <em>Effectiveness sans Formality<\/em> (<a href=\"http:\/\/www.oopsla.org\/podcasts\/Keynote_GregorKiczales.mp3\">podcast<\/a> and <a href=\"http:\/\/www.cs.ubc.ca\/~gregor\/papers\/kiczales-oopsla-07-for-printing.pdf\">slides<\/a>). Roly Perara has posted a <a href=\"http:\/\/dynamicaspects.com\/blog\/2006\/11\/art-of-science-of-software.html\">critique<\/a>, which reminded me that I wanted to discuss it too. <!--more--><\/p>\n<p>Gregor&#8217;s talk triggered a bipolar reaction in the audience: some people said it was the deepest thing they had heard in ages, and others said they didn&#8217;t understand a word of it. What impressed me most was his determination to dig down to the true nature of programming, whatever the obstacles. I may quibble with his technique, but I have the highest respect for his intention, and can only hope to emulate him.\n<\/p>\n<p>I believe that Gregor is raising the central problem of programming. I count Gregor as a fellow <em>anti-formalist<\/em>. By <em>formalism<\/em> I mean the belief that we should treat software as a mathematical theorem to be proved, or as a machine to be engineered. Dijkstra is perhaps most associated with the former idea, and Parnas with the latter. Of course every program contains a theorem, and can likewise be seen as a machine, but to view them as such is to miss their most salient features.\n<\/p>\n<p>Gregor observes that &#8220;things are not formal at the top&#8221;. By this he means that there are no formal requirements for most software, nor can there be. Most software exists in a social context that has no formalized rules, and which continuously evolves, sometimes in reaction to the features of the software itself. The formalist enterprise presumes a fixed precise specification of requirements. But humans, and their social systems, are not formalized. What are the formal requirements for a Word Processor? How can you derive a design for paragraph style sheets from the nature of writing itself? The hard part of programming is not implementing requirements, but designing the requirements. Formalism begs the most important questions.\n<\/p>\n<p>Gregor also says that &#8220;things are not formal at the bottom&#8221;. He quotes Brian Cantwell Smith about the inherent &#8220;slop&#8221; of the real world as compared to formalizations of it. The point here is that formalization is subjective and provisional. Gregor seems to think highly of Smith, but I found <a href=\"http:\/\/www.amazon.com\/Origin-Objects-Bradford-Books\/dp\/0262193639\/ref=sr_1_3?ie=UTF8&amp;s=books&amp;qid=1202696699&amp;sr=1-3\"><em>On the Origin of Objects<\/em><\/a> maddening. Instead try William Kent&#8217;s <a href=\"http:\/\/www.amazon.com\/Data-Reality-William-Kent\/dp\/1585009709\/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1202696819&amp;sr=1-1\"><em>Data and Reality<\/em><\/a>, written 30 years ago, a clear and still-relevant discussion of the inherent subjectivity of data modeling. Kent says: &#8220;This book projects a philosophy that life and reality are at bottom amorphous, disordered, contradictory, inconsistent, non-rational, and non-objective.&#8221;\n<\/p>\n<p>I believe that it is actually worse \u00e2\u20ac\u201c software design is not just subjective \u00e2\u20ac\u201c it is chaotic. Designs change abruptly and non-locally in response to tiny fluctuations in requirements, or even the programmer&#8217;s emerging understanding of the design itself. The crucial fact is that software is in general a work in progress, never finished. As such, designs never reach equilibrium. The ideals of mathematics and engineering are to optimize a design for simplicity and power. Such optimization does not make sense for a moving target, and wastes energy in design turbulence.  I call this &#8220;premature design optimization&#8221;, and I believe that it is incited by the na\u00c3\u00afve formalist ideology rooted in our languages and tools.\n<\/p>\n<p>Anti-formalism has a long intellectual history \u00e2\u20ac\u201c whenever there is a movement to reduce some complex domain to be &#8220;just&#8221; some formal system, a reaction against it emerges. Modern anti-formalists often invoke <a href=\"http:\/\/en.wikipedia.org\/wiki\/Emergence\">emergence<\/a>. The latest fashionable metaphors in software are <a href=\"http:\/\/www.sei.cmu.edu\/uls\/\">biology and urban planning<\/a>. The problem is that all these anti-formalisms are better at explaining what they are <em>not<\/em> than at offering a constructive alternative. You get a lot of metaphors and hand-waving bordering on mysticism.\n<\/p>\n<p>This philosophical argument has been raging for centuries, but I believe that software, for the first time ever, gives us a chance to make lasting progress. That is because software is the first human-built artifact with sufficient power and flexibility to expose the problem. Biological, mental, and social systems also challenge the ideology of formalism, but we can&#8217;t build them to experiment with alternative approaches. Software for the first time lets us do <em>Experimental Philosophy<\/em>.\n<\/p>\n<p>Metaphors and mysticism don&#8217;t build systems. This is the problem Gregor frames in his title: <em>Effectiveness sans Formality<\/em>. Effectiveness means having some way to make things work, even though we reject formalism as the account of how they <em>should<\/em> work. I paraphrase it as <em>Informality sans Mysticism<\/em>: the search for a constructive way to build <em>informal systems<\/em>. That is the central problem of programming.\n<\/p>\n<p>Gregor gives us some examples of the sorts of informal techniques he has in mind. Read the slides and listen to the podcast. A common theme is the coexistence of multiple <em>views<\/em>, none of which is authoritative. Roly also <a href=\"http:\/\/dynamicaspects.org\/blog\/2006\/11\/art-of-science-of-software.html\">talks<\/a> about <em>pluralism<\/em>, <em>points of view<\/em>, and &#8220;a paradigm where software components are intrinsically, persistently and bidirectionally connected&#8221;. The multiple-view idea is a perennial theme of anti-formalism, to such an extent that I see it as the identifying characteristic of the movement. It is our secret handshake.\n<\/p>\n<p>My spin is that we don&#8217;t need to invent arcane methods to build informal systems. They are already right in front of our noses, in our everyday practice. Informal systems are simply &#8220;broken&#8221; formal systems. The ideology of formalism makes value judgments about designs, endorsing such things as simplicity, power, efficiency, analyzeability. These properties are optimal \u00e2\u20ac\u201c when you have a fixed final design. I claim however that when we look at designs-in-progress, these properties are in fact quite sub-optimal. When you optimize for flexibility and adaptability you want different sorts of properties to take precedence. You want to support half-baked, half-working systems. The problem is that our languages and tools are all imbued with the ideology of formalism, and often take the idealistic stance that the language should only let you state largely settled designs. Static type checking is one example of this tendency: you can&#8217;t even compile a program that doesn&#8217;t have a large part of its act already figured out (flame retardant: I love types \u00e2\u20ac\u201c it is just impractically idealistic to treat a program that doesn&#8217;t type check as meaningless and unexecutable).\n<\/p>\n<p>To uncover clues to building informal systems all we need do is observe where the practice of programming diverges from its ideology. My favorite example is copy and paste. We all know that copy and paste is immoral, illegal, and fattening. Yet we still do it. All of the time. This fact is telling us something. It says that while we should ideally refactor all our copying and pasting into some form of parametric abstraction, that just isn&#8217;t always pragmatic. My idea is to &#8220;decriminalize copy and paste&#8221; by reifying it in the IDE into a first-class language mechanism. First class copy and paste can semi-automatically propagate changes between copies, and let us mine and refactor abstractions incrementally and opportunistically. Such a construct can be seen as a &#8220;broken abstraction&#8221;, or a &#8220;proto-abstraction&#8221;, one that is optimized for flexibility rather than a fragile elegance. I have been <a href=\"http:\/\/dspace.mit.edu\/bitstream\/1721.1\/32980\/1\/MIT-CSAIL-TR-2006-037.pdf\">talking<\/a> about this idea for a few years now, and I really should demonstrate it, but something else always comes up.\n<\/p>\n<p>I should admit that I pitched the copy and paste idea to Gregor, and he didn&#8217;t totally buy it. So maybe I am misreading him and we don&#8217;t actually share a common philosophy. The multi-view conspiracy could be merely my own fevered imagining. Be that as it may, I think that Gregor&#8217;s talk was important, and I look forward to seeing where he goes with it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gregor Kiczales (of Aspect Oriented Programming fame) gave a keynote talk at OOPSLA&#8217;07 titled Effectiveness sans Formality (podcast and slides). Roly Perara has posted a critique, which reminded me that I wanted to discuss it too.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pfEnU-1n","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85"}],"version-history":[{"count":1,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions\/95"}],"wp:attachment":[{"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alarmingdevelopment.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}