<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Speaking my mind</title>
	<atom:link href="http://frankmccabe.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://frankmccabe.wordpress.com</link>
	<description>The whole is more than the sum</description>
	<lastBuildDate>Wed, 04 Jan 2012 03:14:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='frankmccabe.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Speaking my mind</title>
		<link>http://frankmccabe.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://frankmccabe.wordpress.com/osd.xml" title="Speaking my mind" />
	<atom:link rel='hub' href='http://frankmccabe.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Single Inheritance and Other Modeling Conundrums</title>
		<link>http://frankmccabe.wordpress.com/2011/03/17/single-inheritance-and-other-modeling-conundrums/</link>
		<comments>http://frankmccabe.wordpress.com/2011/03/17/single-inheritance-and-other-modeling-conundrums/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 19:36:29 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[Computer Languages]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[programming language]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/?p=63</guid>
		<description><![CDATA[Sometimes a restriction in a programming language makes sense and no sense at all &#8212; all at the same time. Modeling the real world Think about the Java restrictions on the modeling of classes: a given class can only have one supertype and a given object&#8217;s class is fixed for its lifetime. From a programming [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=63&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes a restriction in a programming language makes sense and no sense at all &mdash; all at the same time.</p>
<h2>Modeling the real world</h2>
<p>Think about the Java restrictions on the modeling of classes: a given class can only have one supertype and a given object&#8217;s class is fixed for its lifetime.</p>
<p>From a programming language perspective these restrictions make a good deal of sense: all kinds of ambiguities are possible with multiple inheritance and the very idea of allowing an object to be &#8216;rebased&#8217; fills the compiler writer with horror. (Though SmallTalk allows it.)</p>
<p>The problem is that, in real life, these things do happen. A &#8216;natural&#8217; domain model is quite likely to come up with situations involving multiple inheritance and dynamic rebasing.</p>
<p>For example, a person can go from being a customer, to an employee, to a manager to being retired. A given person might be both an employee and a customer simultaneously (someone else may not be).</p>
<p>Given a domain that is as flexible as this one if forced to &#8216;simulate&#8217; it in Java. I.e., one cannot use a Java class called <code>Customer</code> to represent a customer; because Java&#8217;s idea of class is not rich enough to model the domain.</p>
<p>At the same time, the modeling is not random and a good architect will try to ensure some discipline in the application.</p>
<p>The logical conclusion is that large applications tend to contain a variant of &#8216;the type system&#8217; where the domain model is represented. Java is used to implement the meta model, not the domain model.</p>
<p>This dynamic type system may or may not be based on a well founded model (such as that of description logic); but in any case the programming language is not helping as much as it should.</p>
<h2>What is a language to do?</h2>
<p>On the face of it, it seems that the logical thing is to make a programming language&#8217;s type system sufficiently flexible to actually model real world scenarios.</p>
<p>However, there is a difficulty with that: it is not the case that any one modeling system is best suited to all applications. In addition, a modeling system that is well-suited to modeling domain knowledge is not guaranteed to be equally well suited to regular programming tasks.</p>
<p>A better approach is to embrace diversity. A combination of DSLs and libraries enable one to build out a particular modeling system and to support the programmer with direct appropriate syntax.</p>
<p>For example, this pseudo-code example:</p>
<pre>
  customer isa person
  customer has account
  ...
  person has name
  ...
  C instance of customer
  ...
  if overdrawn(C's account) then
    ...
</pre>
<p>shows one example of a modeled customer. The &#8216;actual&#8217; code implied by this fragment might look like:</p>
<pre>
  C : object;
  ...
  if overdrawn(findAttribute(C,"account")) then
    ...
</pre>
<p>The principal point here is that the syntactic sugar offered by a DSL is not mere syntactic sugar: it can help the application programmer to use a language that is appropriate for her needs while at the same time enforcing sanity checks implied by the particular modeling language.</p>
<p>At the same time, there is no implied permanent commitment to one particular way of modeling with the host language.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=63&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2011/03/17/single-inheritance-and-other-modeling-conundrums/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>Too Many Moving Parts</title>
		<link>http://frankmccabe.wordpress.com/2011/02/23/too-many-moving-parts/</link>
		<comments>http://frankmccabe.wordpress.com/2011/02/23/too-many-moving-parts/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 06:41:57 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[Computer Languages]]></category>
		<category><![CDATA[macros]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/?p=61</guid>
		<description><![CDATA[A common, if somewhat informal, observation about a large code base is that there are &#8220;too many moving parts&#8221; in it. In my experience, this is especially true for large Java systems but is probably universally true. What do we mean by ‘too many moving parts’? Simply put, there is always a significant semantic gap [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=61&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A common, if somewhat informal, observation about a large code base is that there are &#8220;too many moving parts&#8221; in it. In my experience, this is especially true for large Java systems but is probably universally true.</p>
<h2>What do we mean by ‘too many moving parts’?</h2>
<p>Simply put, there is always a significant semantic gap between a programming language and the program. The larger this gap, the more that has to be expressed in the language, as opposed to simply using it.</p>
<p>For example, consider the problem of traversing a recursive tree structure. In Java, we can iterate over an <code>Iterable</code>; structure using a loop, for example, to count elements:</p>
<pre>
int count = 0;
for(E el:tree)
{
&nbsp;&nbsp;count++;
}
</pre>
<p>If the <code>Tree</code> class did not implement <code>Iterable</code> we would be forced to construct an explicit iterator (or worse, write a recursive one-off function):</p>
<pre>
int count = 0;
for(Iterator&lt;E&gt; it=tree.iterator(); it.hasNext();)
{
&nbsp;&nbsp;E el = it.next();
&nbsp;&nbsp;count++;
}
</pre>
<p>This version illustrates what happens when a programming language does not quite meet us halfway in our programming task. There is a lot of extra clutter (managing the iterator) that makes it hard to see what is really going on.</p>
<p>In this case, Java&#8217;s <code>for</code> notation makes it significantly easier to see the program. However, there are many cases where this is not true. For example, you cannot use a similar technique for reading files, searching or removing elements from a tree, etc. etc.</p>
<h2>Language Extensions</h2>
<p>One way of reducing clutter is to permit the programmer to extend the language. Of course, the designers of Java set their face against this — there is no macro facility in Java — for a reasonable if misguided reason: to prevent programmers lying to each other.</p>
<p>The Star language does permit language extensions to be introduced by the programmer. This has the effect of encapsulating not only data abstractions but also control abstractions.</p>
<p>For example, to count the elements of a tree in Star, we can do:</p>
<pre>
var count:=0;
for E in tree do
&nbsp;&nbsp;count := count+1;
</pre>
<p>The program depends on the programmer implementing the type contract for <code>_search</code> and a macro expansion rule:</p>
<pre>
# for ?Ptn in ?Exp do ?Act ==&gt;
&nbsp;&nbsp;__search(Exp,procedure(X){ if X matches Ptn then Act})
</pre>
<p>No apologies for the macro definition itself, but the effect is that the language has been lifted into one that fits the requirements more closely. This, in turn, reduces the semantic gap between the language as used by the programmer and the application.</p>
<p>
Of course, there is quite a bit more to reducing clutter than macro definitions. However, it should be an important goal of language design to ensure that programmers can express themselves with minimum extraneous concepts.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/61/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/61/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/61/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=61&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2011/02/23/too-many-moving-parts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>Late Binding in Programming Languages</title>
		<link>http://frankmccabe.wordpress.com/2011/01/30/late-binding-in-programming-languages/</link>
		<comments>http://frankmccabe.wordpress.com/2011/01/30/late-binding-in-programming-languages/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 00:36:13 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[Computer Languages]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/?p=59</guid>
		<description><![CDATA[Late binding is key to enhanced productivity in programming languages. I believe that this is the single most important reason why so-called dynamic typed languages are so popular. This note is part of an ongoing &#8216;language design&#8217; series which aims to look at some key aspects of programming language design. What do we mean by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=59&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Late binding is key to enhanced productivity in programming languages. I believe that this is the single most important reason why so-called dynamic typed languages are so popular.</p>
<p>This note is part of an ongoing &lsquo;language design&rsquo; series which aims to look at some key aspects of programming language design.</p>
<h2>What do we mean by late binding?</h2>
<p>Simply put, a programmer should not have to say more than they mean at any particular time. </p>
<p>To see what I mean, consider a function that computes a person&#8217;s name from a first and last name. In Star, I can write this:</p>
<pre>
fullName(P) is P.firstName()++P.lastName()
</pre>
<p>This constitutes a complete definition of the function: there is no need to declare types; furthermore this function will work with any type that has a first and last name. </p>
<p>Contract this with a typical well-crafted Java solution:</p>
<pre>
boolean fullName(Person P){
  return P.firstName()+P.lastName();
}
</pre>
<p>Not so different one might argue.</p>
<p>Except that we have had to define a type <code>Person</code>; at best this is an interface and not a class. The Java <code>fullName</code> method will only work with objects of type <code>Person</code>.</p>
<p>In designing the Java version we have to find and/or create a type <code>Person</code>. In addition, we must make sure that all classes that we want to compute the full name of implement the <code>Person</code> type.</p>
<p>This last aspect can be a real productivity killer. Suppose that we want to be able to compute the full name of many different kinds of objects; then we must arrange them all to implement the <code>Person</code> type. This may not even be possible if the classes in question are from a library that you don&#8217;t have the source to.</p>
<h2>Late Binding does not mean dynamic typing</h2>
<p>One of the common perceptions is that you lose the safety of a type checker if you want to allow late binding. This is not true; at least, it is not true for Star.</p>
<p>Star is a statically typed language which supports a range of type constraints. In the case of the <code>fullName</code> function, the constraint is that the type of <code>P</code> has the <code>firstName</code> and <code>lastName</code> attributes. (The details of how this is done are too gory to go into here.) </p>
<p>These constraints can be checked; so, for example, every time the <code>fullName</code> function is used on an argument, the checker can verify that the type of the argument is consistent with having a first and last name. This check can be performed at compile-time.</p>
<p>It is even possible (necessary) to go one step further and allow generic functions to use the <code>fullName</code> function.</p>
<h2>Other forms of Late Binding</h2>
<p>Late binding shows up in other ways. For example, when specifying an imported library of some form or other, it should be possible to declare the requirement for a library in terms of what is needed, rather than the name of the library. I.e., instead of:</p>
<pre>
import java.util.List;
import java.util.ArrayList;
</pre>
<p>we should be able to say:</p>
<pre>
require List of integer;
</pre>
<p>or some such expression.</p>
<p>The difference is that the former says &mdash; in the source code &mdash; which package to import whereas the latter merely declares a contract requirement. How the contract is fulfilled is a separate step; one that a smart compiler system may even be able to automate.</p>
<p>(Some language do work this way. Typically LISP language systems organize their modules in terms of requires and provides.)</p>
<h2>Take Away</h2>
<p>It can be hard to know what features should go into a programming language. Having a few principles to guide us make the task of designing a language more tractable. </p>
<p>In this case, the message is that programmers should be able to program in terms of their requirements, not the compiler&#8217;s. This need not come at the expense of safety or of performance.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=59&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2011/01/30/late-binding-in-programming-languages/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>Productivity gains are permanent, Performance losses are temporary</title>
		<link>http://frankmccabe.wordpress.com/2011/01/22/productivity-gains-are-permanent-performance-losses-are-temporary/</link>
		<comments>http://frankmccabe.wordpress.com/2011/01/22/productivity-gains-are-permanent-performance-losses-are-temporary/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 05:19:07 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[Computer Languages]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/?p=57</guid>
		<description><![CDATA[This is the first in a short series of notes about language design. The goal is to identify what is truly important about programming language design. It is all about productivity There are &#8216;too many moving parts&#8217; in a typical Java program. Here is a simple straw-man example: iterating over a collection. Before Java 5, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=57&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the first in a short series of notes about language design. The goal is to identify what is truly important about programming language design.</p>
<h2>It is all about productivity</h2>
<p>There are &#8216;too many moving parts&#8217; in a typical Java program.</p>
<p>Here is a simple straw-man example: iterating over a collection. Before Java 5, the paradigmatic way of iterating over a collection was to use a fragment like:</p>
<pre>
for(Iterator it=coll.iterator();it.hasNext();){
  SomeType el = (SomeType)it.next();
  ...
}
</pre>
<p>There is a lot of &#8216;clutter&#8217; here; but worse, there are a lot of concepts that are not really that important to the problem at hand.</p>
<p>Compare that to the Java 5 version:</p>
<pre>
for(SomeType el:coll){
 ...
}
</pre>
<p>Here we can focus on exactly what is needed: the collection and the iteration.</p>
<p>This kind of example can be repeated fractally up the entire stack of abstractions: not just at this micro level but also at the level of using standard JDK class libraries on through to using features such as Spring/Hibernate or Wicket.</p>
<h2>The elements of productivity</h2>
<p>I believe that the list of requirements is not that long:</p>
<h3>Digestibility</h3>
<p>A programming language is an artifact, and needs to be understood in order to be effectively used. So, a language with a well crafted structure is going to be easier to learn and use than one with many ill fitting pieces.</p>
<p>Note that this does not mean a small number of pieces (or features). The classic example of this is natural languages (such as English or Spanish). There are at least 500,000 words in the English language. A daunting task for someone wishing to learn the language. But, the grammar of English is relatively simple compared to other languages (such as German or modern Greek). This has helped English to become the dominant second-language globally.</p>
<h3>Semantic Lifting</h3>
<p>Structure in software is evident at many levels: in the micro structure of individual fragments of code, to the organization of libraries to the ecosystem of multiple applications.</p>
<p>A powerful tool for managing this complexity is abstraction. Commonly abstraction is thought of as a technique that enables one to ignore inessential details.</p>
<p>But a better concept might be semantic lifting. Semantic lifting is a common technique in Mathematics. For example, vector geometry is layered over cartesian geometry but permits powerful statements to be expressed in a simple way.</p>
<p>A programming language that can support similar techniques for lifting the language &mdash; like the iteration example &mdash; enables higher productivity.</p>
<h3>Late Binding</h3>
<p>Programming languages are often quite fussy in character: requiring all kinds of details to be established quite early in the design process. For example, Java (like most languages) requires that all types have names.</p>
<p>This emphasis on detail makes a significant barrier to developing a program: the programmer is forced to focus on issues that she may not actually be ready or willing to.</p>
<p>A language that supports late binding allows programmers to delay such choices until they are needed.</p>
<p>For example, one reason that type inference is so powerful is that it permits a programmer to program in a &#8216;type-free&#8217; way while knowing that the compiler will verify the type safety of the program. Establishing types of functions is a detail that can often be left to later. However, ultimately, type inference still ensures that the program is &#8216;correct&#8217;.</p>
<h3>Declarative Semantics</h3>
<p>This one is a hard one!</p>
<p>But the fundamental benefits of a declarative semantics arise from the tractability that follows. Having a declarative semantics makes program manipulation of all kinds more straightforward. That, in turn, means that some high-powered transformations &mdash; such as those required for scaling on parallel hardware &mdash; much easier to accomplish without requiring enormous input from the programmer.</p>
<h2>What does the future language look like?</h2>
<p>According to this thesis, a language based on these principles would have a sound semantic foundation, would be easy to understand and would not require more from the programmer than was required by the problem. And it would be easy to deploy on systems consisting of many cores.</p>
<p>What&#8217;s not to like? In the subsequent posts I will look at each of these principles in turn in a little greater depth.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=57&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2011/01/22/productivity-gains-are-permanent-performance-losses-are-temporary/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>(Software) Architecture = Policy + Mechanism</title>
		<link>http://frankmccabe.wordpress.com/2010/12/06/software-architecture-policy-mechanism/</link>
		<comments>http://frankmccabe.wordpress.com/2010/12/06/software-architecture-policy-mechanism/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 10:49:53 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[computer architecture]]></category>
		<category><![CDATA[Computer Languages]]></category>
		<category><![CDATA[semantic web]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/?p=55</guid>
		<description><![CDATA[In the early 1980&#8242;s Bob Kowalski made famous an interesting equation: Program = Logic + Control. The idea of that equation was that programming was essentially a combination of logic &#8212; i.e., what you wanted done &#8212; with algorithm &#8212; how you wanted it done. It is a fairly commonplace fact that any non-trivial program [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=55&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the early 1980&#8242;s Bob Kowalski made famous an interesting equation: Program = Logic + Control. The idea of that equation was that programming was essentially a combination of logic &#8212; i.e., what you wanted done &#8212; with algorithm &#8212; how you wanted it done.</p>
<p>It is a fairly commonplace fact that any non-trivial program has a similar flavor to it: there is often a substantial amount of machinery that is used to deliver the value in the program; together with some form of policy statement/expression that governs the precise requirements for a particular execution of the program.</p>
<p>The larger the program, the more obvious it is that there is this layering into mechanisms and policies. For example, one could argue that a word processor&#8217;s mechanisms are all the pieces need to implement text editing, formatting and so on. If the word processor supports styles, especially named styles, then these styles are a simple form of policy.</p>
<p>At larger scales, when considering networked applications for example, there are often formal languages used to express the different kinds of policy that apply: security policies, management policies and so on.</p>
<p>So, my thesis of the day is that Architecture consists of the specification of the mechanisms together with the specification of the policies that may apply.</p>
<p>Is this useful? Being clear about the `natural divisions&#8217; in a complex structure is the first step in making that structure tractable.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=55&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2010/12/06/software-architecture-policy-mechanism/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>Sub-turing complete programming languages</title>
		<link>http://frankmccabe.wordpress.com/2008/09/30/sub-turing-complete-programming-languages/</link>
		<comments>http://frankmccabe.wordpress.com/2008/09/30/sub-turing-complete-programming-languages/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 19:01:46 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[computer architecture]]></category>
		<category><![CDATA[Computer Languages]]></category>
		<category><![CDATA[semantic web]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/?p=52</guid>
		<description><![CDATA[Here is an interesting intuition: the key to liberating software development is to use programming languages that are not, by themselves, turing-complete. That means no loops, no recursion &#8216;in-language&#8217;. Why? Two reasons: any program that is subject to the halting problem is inherently unknowable: in general, the only way to know what a turing-complete program [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=52&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here is an interesting intuition: the key to liberating software development is to use programming languages that are not, by themselves, turing-complete.</p>
<p>That means no loops, no recursion &#8216;in-language&#8217;.</p>
<p>Why? Two reasons: any program that is subject to the halting problem is inherently unknowable: in general, the only way to know what a turing-complete program means is to run it. This puts very strong limitations on the combinatorics of turing-complete programs and also on the kinds of support tooling that can be provided: effectively, a debugger is about the best that you can do with any reasonable effort.</p>
<p>On the other hand, a sub-turing language is also &#8216;decidable&#8217;. That means it is possible to predict what it means; and paradoxically, a lot easier to provide a rich environment for it etc. etc. An interesting example of two languages on easier side of the turing fence are TeX and CSS. Both are designed for specifying the layout of text, TeX is turing complete and CSS is not.</p>
<p>CSS is still young but, for all its warts, an order of magnitude easier to work with than TeX. Further more, there is actually no much that TeX can do that CSS cannot; with the proviso that sometimes missing functionality must be &#8216;buried&#8217; in the CSS language.</p>
<p>For example, TeX is powerful enough to implement an indexing scheme, CSS is not. It would be easy enough to extend a CSS engine to provide key indexing mechanisms.</p>
<p>I think that there are many fundamental merits to this approach to programming languages. The biggest is that a sub-turing complete language would (have to) be inherently more high-level than a turing-complete language. Secondly I believe (no evidence presented here) that such a language could be closer to the way people think about tasks than programming in Java (or even Haskell).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=52&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2008/09/30/sub-turing-complete-programming-languages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>On programming languages and the Mac</title>
		<link>http://frankmccabe.wordpress.com/2008/05/25/on-programming-languages-and-the-mac/</link>
		<comments>http://frankmccabe.wordpress.com/2008/05/25/on-programming-languages-and-the-mac/#comments</comments>
		<pubDate>Sun, 25 May 2008 17:05:51 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[computer architecture]]></category>
		<category><![CDATA[Computer Languages]]></category>
		<category><![CDATA[Open Standards]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/?p=51</guid>
		<description><![CDATA[Every so often I dig out my Xcode stuff and have a go at exploring developing an idea for Mac OS X. Everytime the same thing happens to me: Objective-C is such an offensive language to my sensibilities that I get diverted into doing something else. All the lessons that we have learned the hard [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=51&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Every so often I dig out my Xcode stuff and have a go at exploring developing an idea for  Mac OS X. Everytime the same thing happens to me: Objective-C is such an offensive language to my sensibilities that I get diverted into doing something else.</p>
<p>All the lessons that we have learned the hard way over the years &#8212; the importance of strong static typing, the importance of tools for large scale programming &#8212; seem to have fallen on deaf ears in the Objective-C community. How long did it take to get garbage collection into the language?  I also feel that some features of Objective-C represent an inherent security risk (in particular categories) that would make me very nervous to develop a serious application in it.</p>
<p>As it happens, I am currently developing a programming language for Complex Event Processing.<br />
Almost every choice that I am making in that language is the opposite to the choice made for Objective-C &#8212; my language is strongly, statically typed; it is designed for parallel execution, it uses a functional programming foundation, it is symbolic in nature, designed to permit development of large programs, etc. etc. </p>
<p>Hence my allergic reaction and yet again I veer off into something that does not involve actually making a beautiful application for a platform that I much admire.</p>
<p>I have to also admit that I regret Apple&#8217;s choice to abandon Java development. I am not an apologist for Java, but it is significantly better for programming in than Objective-C. </p>
<p>I have heard that some of the features of Cocoa are impossible to do in Java. I have strong doubts about that.</p>
<p>I just wish that Apple&#8217;s sense of design extended to the underlying technologies as much as it does to user engineering.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/frankmccabe.wordpress.com/51/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/frankmccabe.wordpress.com/51/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=51&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2008/05/25/on-programming-languages-and-the-mac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>About the right tools for the job</title>
		<link>http://frankmccabe.wordpress.com/2008/01/11/about-the-right-tools-for-the-job/</link>
		<comments>http://frankmccabe.wordpress.com/2008/01/11/about-the-right-tools-for-the-job/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 23:29:56 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[computer architecture]]></category>
		<category><![CDATA[logic programming]]></category>
		<category><![CDATA[semantic web]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/2008/01/11/about-the-right-tools-for-the-job/</guid>
		<description><![CDATA[Some time ago I was involved in a running debate about whether we should be using Ruby on Rails rather than the Java stack (junkyard?) that we were using. At the time, I did not really participate in the discussion except to note that everything seemed to be at least 5 times too difficult. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=50&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some time ago I was involved in a running debate about whether we should be using Ruby on Rails rather than the Java stack (junkyard?) that we were using. At the time, I did not really participate in the discussion except to note that everything seemed to be at least 5 times too difficult. I had this strong intuition that there were so many moving parts that that was the problem. The application itself was not really that hard. My assertions really ticked some of my colleagues off; for which I apologize; sort of.</p>
<p>I guess that I come from a tradition of high-level programming languages, by high level, I would say that I would consider LISP to be a medium level language, and Prolog is slightly better. I would say that it is a pretty common theme of my career that I end up having to defend the position of using high-level tools. I have gotten a number of arguments, ranging from &#8220;it will not be efficient enough&#8221; to &#8220;how do you expect to find enough XX programmers?&#8221;. I used to try to answer these questions, because I thought that they are raised in good faith. Most of them, with the possible exception of the last, have all but been made moot by progress in silicon and compiler technology.</p>
<p>Anyway, afterwards, I decided to take a more serious look at RoR. I picked up a book on it, and followed along. At the end of three days, I had managed to replicate perhaps 60-70% of the functionality of the site I had been working on; and I became furious.</p>
<p>If we had used RoR at the beginning, I began to think, it is entirely possible that I would still have a share in a company that was going to go places. Not that RoR is perfect; far from it. For example, when something goes wrong with your Ruby program a neophyte has very little support. And Ruby is a pretty weird language. But, to replicate 60% of an application that had taken 5 man years of developer effort in two days really pissed me off. </p>
<p>You see, one key reason that everything fell apart was that we had a competitor; a competitor who got out into the market before we did. It is hard to be sure, but we did not get the feeling that they had started before us even. What they did do was use a much easier to get going technology (PHP). So, maybe PHP does not scale; but so what? The first to market can gain enough time to re-implement should the idea prove sufficiently interesting.</p>
<p>So, the next time someone says that they can&#8217;t find programmers, or some other reason for not using advanced techniques; my response is likely to be more robust. If we need to train people, then so be it. Using technology that lets you get going quickly can make the difference between life or death for a startup. </p>
<p>I may even start pushing some of the languages that I have been involved in developing&#8230;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/frankmccabe.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/frankmccabe.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=50&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2008/01/11/about-the-right-tools-for-the-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>Another thought about Turing and Brooks</title>
		<link>http://frankmccabe.wordpress.com/2007/12/29/another-thought-about-turing-and-brooks/</link>
		<comments>http://frankmccabe.wordpress.com/2007/12/29/another-thought-about-turing-and-brooks/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 19:30:33 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[semantic web]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/2007/12/29/another-thought-about-turing-and-brooks/</guid>
		<description><![CDATA[Rodney Brooks once wrote that robots would be human when treating them as though they were human was the most efficient way of interacting with them. (Not a precise quote.) This is an interesting variation on the Turing test. It assumes that we decide the smartness of machines in the context of frequent interactions with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=49&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://people.csail.mit.edu/brooks/">Rodney Brooks</a> once wrote that robots would be human when treating them as though they were human was the most efficient way of interacting with them. (Not a precise quote.)</p>
<p>This is an interesting variation on the Turing test. It assumes that we decide the smartness of machines in the context of frequent interactions with them. It also builds on an interesting idea: that in order to deal with another entity, be it human, animal or mineral, we naturally build an internal model of the entity: how it behaves, what it can do, how it is likely to react to stimuli etc. That model exists for all entities that we interact with; a rock is not likely to kick you back, your word processor will likely crash before you can save the document etc.</p>
<p>When the most effective way to predict the behavior of a machine is to assume that it has similar internal structure to ourselves, then it will, for all intents and purposes, be human.</p>
<p>So, here is another thought: how do we know that another human is human? Although this sounds flippant, there are many instances where we forget that another person is a real person: soldiers must do this in order to carry out their job; terrorists must de-humanize their enemy in order to justify their atrocities.</p>
<p>I think that we only really recognize another person as human when we can relate personally to them. In most cases, what that means, is recognizing the other person&#8217;s behavior as symptomatic of something that we ourselves have experienced. In effect, the model building process consists largely of seeing someone&#8217;s reaction to an event and relating it to something that we ourselves have experienced. (An aside: how often, when told of some event or situation as it affects someone we know, do we react by quoting something from our own past/situation that somehow is analogous?)</p>
<p>At the heart of this phenomenon is something curious: conventionally, the Turing test is phrased in such a way as to decide whether the other entity is human or not. However, it may be more accurate to say that what we do everyday is try to decide if we ourselves could somehow be that other person (or entity) we are interacting with? Furthermore, it may be, that this emphasizing is only possible because fundamentally, we are all clones to 99.99%: we are all running the same operating system in our mind as it were. We can predict the other person&#8217;s responses because they could be our responses also.</p>
<p>What does this mean? Well, perhaps we need a new formulation of Turing&#8217;s test: an entity can be considered human if we believed that we would react the way that the entity reacts had we been that entity. Another consequence may be that machines may be smart and intelligent etc. but not human simply because the code that they run is not our code. A cultural difference between people and machines if you will.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/frankmccabe.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/frankmccabe.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=49&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2007/12/29/another-thought-about-turing-and-brooks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>
	</item>
		<item>
		<title>Turning Turing upside down</title>
		<link>http://frankmccabe.wordpress.com/2007/12/22/turning-turing-upside-down/</link>
		<comments>http://frankmccabe.wordpress.com/2007/12/22/turning-turing-upside-down/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 06:28:53 +0000</pubDate>
		<dc:creator>Francis McCabe</dc:creator>
				<category><![CDATA[semantic web]]></category>

		<guid isPermaLink="false">http://frankmccabe.wordpress.com/2007/12/22/turning-turing-upside-down/</guid>
		<description><![CDATA[I am probably not alone in visualizing Turing&#8217;s Universal Machine as a little animacule walking over a linear landscape of ones and zeros: The great innovation of thinkers such as Turing and others was to reduce the complex world of algorithms and functions into something simple and elemental: all computable functions can be thought of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=47&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am probably not alone in visualizing Turing&#8217;s Universal Machine as a little <strong>animacule</strong> walking over a linear landscape of ones and zeros:</p>
<p><a href="http://frankmccabe.files.wordpress.com/2007/12/turing-1.png"><img src="http://frankmccabe.files.wordpress.com/2007/12/turing-1-tm.jpg?w=262&#038;h=100" height="100" width="262" border="1" hspace="4" vspace="4" alt="Turing-1" /></a></p>
<p>The great innovation of thinkers such as Turing and others was to reduce the complex world of algorithms and functions into something simple and elemental: all computable functions can be thought of as state machines operating over a large collection of ones and zeros, presence and absence.</p>
<p>There are arguably many differences between a Turing Universal Machine and a modern browser (quite apart from the fact that, being a Javascript interpreter makes a browser a TUM). But for me, one of the most striking differences is that where a TUM is an animacule in a universe of one and zeroes, the browser is an animacule in a universe of <code>HTML</code>, <code>CSS</code>, <code>HTTP</code> and so on.</p>
<p>The browser understands a different world than Turing&#8217;s computer. Were we to draw a browser as an animacule, it should look like:</p>
<p><a href="http://frankmccabe.files.wordpress.com/2007/12/browser-1.png"><img src="http://frankmccabe.files.wordpress.com/2007/12/browser-1-tm.jpg?w=242&#038;h=100" height="100" width="242" border="1" hspace="4" vspace="4" alt="Browser-1" /></a></p>
<p>There are similarities, and if you were to look at it from the perspective of a binary TUM, you would be hard put to see a significant difference between a browser and a regular TUM. But that would be missing an essential difference.</p>
<p>The browser understands a different world than the TUM because the concepts that underlie its state machine are concepts from the world of the web, not the world of ones and zeros. Its semantic engagement with the world is different; arguably higher level than the binary TUM. The browser stands on the shoulders of the binary TUM, but nevertheless reaches higher.</p>
<p>What, one may ask, would the level above the browser&#8217;s level look like? And is there an infinite stack of levels waiting for our discovery?</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/frankmccabe.wordpress.com/47/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/frankmccabe.wordpress.com/47/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/frankmccabe.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/frankmccabe.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/frankmccabe.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/frankmccabe.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/frankmccabe.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/frankmccabe.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/frankmccabe.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/frankmccabe.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/frankmccabe.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/frankmccabe.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/frankmccabe.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/frankmccabe.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/frankmccabe.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/frankmccabe.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=frankmccabe.wordpress.com&amp;blog=253895&amp;post=47&amp;subd=frankmccabe&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://frankmccabe.wordpress.com/2007/12/22/turning-turing-upside-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d1c9da3a12f7ee3ba36184164a2f95e3?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">frankmccabe</media:title>
		</media:content>

		<media:content url="http://frankmccabe.files.wordpress.com/2007/12/turing-1-tm.jpg" medium="image">
			<media:title type="html">Turing-1</media:title>
		</media:content>

		<media:content url="http://frankmccabe.files.wordpress.com/2007/12/browser-1-tm.jpg" medium="image">
			<media:title type="html">Browser-1</media:title>
		</media:content>
	</item>
	</channel>
</rss>
