<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://duncan-cragg.org/css/atom.css" type="text/css" ?>
<!-- Copyright (c) 2006 Duncan Cragg -->

<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
    <id>http://duncan-cragg.org/blog/</id>
    <title>What Not How - Posts tagged 'socialsoftware'</title>
    <subtitle>Duncan Cragg on Declarative Architectures</subtitle>
    <author><name>Duncan Cragg</name></author>
    <logo>/favicon.gif</logo>
    <icon>/favicon.ico</icon>
    <rights>All content including photos and images by Duncan Cragg. Copyright (c) Duncan Cragg, your rights preserved: see /CXL.html</rights>
    <generator uri="http://www.djangoproject.com">A Django Production.</generator>
    <link rel="alternate" type="text/html" href="http://duncan-cragg.org/blog/" title="What Not How" />
    <link rel="self" type="application/atom+xml" href="http://duncan-cragg.org/blog/atom/socialsoftware/" />

    <updated>2008-12-19T17:05:00Z</updated>


    <entry>
        <id>http://duncan-cragg.org/blog/post/mobile-20-killer-app-app-killer/</id>
        <title>The Mobile 2.0 Killer App is the App Killer</title>
        <published>2008-12-19T17:05:00Z</published>
        
        <updated>2008-12-19T17:05:00Z</updated>
        
        <link rel="alternate" type="text/html" href="http://duncan-cragg.org/blog/post/mobile-20-killer-app-app-killer/" title="The Mobile 2.0 Killer App is the App Killer" />
        
        <category term="architecture" />
        
        <category term="declarative" />
        
        <category term="web2.0" />
        
        <category term="yaml" />
        
        <category term="socialsoftware" />
        
        <category term="identity" />
        
        <category term="publishsubscribe" />
        
        <category term="p2p" />
        
        <category term="multimedia" />
        
        <category term="event-driven" />
        
        <category term="mobile2.0" />
        
        <summary type="xhtml">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>

Mobiles are unique - if you want to miss out on the opportunity they represent, you
could choose to see them as just slow computers with tiny interfaces and dodgy Internet
connections. Then try to squeeze in your traditional applications; try squeezing the
office desktop metaphor with its sedentary documents into a device the size of a mouse!
</p><p>
Alternatively, see them as the most personal, social and dynamic of devices that are
becoming connected to the Internet. Now a multi-billion-scale global opportunity opens
up to you.  That&#39;s customers <i>and</i> dollars! In trying to grasp this, some are calling
it &#39;Mobile 2.0&#39;, by analogy with its sibling, Web 2.0.
</p><p>
In that light, <i>the Killer App for Mobile 2.0 is the sharer, masher and updater of
People, Things, Times and Places</i>...  The key to getting Mobile 2.0 right is for it to
merge seamlessly into our lives. That means the handling of dynamic and shared data
becomes the top priority, even above the handling of applications.
</p><p>
This article describes a Mobile 2.0 platform that makes people and their stuff first
class - not applications.
 &#160; ...
</p>

            </div>
        </summary>
        <content type="xhtml" xml:space="preserve">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>
</p><div class="summary"><p>
Mobiles are unique - if you want to miss out on the opportunity they represent, you
could choose to see them as just slow computers with tiny interfaces and dodgy Internet
connections. Then try to squeeze in your traditional applications; try squeezing the
office desktop metaphor with its sedentary documents into a device the size of a mouse!
</p><p>
Alternatively, see them as the most personal, social and dynamic of devices that are
becoming connected to the Internet. Now a multi-billion-scale global opportunity opens
up to you.  That&#39;s customers <i>and</i> dollars! In trying to grasp this, some are calling
it &#39;Mobile 2.0&#39;, by analogy with its sibling, Web 2.0.
</p><p>
In that light, <i>the Killer App for Mobile 2.0 is the sharer, masher and updater of
People, Things, Times and Places</i>...  The key to getting Mobile 2.0 right is for it to
merge seamlessly into our lives. That means the handling of dynamic and shared data
becomes the top priority, even above the handling of applications.
</p><p>
This article describes a Mobile 2.0 platform that makes people and their stuff first
class - not applications.
</p></div><p>
Mobile 2.0 should be about effortless delivery of dynamic data such as local weather,
personalised news feeds, timelines off Facebook and feeds off Twitter, messages, notes,
videos, photos, calendar entries, map locations and meetup plans.
</p><p>
Mobile 2.0 should easily allow us to two-way-share this dynamic data with family,
friends, contacts, third parties and the world.
</p><p>&#160;</p><p>
<b>People don&#39;t actually want applications on their mobiles!</b>
</p><p>
What Mobile 2.0 does <i>not</i> need is traditional applications, because applications just
get in the way of this sharing, mashing and updating of live and personal data.  What
most people want on their mobiles is not the applications, but the stuff they animate.
</p><p>
People only accept the concept of applications (whether a native app or a Web app)
because that&#39;s all they&#39;ve been offered, and it&#39;s largely good enough.  But no-one
actually <i>wants</i> to download and launch and register and log in to a local
find-your-friends application - they just want to find their friends in the area - now!
And they shouldn&#39;t then have to flip between the find-your-friends map owned by that
application and the restaurant review map owned by another.
</p><p>
They don&#39;t want Facebook videos and YouTube videos and phone videos. They just want to
share videos. They shouldn&#39;t have to think about whether to send a picture by MMS or to
use an upload app, after remembering the login. They don&#39;t want multiple ways of sending
messages: IM, SMS, Twitter, Facebook, etc. They shouldn&#39;t have to think about how to
tell their friends about some news item - whether to post a TinyURL link on Twitter or
copy the text manually into Facebook.
</p><p>
They only want one shared calendar, not the phone calendar and a Google calendar and
events on Upcoming.org, that need two more logins.  They shouldn&#39;t have to think about
how to synchronise music or contacts lists on the phone, the iPod, the PC, some memory
card and online.
</p><p>
Applications - both native and Web, and including Applets and Widgets - just get in the
way of life!  They try to own or control our People, Things, Times and Places, breaking
them up with arbitrary application boundaries and making things unnecessarily hard to do.
</p><p>&#160;</p><p>
<b>People just want to share new stuff through their mobiles</b>
</p><p>
What most people would prefer is for their friends and messages from their phonebook,
their Facebook, their Twitter, their IM, plus their Flickr photos, their Facebook
photos, their restaurant and film reviews and their meeting places <i>all</i> to appear on
the <i>same</i> map or in the <i>same</i> calendar... along with the local weather forecast
for now and for any dates being planned.
</p><p>
And for that map or calendar, those photos, messages, interesting news, etc., to be
actively shared amongst those friends, or even the entire world, simply by flicking the
&#39;share with friends&#39; or the &#39;make public&#39; switch. Any member of a group should be able
to post photos into a shared gallery, or scribble onto a shared whiteboard.
</p><p>
The Killer App for Mobile 2.0 is the sharer, masher and updater of People, Things, Times
and Places.  This Mobile 2.0 platform would seamlessly merge, update, synchronise,
upload, download and save your latest life stuff, including that of your friends and
family, so that you no longer have to think about doing it yourself.
</p><p>
Your identity and your stuff would be owned and controlled by you through your personal
handset. They would not be merely transferr<i>able</i> - they&#39;d simply <i>be</i> transferred,
to where they&#39;re needed, when they&#39;re needed, using an open Internet protocol and
standard formats.
</p><p>&#160;</p><p>
<b>What this Mobile 2.0 platform must do</b>
</p><p>
This platform will have a tactile 3D interface, with touchable, draggable areas for
People (friends, family, organisations), Things (photos, videos, messages, feeds, news,
notes), Times (appointments, plans, weather) and Places (maps, galleries).  It will
seamlessly access and present this interactive content from the phone itself -
representing you - from friends, and from third parties.
</p><p>
This interactive content will be findable by tags, geo-tags and timestamps - it&#39;s
semantic data, not document text. You&#39;ll be able to pick a Person, then see their
related Things, Times and Places; or pick a Thing, to see it&#39;s associated People, Times
and Places.  Stuff will also be findable by recommendation and trust, or at worst
by well-targetted advertising.
</p><p>
Loss of Internet will be handled gracefully - stuff from others will still be visible,
but simply not updated. There are no central servers, so loss of a server only affects
the particular content it sources and &#39;animates&#39; for you.
</p><p>
Third parties will easily be able to add functionality and interactive content such as
map overlays, media, news feeds, etc.. They just expose them using the open protocol and
notation - they won&#39;t have to ask anyone in order to do so. Some contributors can adapt
the Facebook, Flickr, Twitter and various IM APIs in the same way. This will require a
system for reconciling the multiple identities of users and their contacts.
</p><p>
There will need to be a virtual property system backed up by crypto keys and supporting
payment - just because we don&#39;t have an App Store, doesn&#39;t mean we can&#39;t charge for
interactive content! It will also be possible to charge for premium services, such as
remote storage space for over-enthusiastic photo-snappers.
</p><p>&#160;</p><p>
<b>Blueprint for the Mobile 2.0 Killer Application</b>
</p><p>
Right, we need to describe some more important things with capital letters, because
we&#39;re going to talk about the best open notation and Internet protocol for sharing,
mashing and updating...
</p><p>
We&#39;ve already introduced People, Things, Times and Places. Call these Entities. Entities
are open data - they have a current State.  We&#39;ll use a text-based notation to describe
their public State, because it&#39;s easy to read and write. Each Entity will conform to an
open standard public schema or syntax.
</p><p>
Entities can Link up because they will each have a UID (unique identifier). Some
friends-People met at the last-week-Time and the Tower-of-London-Place and took these
photo-Things. I have a collection Thing of People and both personal and public
collection Things of photo-Things. You get the idea. That&#39;s a form of mashing. Oh -
photos on the Web can be wrapped in Entities that pull out their metadata, and Web URLs
are valid Links.
</p><p>
Any Entity can Observe another. Well, it&#39;s mostly People Entities doing the Observing
and being Observed, via the mobile device: my Person Observes your Person to see what
you&#39;re up to, then Observes your collection Thing of latest photos and may watch you on
the map Place as you head towards me snapping more. Sharing and updating.
</p><p>
But some Things can be Observers, too; the more interactive ones that are affected by
Entities around them. A simple example may be a restaurant review summarising Thing,
that Observes and averages the scores off several reviewers&#39; submission Things. Each
time a score is added or changed, the final score adjusts accordingly. That&#39;s sharing
and updating, too, and Entities that depend on other Entities is another form of mashing.
</p><p>
Entities have read permissions, which control which People and other Entities can see
their State. Crypto tech may be needed to support this in some cases.  Entities don&#39;t
have write permissions as such, because they control their own State as a result of what
they Observe.
</p><p>
Of course, these Observations occur over the Internet. This will use an open standard
publish-subscribe, peer-to-peer protocol. An Internet packet will subscribe to an
Entity&#39;s Link, another packet will return current Entity State, subsequent packets will
broadcast State updates to current subscribers. State is transferred into servers and
handsets as required, by a combination of pull and push - sharing and updating. The
protocol will ultimately also have to support things like streaming and real-time media;
over Wifi at least, so as not to scare off the carriers...
</p><p>&#160;</p><p>
<b>The U-Web Mobile 2.0 platform</b>
</p><p>
This Mobile 2.0 Killer Application for sharing, mashing and updating People, Things,
Times and Places ... will have a shorter name! I&#39;m calling it the &#39;U-Web&#39; Mobile 2.0
platform at the moment, reflecting its affinity to the
<a href="http://duncan-cragg.org/blog/post/universe-web/">Universe Web</a>
I described before. The U-Web platform application will be free and the protocols
and formats outlined above will be open.
</p><p>
The typical handset specification and APIs we&#39;re aiming for are: at least 320x320
touch screen with Embedded 3D; GPS, Wifi and good 3G; front- and back-facing cameras.
</p><p>
There&#39;s a large number of Windows Mobile devices that match this, including phones from
HTC, Sony-Ericsson, Samsung, etc.  There&#39;s currently one Symbian (the Nokia 5800/Tube
with the N97 to come next year). One iPhone. One Android.  One Blackberry without Wifi
(the Storm).
</p><p>
Although Nokia&#39;s plans are somewhat unclear, their S60v5/Qt/Ovi offering looks like it
may preclude the U-Web, especially since the U-Web wants to be the top app... The U-Web
certainly wouldn&#39;t be allowed onto the Apple App Store - the clue is in the name!
Writing it in C also rules out Java phones, such as Android - which in any case is
another app-oriented platform - and any Blackberry handsets.
</p><p>
The U-Web should thus be written for Windows Mobile 6+ Professional handsets. At least
their users will have a ready appetite for anything integrated and easy to use, that
keeps them clear of the .. clumsy .. operating system. It will also be worth keeping an
eye on the various Linux MID (Mobile Internet Device) platforms, including OpenMoko,
Maemo and Moblin, and maybe LiMo.  Similarly, we should write for Windows and Linux on
the server side - the code will be essentially the same. It&#39;ll need to be written in C
as the lowest common denominator, most efficient language.
</p><p>
The U-Web will be the top or idle application: on Windows Mobile it would replace the
Today screen, or more likely TouchFLO 3D or Spb Mobile Shell. Else it could be an
Xperia X1 Panel. Like these, it will give access to phone functions such as calls,
texts, camera, speaker mute, Bluetooth and Wifi enable, lock screen, brightness, etc.
</p><p>
Of course, it won&#39;t actually be the <i>only</i> application while it is in its beta phase -
people may still want to access a browser, email and various settings and utilities. The
need for browser and email should reduce significantly when functions such as Web 2.0,
messaging and file sharing are drawn up into the mobile-native U-Web, leaving just
actual documents fitting awkwardly.
</p><p>&#160;</p><p>
<b>Opportunity</b>
</p><p>
It is a mistake to see Mobile as just a second-class computing platform or as a
miniature office desktop onto which you must squeeze applications and documents.
</p><p>
Mobile represents a whole different world of personal interaction and almost 100%
presence - especially now that mobiles are becoming Internet-connected and location-aware
and are being furnished with top-quality cameras and touch screens.  The mobile device
represents you, here, now; what you&#39;re seeing and doing, to your social network.
</p><p>
A Mobile 2.0 platform needs to drop closed applications and go instead with the flow of
People, Things, Times and Places. It needs to transparently share, mash and update people
and their stuff.
</p><p>
The U-Web Mobile 2.0 platform described here is designed to seamlessly merge your real
and virtual lives, starting with intuitive, 3D touch interfaces that give an almost
tangible feel to virtual property, then expanding out to touch the 3D lives of others.
</p><p>
If you take a photo, your friends can instantly &#39;join you on the map&#39; where you stand
and chat about it - and the weather conditions you&#39;re experiencing.  No need to upload
to photo sharing sites with logins, or to launch isolated chat, map and weather apps.
</p><p>
The opportunity is billion-scale - increasingly capable mobile devices will become the
world&#39;s primary connected computing device, outstripping PCs and making current Internet
and Web usage look like just a warm-up.
</p><p>
We should be in there with appropriate software when that happens. We can stumble into
this step-by-painful-step via applications and browsers, or we can just let go and
meet the actual requirements - with a platform for mashing dynamic, shared data.
</p><p>
I&#39;d be delighted to hear from you if you&#39;re interested in helping or getting involved in
any way with building this platform! Email me - link&#39;s on the left - or leave a comment.
</p><p>&#160;</p><p>

</p>

            </div>
        </content>
    </entry>
    
    <entry>
        <id>http://duncan-cragg.org/blog/post/universe-web/</id>
        <title>The Universe Web</title>
        <published>2008-07-18T19:49:00Z</published>
        
        <updated>2008-07-18T19:49:00Z</updated>
        
        <link rel="alternate" type="text/html" href="http://duncan-cragg.org/blog/post/universe-web/" title="The Universe Web" />
        
        <category term="cyberspace" />
        
        <category term="architecture" />
        
        <category term="declarative" />
        
        <category term="socialsoftware" />
        
        <category term="publishsubscribe" />
        
        <category term="p2p" />
        
        <category term="rest" />
        
        <category term="scalability" />
        
        <category term="json" />
        
        <category term="metaverse" />
        
        <summary type="xhtml">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>

Since the 
<a href="http://www.virtualworldsnews.com/2008/07/ibm-and-linden.html">announcement</a>
by 
<a href="http://www.ibm.com/virtualworlds/index.shtml">IBM</a>
and
<a href="http://lindenlab.com/">Linden Lab</a>
that
<a href="http://opensimulator.org/wiki/Main_Page">OpenSim</a>
can talk to 
<a href="http://secondlifegrid.net/">Second Life</a>,
I&#39;ve been thinking again about RESTful Virtual Reality.
</p><p>
I&#39;m not the first, of course. Others have been motivated by the same
goal: To bring the Web&#39;s scalability, linkability and interoperability
into Virtual World platforms.
</p><p>
Ultimately, how to use the same techniques as the Web to link
Virtual Worlds together into a single, massive &#39;Virtual Universe&#39;.
</p><p>
Here&#39;s how I would architect the Universe Web...
 &#160; ...
</p>

            </div>
        </summary>
        <content type="xhtml" xml:space="preserve">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>
</p><div class="summary"><p>
Since the 
<a href="http://www.virtualworldsnews.com/2008/07/ibm-and-linden.html">announcement</a>
by 
<a href="http://www.ibm.com/virtualworlds/index.shtml">IBM</a>
and
<a href="http://lindenlab.com/">Linden Lab</a>
that
<a href="http://opensimulator.org/wiki/Main_Page">OpenSim</a>
can talk to 
<a href="http://secondlifegrid.net/">Second Life</a>,
I&#39;ve been thinking again about RESTful Virtual Reality.
</p><p>
I&#39;m not the first, of course. Others have been motivated by the same
goal: To bring the Web&#39;s scalability, linkability and interoperability
into Virtual World platforms.
</p><p>
Ultimately, how to use the same techniques as the Web to link
Virtual Worlds together into a single, massive &#39;Virtual Universe&#39;.
</p><p>
Here&#39;s how I would architect the Universe Web...
</p></div><p>
<b>Entities</b>
</p><p>
The Universe Web needs Entities. (I&#39;m going to be capitalising
Significant Things a lot here to help the Web comparison - hope you
don&#39;t mind). There&#39;s no need to make the Entity list too complicated
since we&#39;re not doing online games yet - just a world like Second Life.
</p><p>
Here&#39;s a list of different kinds of Entity:
</p><ul>
<li>   Places: buildings, streets, hills, lakes</li>
<li>   Things: trees, books, birds, clocks</li>
<li>   People</li>
</ul><p>
</p><p>&#160;</p><p>
<b>State, Links and animation</b>
</p><p>
Entities aren&#39;t exactly the Objects of Object-Oriented programming:
they have lots of public State. In a Virtual World, you can directly
experience their colour, position, orientation, physical relation to
each other, etc., thanks to the local render engine.
</p><p>
The basic structure of the Universe Web is made up of Linked
Entities. A tree is Linked to its ground which is Linked to a
building which is Linked to its occupants which are Linked to their
clothing. Kneebones may even be Linked to thighbones.
</p><p>
Entities are often animated. Actually, Places are generally static,
and People generally animate themselves. So, when talking in general,
we should look at the animation of Things, like trees, books, birds
and clocks.
</p><p>
There are two ways an Entity&#39;s animation can be guided: by Laws and
by Rules.
</p><p>&#160;</p><p>
<b>Laws</b>
</p><p>
Springiness is a handy Law. For example, tree branches, pages in a
book and birds&#39; wings and legs can all have springiness. We can
declare a mid-air location in a bird&#39;s State and a springiness in
its legs, then if the bird lands on a branch, the springiness can
trigger the bird and branch waving gently to a halt.
</p><p>
We could even allow a single bird to become part of a flock Entity,
where the flock only knows how many birds it has and the coordinates
of its centre. Each bird will then be animated by global flock Laws.
</p><p>
The book can have a State of open or closed. If bookness was
elevated to a global Law, then a book deciding that its State was
now simply closed could trigger the elaborate, springy closing of
its pages with a nice &#39;shlump&#39; sound at the end.
</p><p>
The clock&#39;s current time may be set by the clock Entity itself, then
the Law of time take over in between the clock updating its own time
directly.
</p><p>
A Law can be invoked over an Entity&#39;s animation by simply adding the
Law&#39;s name and parameters to its State. Such Laws can be handled by
the physics engine in the same way surface texture is handled by the
render engine: States such as &#39;red&#39; need global meaning, Law
applications such as &#39;springy&#39; need global meaning.
</p><p>&#160;</p><p>
<b>Rules</b>
</p><p>
When a clock reaches its alarm time, it rings.  When its wizard
master approaches, a magic book may glow and open.  Birds fly away
from danger (if a fox is too close, fly away from it). In between
danger, birds and foxes look for food (if a bird is close, run
towards it). 
</p><p>
These are Rules.  Rules are driven by the Observation of one Entity
by another. The fox Observes the bird, the book Observes the wizard.
Rules apply to Entity types: fox Rules, bird Rules, book Rules, etc. 
Rules can guide the animation of an Entity by evolving its State.
</p><p>
State evolution depends on the current State plus the States of the
Observed Entities: Rules make an Entity change from one State to the
next by taking the Entity&#39;s own State, Observing the States of the
Entities around that it cares about, then deciding what the next,
new State should be.  If an Entity changes State, those Entities
Observing it may themselves change State according to their own
Rules, and so-on.
</p><p>
Links are part of an Entity&#39;s State, and Links may therefore change
on the application of Rules. In other words, the virtual world may
restructure when a Rule is run.
</p><p>
An Entity may either Observe another Entity, or Link to it, or both.
An Entity that Links to another needn&#39;t Observe it. Trees don&#39;t
bother to Observe the ground they grow from. Conversely, an Entity
that Observes another needn&#39;t Link to it. A fox would only Link to a
bird if she was lucky enough to catch it. Meanwhile, it is true that
there&#39;s probably a <i>chain</i> of Links to everything that&#39;s Observed.
</p><p>
Unlike Laws, Rules can&#39;t or shouldn&#39;t be second-guessed, so have to
be run &#39;at source&#39; or &#39;inside the Entity&#39;, then the new State
distributed to both the Observing Entities and to all the render
engines.
</p><p>
But render engines are actually Observing People Entities..
</p><p>&#160;</p><p>
<b>People are First Class</b>
</p><p>
In Virtual Worlds, we have People avatars: People are first class
Entities.  People can Observe and can change State, but it&#39;s a real
user doing the animation, not a set of Rules. Observation and State
change by a Person is implemented through the render engine.
</p><p>
Although self-animated, People can still make use of Laws. For
example Laws can be invoked to allow gestures to be easier to make
and to look better, and to allow People to &#39;run forward&#39; rather than
putting their &#39;left foot forward, ..&#39;.  Avatar skills become global
Laws which can be triggered by an avatar&#39;s State animated by a user.
</p><p>&#160;</p><p>
<b>The Universe Wide Web</b>
</p><p>
The Universe Web I&#39;ve just described is a lot like the World Wide Web:
</p><ul>
<li>   An Entity is like a Web Resource</li>
<li>   The State of an Entity is like an HTML Web Representation of a Web Resource</li>
<li>   A Link in an Entity&#39;s State is like a Web URL inside an HTML Web Representation</li>
<li>   Laws are like Javascript, Flash, link hover, blink tags and animated GIFs</li>
<li>   Rule sets are like PHP scripts or Java servers</li>
<li>   A State Observation is like a Web Representation Transfer</li>
</ul><p>
A crucial difference between the Resource Web and the Entity Web is
that, here <i>it&#39;s another Entity doing the Observation</i>.  One
Entity transfers its State to another. 
</p><p>
It&#39;s as if the GET or POST has another Entity &#39;at the client end&#39;.
GET is like an Entity subscribing or Observing; POST is like an
Entity publishing or notifying its State to another (an HTML form
has a content type, too).
</p><p>
People are just examples of that Entity &#39;at the client end&#39;.
Instead of a user hidden behind a client browser, we have
first-class People Entities doing &#39;GET&#39;s and &#39;POST&#39;s: Observing
the Virtual World and acting (i.e., changing State) within it.
Other examples are foxes and clocks.
</p><p>&#160;</p><p>
<b>Notation and Protocol</b>
</p><p>
There are two open standards we need to have in progress while
implementing the Universe Web: the notation and the protocol (our
HTML/URI and HTTP).
</p><p>
Firstly, we have to define the notation for Entities and their
Rules. Both the State of Entities and the Rules that animate them
will be written in the same notation: a Rule talks directly about
State. To me, basing that on JSON (rather than XML) is a clear
choice. Add inter-JSON Entity Links (essentially UUIDs), then work
out a simple JSON Rule language. We will then need to define JSON
&#39;schemas&#39; for the kinds of Entity we would model. These can be
written in the Rule language itself.
</p><p>
Secondly, to define the protocol for Entities to Observe or
subscribe to one another. It will be a &#39;symmetric, asynchronous
HTTP&#39; - a Peer-to-Peer, Publish-Subscribe protocol. UDP and
Multicast stand out for this kind of interaction. A packet will
subscribe, a packet will return current State, a subsequent packet
will multicast State updates. We can re-use all the HTTP cache
headers, only now we can push updates into caches and into render
programs. Packets will inevitably end up tunnelled through TCP and
HTTP, mind...
</p><p>
This lighter notation, which also breaks the data up into smaller
pieces, and this multicast pushing of State change into caches, along
with P2P-style operation, will mean the Universe Web scales even
better than its parent. 
</p><p>
Also, programming declaratively using Rules is both highly
productive and further cleanly scalable through parallel processing. 
</p><p>
Of course, it will be pretty trivial to allow inter-Web cross-over
such as referring to PNG texture images via URL and pulling Universe
Web Entities into a Javascript application that subscribes to them
via Comet.
</p><p>&#160;</p><p>
</p><p>
<b>Building the Universe Web</b>
</p><p>
So that&#39;s my Universe Web. It&#39;s basically the same as the World Wide
Web and thus as scalable, linkable and interoperable. It comes with
added symmetry: Entities, including People as avatars, exchange
State in each direction.
</p><p>
It&#39;s a two-way data Web, not a one-way document Web.
</p><p>
I&#39;ve started work on the Universe Web: the notation, the protocol
and the implementation (in C, for portability across platforms,
including mobile).  Contact me if you want to help!
</p><p>

</p>

            </div>
        </content>
    </entry>
    
    <entry>
        <id>http://duncan-cragg.org/blog/post/how-ruby-can-enable-web-20-platform/</id>
        <title>How Ruby can enable the Web 2.0 Platform</title>
        <published>2007-06-26T15:17:00Z</published>
        
        <updated>2007-06-26T15:17:00Z</updated>
        
        <link rel="alternate" type="text/html" href="http://duncan-cragg.org/blog/post/how-ruby-can-enable-web-20-platform/" title="How Ruby can enable the Web 2.0 Platform" />
        
        <category term="django" />
        
        <category term="web2.0" />
        
        <category term="atom" />
        
        <category term="ajax" />
        
        <category term="yaml" />
        
        <category term="rest" />
        
        <category term="event-driven" />
        
        <category term="publishsubscribe" />
        
        <category term="architecture" />
        
        <category term="declarative" />
        
        <category term="socialsoftware" />
        
        <category term="strest" />
        
        <category term="app" />
        
        <category term="microformats" />
        
        <category term="scalability" />
        
        <category term="json" />
        
        <category term="openid" />
        
        <category term="redux" />
        
        <category term="ruby" />
        
        <summary type="xhtml">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>

<a href="http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html">Web 2.0&#39;s definition</a>
includes seeing the Web as an application platform. Which means it
is in competition with Java and .Net, and with SOA, for both local
and widely distributed applications.
</p><p>
If the Web is going to be a platform, the skills you need to learn
to program it are the core Web 2.0 technologies such as Ajax, JSON,
Atom, Microformats and OpenID.
</p><p>
And Ruby. This language, that&#39;s capturing the hearts of many Web 2.0
programmers, is ideal for easing the transition from the Java
and .Net platforms to the Web platform, as I will show.
</p><p>
Even if you&#39;re part of a big company that is generally immune to the
latest trends, the marriage of Ruby and the Web-as-platform may be
something to prepare for. It could even displace your SOA agenda...
 &#160; ...
</p>

            </div>
        </summary>
        <content type="xhtml" xml:space="preserve">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>
</p><div class="summary"><p>
<a href="http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html">Web 2.0&#39;s definition</a>
includes seeing the Web as an application platform. Which means it
is in competition with Java and .Net, and with SOA, for both local
and widely distributed applications.
</p><p>
If the Web is going to be a platform, the skills you need to learn
to program it are the core Web 2.0 technologies such as Ajax, JSON,
Atom, Microformats and OpenID.
</p><p>
And Ruby. This language, that&#39;s capturing the hearts of many Web 2.0
programmers, is ideal for easing the transition from the Java
and .Net platforms to the Web platform, as I will show.
</p><p>
Even if you&#39;re part of a big company that is generally immune to the
latest trends, the marriage of Ruby and the Web-as-platform may be
something to prepare for. It could even displace your SOA agenda...
</p></div><p>
Few would disagree that the Ruby language is riding the wave generated
by Ruby-on-Rails. In turn, Rails is riding the Web 2.0 wave, coming
as it does from underpinning the very Web 2.0 
<a href="http://www.37signals.com">37signals</a> 
product suite.  
</p><p>
Rails and Ruby have tapped into the tech Zeitgeist of friendly,
simple and powerful. The speed with which the Ruby and Rails
communities have delivered the key components of Web 2.0 is matched
by the speed at which 
<a href="http://radar.oreilly.com/archives/2007/05/state_of_the_co_10.html">Ruby and Rails books are leaving the shelves</a>.
</p><p>
What is the ideal platform of Web 2.0? Will it be Rails and Ruby?
Will Ruby ride the Web 2.0 wave into the mainstream in the same way
Java rode the Web 1.0 wave?
</p><p>
Well, here&#39;s the problem with that question: Web 2.0 is supposed to
be primarily about the <i>Web</i> itself as the platform, as 
<a href="http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html">explained first</a>
by Tim O&#39;Reilly and then by a thousand Web 2.0 vendors and industry
watchers after him.
</p><p>
Web-as-platform is not just vendor hype or pundit hand-waving.
Let&#39;s think about what O&#39;Reilly meant by that.
</p><p>&#160;</p><p>
<b>Web as Platform</b>
</p><p>
Web 2.0 is about making the Web more interactive, and thus able to
support applications where Java and .Net would once have been
considered the sole delivery platforms.
</p><p>
The fact that the technologies of the Web can be turned to this
use is a shift with far-reaching implications.
</p><p>
Broadly, the shift we are seeing is from the one-way, static
document delivery of Web 1.0 towards the two-way, dynamic data
exchange of Web 2.0.
</p><p>
This fundamental repurposing is delivering more complex, interactive
applications that work inside our browsers and which fully leverage
the benefits of online operation. 
</p><p>
Web 2.0 is bringing the user and their stuff <i>into</i> the very Web
that they hitherto only passively consumed.  This network-enablement
of the user in turn enables their <i>social</i> networking and their
shared creativity and self-expression. 
</p><p>
Web 2.0 has tapped into a deep human need - a fact reflected in the
vast traffic volumes and correspondingly vast valuations of Web 2.0
startups that we&#39;re currently seeing.
</p><p>
But Web 2.0 is not just for the startups: Enterprise Web 2.0 is
coming! The bigco.com site is going to be looking a little, well,
static and lifeless when compared to the new sites that are
springing up everywhere, and that most of BigCo&#39;s employees are
using. Further, BigCo can gain huge benefits from Web 2.0 approaches
empowering and connecting those employees on the Intranet. And that
Intranet is an ideal platform for deploying company-wide, interactive
applications.
</p><p>
This shift in the Web to two-way dynamic data is being powered by a
set of technologies that a Web platform programmer is going to have
to learn.
</p><p>&#160;</p><p>
<b>Web 2.0 Platform Technologies</b>
</p><p>
Anything that claims to be an application platform must support
data. Web 2.0 is above all the data Web. Web 2.0 is about
semantics, not free text and font sizes. Hence, it inevitably starts
with data-oriented formats such as 
<a href="http://en.wikipedia.org/wiki/XHTML">XHTML</a>, 
<a href="http://www.yaml.org/">YAML</a> and 
<a href="http://json.org/">JSON</a>.  In Web 2.0
more than ever, we talk about data not documents and about
separating data from its presentation.  CSS is big in Web 2.0, for
good reason (not just for gradient fills). Inside the page of a
self-respecting Web 2.0 application, you&#39;ll often find 
<a href="http://microformats.org/">Microformats</a> - again, 
semantics in the page: publishing concise data of widely-understood
standard formats. Some of those Microformats may be 
<a href="http://support.technorati.com/support/siteguide/tags">tags</a>, and in
Web 2.0 the simplest and most powerful semantics are those little
pivot points in Webspace.
</p><p>
Again, if you&#39;re going to be a general purpose platform, you need to
be able to fetch, update, notify and display that data.  Web 2.0
integration usually happens via JSON data structures and 
<a href="http://en.wikipedia.org/wiki/Representational_State_Transfer">REST</a>
interfaces (some of which, especially those based on 
<a href="http://atompub.org/">AtomPub</a>,
are true REST).  Following on from the data-like pages we serve to
browsers, come the data-like feeds we publish to feed readers and to
other applications.  After feeds, the core technology that gives
Web 2.0 its dynamism and interactivity is 
<a href="http://en.wikipedia.org/wiki/Ajax_(programming)">Ajax</a> and 
<a href="http://en.wikipedia.org/wiki/DHTML">DHTML</a>, and
increasingly 
<a href="http://en.wikipedia.org/wiki/Comet_(programming)">Comet</a>
(server push to the browser). The core technology
that gives Web 2.0 its users is increasingly 
<a href="http://openid.net/">OpenID</a>.
</p><p>
All of the above are open technologies. You can do Web 2.0 without
proprietary technologies, just like Web 1.0. Indeed, keeping to the
principles that made the Web successful is also essential to the
success of Web 2.0. The Web platform is the first application
platform that has to consider scalability and interoperability, and
will ignore them at its cost.  I have written before about open
data, use of standard data formats and using REST properly to avoid
creating unscalable, walled-garden sites. You don&#39;t need Flash or
SilverLight, you don&#39;t need vast amounts of custom Javascript, you
don&#39;t need function calls tying you to your servers.
</p><p>&#160;</p><p>
<b>Programming the Web 2.0 Platform</b>
</p><p>
So, we&#39;ve got the dynamic data that you&#39;d expect of a would-be
platform. But how to drive changes in those data? How do we
program the Web platform to animate all this data?
</p><p>
All Rails programmers will know the above technology list; it comes
with the territory. The Web 2.0 Platform can be very succesfully
powered by Rails and Ruby. Ruby and Rails make Web 2.0
applications simple and quick to program, addressing many of the
needs of simple Web 2.0 applications out of the box. There&#39;s little
doubt that Ruby and Rails will have a secure future riding the
Web 2.0 wave.
</p><p>
However, for many Web 2.0 applications, programming may not even be
necessary, at least not in the procedural or imperative style
programmers expect. 
</p><p>
Look back to the early 90&#39;s: &#39;Web 1.0&#39; made a whole class of
applications easy to write without programming: applications for
navigating information. You just wrote in HTML, declaratively.
</p><p>
Now look back at the long path of evolution of Java, through J2EE,
Spring, AOP, IoC, Domain Driven Design, POJOs. All trying to
achieve the simple goal of &#39;remove all that MVC and persistence
stuff and let us concentrate on business or domain objects&#39;. But
they never quite seemed to get it right. 
</p><p>
But then Rails comes along, and has succeeded by simple virtue of
concentrating on easy manipulation of the 
&#39;<a href="http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html?page=3">Intel Inside</a>&#39;
of Web 2.0 - data. 
</p><p>
It&#39;s reminiscent of the 
&#39;<a href="http://nakedobjects.org/wiki/Main_Page">Naked Objects</a>&#39;
approach to application building with minimal programming (just
business or domain code in POJOs that expose state into the GUI and
are transparently persisted). The 
<a href="http://ajaxian.com/archives/streamlined-naked-objects-for-the-web">Streamlined</a>
project takes Rails even further down this path. Rails&#39; nearest
competitor, <a href="http://www.djangoproject.com/">Django</a>,
has an admin interface that works in a similar way, automatically
generating edit pages based on the data model.
</p><p>
Web 2.0 is about data, about semantics. Web 2.0 is inherently
declarative.  So Web 2.0 applications can be written declaratively -
Web 2.0 mashups can be just wired together and their data animated
by business rules. A bit like programming spreadsheets. 
</p><p>
<a href="http://www.techcrunch.com/2007/03/02/5-ways-to-mix-rip-and-mash-your-data/">Teqlo</a>, 
<a href="http://www.techcrunch.com/2007/04/16/coghead-announces-17000-developers-building-applications-visually/">Coghead</a>, 
<a href="http://www.techcrunch.com/2007/03/02/5-ways-to-mix-rip-and-mash-your-data/">Pipes</a>, 
<a href="http://www.techcrunch.com/2006/03/11/dabbledb-online-app-building-for-everyone/">DabbleDB</a>, 
<a href="http://www.techcrunch.com/2007/06/19/new-site-jumps-into-the-application-creation-space/">LongJump</a>, 
<a href="http://www.techcrunch.com/2007/05/18/microsoft-launches-popfly-mashup-app-creator-built-on-silverlight/">Popfly</a>, 
<a href="http://www.techcrunch.com/2006/08/21/salesforce-dives-deep-into-google-adwords/">AppExchange</a> and
<a href="http://www.techcrunch.com/2006/04/30/wyaworks-app-builder-for-non-coders/">Wyaworks</a> 
are all examples of the different ways to program the new Web 2.0
platform without imperative code.
</p><p>
That&#39;s what we mean by Web-as-platform - not only is the underlying
programming language irrelevant, it will often not even be needed,
certainly for simple data manipulation applications and for many
simple mashups. Being RESTful gives you a massive head start in
this, of course.
</p><p>
While Rails is already in the game with its innate understanding of
Web 2.0 techniques and philosophies, Ruby itself has a huge amount
to offer the would-be declarative programmer, who is making the
transition to this new Web platform from their traditional Java
or .Net platform.  In particular, it is easy to write your domain
logic in a declarative style in Ruby: they call them &#39;DSLs&#39; these
days, but the idea is the same in most examples I&#39;ve seen.
</p><p>&#160;</p><p>
<b>Web 2.0 - The Web Redux</b>
</p><p>
Now, if you&#39;ve been following this blog, you&#39;ll know I have a
few opinions on 
<a href="http://duncan-cragg.org/blog/post/right-way-to-do-ajax-is-declaratively/">Declarative Web 2.0</a> and on
<a href="http://duncan-cragg.org/blog/post/distributed-observer-pattern-rest-dialogues/">patterns for programming REST</a>.
Essentially I argue that, if you want to play in the Web 2.0
platform game, you don&#39;t want to be writing screeds of Javascript
functions that call more functions on your servers. 
</p><p>
I recently presented some ideas along these lines at
the WWW2007 conference, entitled 
&#39;<a href="http://www2007.org/prog-Developers.php#saturday">The Micro Web: putting the Web back into Web 2.0</a>&#39;,
where I also showed a demo written in Python.
</p><p>
This approach combines my 
<a href="http://duncan-cragg.org/blog/post/distributed-observer-pattern-rest-dialogues/">Distributed Observer Pattern</a>
with Comet push to enable highly dynamic Web 2.0 applications to be
coded RESTfully and declaratively, with zero Javascript.  The
Distributed Observer Pattern offers a clean programming model for
animating the Web 2.0 dynamic-data technology set I described above. 
</p><p>
I believe the Observer Pattern is core to the way we&#39;ll be
programming when the Web 2.0 Platform hits mainstream.  It enables
the kind of event- and rule-driven programming that matches the
characteristics of the Web 2.0 dynamic data platform. As a 
further killer benefit, it also directly addresses the optimal
utilisation of multicore processors.
</p><p>
I am currently porting my Python implementation of this approach to
Ruby, in the
<a href="http://rubyforge.org/projects/redux/">Redux</a> 
project on Rubyforge.  Redux stands for &#39;Ruby Event-Driven Update
Exchange&#39;.  It uses the highly scalable
<a href="http://rubyforge.org/projects/eventmachine">EventMachine</a>
epoll-based event loop to power its event-driven architecture.
This will be essential when Redux is asked to scale up a 
Comet-based application.
</p><p>
Like Rails, Redux will be a Web (2.0) application framework, but
unlike Rails, it puts the Observer Pattern and event- and
rule-driven programming at its core. 
</p><p>
Redux&#39;s headline is &#39;Web 2.0 in-a-box&#39; or &#39;Naked Objects on the Web&#39;.
</p><p>&#160;</p><p>
<b>Conclusion</b>
</p><p>
If you&#39;re in BigCo, and are responsible for setting BigCo&#39;s
technical strategy, then train your Java devs up on Web 2.0 core
technologies such as Ajax, JSON, Atom, Microformats and OpenID.  
</p><p>
And fire up their enthusiasm by tapping into Ruby (perhaps via
JRuby) on your way to the Web 2.0 platform. 
</p><p>
Learn patterns for mashing and integrating. Learn about REST and
event- and rule-driven programming, including declarative DSLs.
</p><p>
When this Web platform hits BigCo, you will probably find that its
REST or ROA style make your SOA integration strategy look rather
complex and unweildy.
</p><p>
Check out the
<a href="http://duncan-cragg.org/blog/post/distributed-observer-pattern-rest-dialogues/">Distributed Observer Pattern</a>,
and download
<a href="http://rubyforge.org/projects/redux/">Redux</a>
when it&#39;s done (I&#39;ll let you know if you subscribe here!).
</p><p>
In 2007 and beyond, its the Web itself that&#39;s the platform, not
Java or .Net. But if you want to get there via a language-based
platform, Ruby could be the best way to transition to it.
</p><p>
<i>Note: Everything I said about Ruby and Rails applies equally in
technical terms to Python and Django, but regardless of the
significant benefits of the latter, Ruby and Rails have the Web 2.0
market and mindshare. I&#39;ll probably switch this blog from Django to
Redux sometime this year..</i>
</p><p>
<i>(c) 2007 Duncan Cragg</i>
</p><p>

</p>

            </div>
        </content>
    </entry>
    
    <entry>
        <id>http://duncan-cragg.org/blog/post/web-20-and-our-digital-rights/</id>
        <title>Web 2.0 and our Digital Rights</title>
        <published>2006-06-23T17:58:00Z</published>
        
        <updated>2006-06-23T17:58:00Z</updated>
        
        <link rel="alternate" type="text/html" href="http://duncan-cragg.org/blog/post/web-20-and-our-digital-rights/" title="Web 2.0 and our Digital Rights" />
        
        <category term="copyright" />
        
        <category term="xtech" />
        
        <category term="declarative" />
        
        <category term="web2.0" />
        
        <category term="socialsoftware" />
        
        <category term="digital-rights" />
        
        <category term="rest" />
        
        <summary type="xhtml">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>

<a href="http://duncan-cragg.org/blog/post/imperative-declarative-inversion-open-data-ok/">Open Data</a> ..
<a href="http://www.techcrunch.com/2006/06/15/myspace-nukes-singlestatus/">has</a> ..
<a href="http://www.techcrunch.com/2006/06/16/why-is-flickr-afraid-of-zoomr/">recently</a> ..
<a href="http://www.tomcarroll.org/?p=125">been</a>..
<a href="http://jeremy.zawodny.com/blog/archives/006920.html">all</a> ..
<a href="http://www.intertwingly.net/blog/2006/06/18/Accidentally-Closed">over</a> ..
<a href="http://diveintomark.org/archives/2006/06/16/juggling-oranges">the</a> ..
<a href="http://blogs.guardian.co.uk/technology/archives/2006/06/17/schofields_first_law_revisited_and_why_mark_pilgrim_finally_gave_up_on_apple.html">blog</a> ..
<a href="http://ebiquity.umbc.edu/blogger/2006/05/11/were-the-children-of-shoemakers/">o</a> ..
<a href="http://tantek.com/log/2006/06.html#d17t2231">sphere</a>!
</p><p>
Openness is a classic Us-and-Them issue. Big, nasty
Apple/MySpace/Flickr is trying to control what little
me/SingleStatus/Zoomr can do with my/our own stuff.
</p><p>
Open Data vs. Closed; Open Source vs. Proprietary; P2P vs. DRM;
privacy vs. surveillance.  The battles between the freedom of
the pioneer, the individual and the minority against the rules
and stability of the establishment and the majority form the
endless shape of human history.
</p><p>
Us beating Them is Hollywood&#39;s favourite subject on-screen -
and ironically Them fighting Us Hollywood&#39;s favourite battle
off-screen.
</p><p>
As an Us-and-Them issue, with Us less powerful than Them, it&#39;s
also tempting to give up and to follow the crowd - to do what
we&#39;re told, to not ask for or sieze the privacy and open data
we feel entitled to.
</p><p>
However, at XTech 2006 recently, there was a set of talks on
the subject with a more positive approach.
 &#160; ...
</p>

            </div>
        </summary>
        <content type="xhtml" xml:space="preserve">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>
</p><div class="summary"><p>
<a href="http://duncan-cragg.org/blog/post/imperative-declarative-inversion-open-data-ok/">Open Data</a> ..
<a href="http://www.techcrunch.com/2006/06/15/myspace-nukes-singlestatus/">has</a> ..
<a href="http://www.techcrunch.com/2006/06/16/why-is-flickr-afraid-of-zoomr/">recently</a> ..
<a href="http://www.tomcarroll.org/?p=125">been</a>..
<a href="http://jeremy.zawodny.com/blog/archives/006920.html">all</a> ..
<a href="http://www.intertwingly.net/blog/2006/06/18/Accidentally-Closed">over</a> ..
<a href="http://diveintomark.org/archives/2006/06/16/juggling-oranges">the</a> ..
<a href="http://blogs.guardian.co.uk/technology/archives/2006/06/17/schofields_first_law_revisited_and_why_mark_pilgrim_finally_gave_up_on_apple.html">blog</a> ..
<a href="http://ebiquity.umbc.edu/blogger/2006/05/11/were-the-children-of-shoemakers/">o</a> ..
<a href="http://tantek.com/log/2006/06.html#d17t2231">sphere</a>!
</p><p>
Openness is a classic Us-and-Them issue. Big, nasty
Apple/MySpace/Flickr is trying to control what little
me/SingleStatus/Zoomr can do with my/our own stuff.
</p><p>
Open Data vs. Closed; Open Source vs. Proprietary; P2P vs. DRM;
privacy vs. surveillance.  The battles between the freedom of
the pioneer, the individual and the minority against the rules
and stability of the establishment and the majority form the
endless shape of human history.
</p><p>
Us beating Them is Hollywood&#39;s favourite subject on-screen -
and ironically Them fighting Us Hollywood&#39;s favourite battle
off-screen.
</p><p>
As an Us-and-Them issue, with Us less powerful than Them, it&#39;s
also tempting to give up and to follow the crowd - to do what
we&#39;re told, to not ask for or sieze the privacy and open data
we feel entitled to.
</p><p>
However, at XTech 2006 recently, there was a set of talks on
the subject with a more positive approach.
</p></div><p>
<b><a href="http://xtech06.usefulinc.com/schedule/detail/176">Ignorance Is Not A Defence</a></b>
</p><p>
I&#39;m counted amongst the &#39;founding members&#39; of the UK&#39;s 
<a href="http://www.openrightsgroup.org/">Open Rights Group</a>, having
signed the pledge in <a href="http://www.pledgebank.com/rights">PledgeBank</a>.
So I was delighted to see <a href="http://strange.corante.com/">Suw Charman</a>&#39;s
name on the XTech programme.
</p><p>
Suw gave a talk about the issues they/we are tackling:
ISPs and Telcos tracking our traffic, DRM controlling our media
and even our computers, ID cards, Patents, various government
schemes to undermine our privacy, Copyright extension,
Trusted Computing, etc., etc.
</p><p>
<a href="http://www.openrightsgroup.org/orgwiki">Read about the issues</a>,
then <a href="http://www.openrightsgroup.org/support-org">join the group</a>
(or the <a href="http://www.eff.org">EFF</a>, etc., depending on where you live).
</p><p>&#160;</p><p>
<b><a href="http://xtech06.usefulinc.com/schedule/detail/60">OpenStreetMap: The First Year</a></b>
</p><p>
Now, this was cool. I&#39;ll start right off by noting that they
have a <a href="http://wiki.openstreetmap.org/index.php/REST">REST</a>
API, not a <a href="http://duncan-cragg.org/blog/post/strest-service-trampled-rest-will-break-web-20/">STREST</a> API..
</p><p>
And it just gets better from there.. OpenStreetMap is like a Geo
Wiki of GPS trails around the world.  The centre of London was
mapped by attaching GPS devices to couriers and plotting the
slug-trails they left behind.  Steve Coast showed an animation
of a day&#39;s tracking.  The trails shot off to various points out
of town at the end of the day. But the animation continued..
</p><p>
And at pub closing time, another burst of trails as the
couriers came home!
</p><p>
A few weeks ago, a crowd of OpenStreetMap volunteers descended
on the Isle of Wight in England to walk around mapping it.  The
enthusiasm generated by this project seems likely to give it
enough momentum that it will very soon be good enough for us to
use for real. A complete, reliable dataset created by the
people, for the people, unencumbered by copyright and
restrictive licensing.
</p><p>
I suggested an idea I had about five years ago in my dot-com
days: let people upload mobile-snapped pictures with GPS
coordinates attached. Central servers scan the pictures for
text and OCR them into a searchable database.
</p><p>
People would snap-and-upload their own street name signs, house
name plaques, shop fronts, station name signs, company office
signs, etc.  Even menus in the local restaurant. We could
construct a &#39;GeoGoogle&#39; of public, mappable, searchable text.
</p><p>
However, Steve told me that OCR and mobile GPS technology still
isn&#39;t up to it; that manual tagging of GPS trails is enough to
make OpenStreetMap work well. Ah well, I&#39;ve waited five years,
so I can wait a bit longer...
</p><p>
<a href="http://www.opengeodata.org/?p=65">Slides, MP3 here</a>.
</p><p>&#160;</p><p>
<b><a href="http://xtech06.usefulinc.com/schedule/detail/125">An Open (Data) Can of Worms</a></b>
</p><p>
Paul Hammond (ex-BBC, Yahoo!) gave a good talk on how to
motivate companies to open up their data to the Mashable Data
Web, hopefully through nice shiny new Web 2.0 APIs.
</p><p>
Here&#39;s your takeaway 
<a href="http://strange.corante.com/archives/2006/05/18/xtech_2006_paul_hammond_an_open_data_can_of_worms.php">quote</a>
courtesy of Suw Charman&#39;s amazing typing:
</p><blockquote class="others-content"><div><p></p><ul>
<li>Be aware of the problems</li>
<li>Demonstrate usefulness, screen scrape if you need to, but don&#39;t get yourself cease-and-desisted</li>
<li>Don&#39;t assume it&#39;s a technology problem</li>
<li>Target the right people, find someone on the inside who can help you</li>
<li>Talk about benefits to the provider, not the consumer. If you talk about the benefits to you, they&#39;ll see you just as someone who wants something for free.</li>
<li>Have patience. It is getting better every day, and it takes time for business to come round.</li>
</ul><p></p></div></blockquote><p>
The Data Web will be created mostly from the edges, but the
middle should be encouraged to see the benefits, too.
</p><p>&#160;</p><p>
<b><a href="http://xtech06.usefulinc.com/schedule/detail/178">Native to a Web of Data: Designing a Part of the Aggregate Web</a></b>
</p><p>
Yahoo! had a big presence at XTech - as did the BBC - and this
Yahoo! - and ex-BBC - presenter was 
<a href="http://www.plasticbag.org/">Tom Coates</a>.
</p><p>
Tom&#39;s talk extended the previous one of his colleague, Paul
Hammond, by going over some principles of opening data and
helping build the Data Web.
</p><p>
Principles such as finding data sources, giving them nice
representations and URLs then distributing them in a most
accessible and navigable way.
</p><p>
A bit Web 1.0, in truth; he looked rather blankly at me when I
suggested adding some concept of data events or updates to his
list of data-opening principles.
</p><p>
Again, Suw has this
<a href="http://strange.corante.com/archives/2006/02/08/fowa_native_to_a_web_of_data_tom_coates.php">written up</a>
(actually, a better-looking version of the same talk from 
<a href="http://www.carsonworkshops.com/summit/">FoWA</a>).
</p><p>
Oh - here&#39;s a good article by Tom on the power of 
<a href="http://www.plasticbag.org/archives/2005/04/the_age_of_pointatthings.shtml">pointability</a>
</p><p>&#160;</p><p>
<b>Harnessing the Collective</b>
</p><p>
All of these talks had a positive spin on the Us-and-Them issue.
</p><p>
We <i>can</i> do something about the creeping imbalance of Digital
Rights, tipping slowly but persistently from Us to Them.
</p><p>
Web 2.0 and the Social Software it underpins <i>can</i>
actually empower those of us that are willing to use it.
</p><p>
As taxpayers, voters, shareholders, pensionholders, customers
and employees, we really do own and control Them. We are just
one Social Networking movement away from realising that - in
both senses of the word.
</p><p>
So: stop staring at YouTube, sign up to your local Digital Rights
organisation, get out on your bike with your GPS, understand
and talk nicely to that unenlightened, data hoarding corporation
and start a bottom-up revolution to take back control over your
own data...
</p><p>
Above all, design your systems to put 
<a href="http://duncan-cragg.org/blog/post/imperative-declarative-inversion-open-data-ok/">Open Data</a>
at the top of your list of priorities...
</p><p>

</p>

            </div>
        </content>
    </entry>
    
    <entry>
        <id>http://duncan-cragg.org/blog/post/welcome-to-what-not-how/</id>
        <title>Welcome to &#39;What Not How&#39;</title>
        <published>2006-03-22T17:00:48Z</published>
        
        <updated>2006-03-22T17:00:48Z</updated>
        
        <link rel="alternate" type="text/html" href="http://duncan-cragg.org/blog/post/welcome-to-what-not-how/" title="Welcome to &#39;What Not How&#39;" />
        
        <category term="semanticweb" />
        
        <category term="architecture" />
        
        <category term="declarative" />
        
        <category term="web2.0" />
        
        <category term="socialsoftware" />
        
        <category term="p2p" />
        
        <category term="event-driven" />
        
        <category term="rest" />
        
        <summary type="xhtml">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>

Declarative Architectures focus on the What, not the How, of programming.  The How has dominated the field - perhaps 80% of programming is done in the traditional Imperative style, where we tell the computer How to do a task in explicit steps.
</p><p>
I&#39;d like to show in this blog how Declarative Architectures and technologies are not just an interesting sideshow to the main Imperative attraction, but a complete and powerful programming alternative in their own right - indeed, one which has already dominated certain fields.  
</p><p>
Imagine being able to simply express What we want the computer to do - to give it constraints and rules - then let it work out for itself How to achieve our goals.
</p><p>
I believe that saying What, not How, will become the dominant paradigm in programming.
 &#160; ...
</p>

            </div>
        </summary>
        <content type="xhtml" xml:space="preserve">
            <div xmlns="http://www.w3.org/1999/xhtml">

<p>
</p><div class="summary"><p>
Declarative Architectures focus on the What, not the How, of programming.  The How has dominated the field - perhaps 80% of programming is done in the traditional Imperative style, where we tell the computer How to do a task in explicit steps.
</p><p>
I&#39;d like to show in this blog how Declarative Architectures and technologies are not just an interesting sideshow to the main Imperative attraction, but a complete and powerful programming alternative in their own right - indeed, one which has already dominated certain fields.  
</p><p>
Imagine being able to simply express What we want the computer to do - to give it constraints and rules - then let it work out for itself How to achieve our goals.
</p><p>
I believe that saying What, not How, will become the dominant paradigm in programming.
</p></div><p>
</p><p>
<b>What?</b>
</p><p>
Declarative Architectures are about data: documents, assertions, truths, rules, tables, structures, state, bits. Data storage, changes, constraints, transformation, sharing, querying, fetching, interaction, presentation, subscription, tagging.  
</p><p>
In summary, we talk about stuff, changes to stuff and rules governing stuff. Not processes, actions, jobs or functions.
</p><p>
It&#39;s amazing how many interesting Declarative technologies are actually out there already - especially given that most programming is Imperative.  They tend to go unnoticed; subservient to their Imperative masters.
</p><p>
Here are some examples from our daily work life (assuming you work in computing!):
</p><ul>
<li>    XML: XSL, XPath, XQuery, Schematron, RelaxNG, Xcerpt, XForms, XRules</li>
<li>    Other MLs: XUL, XForms, XAML, YAML, ...</li>
<li>    Relational DBs, SQL</li>
<li>    Publish / Subscribe: &#39;this has changed&#39;, not &#39;do this&#39;</li>
<li>    Observer Pattern, MVC (maybe)</li>
<li>    EII: architectures for business data and events &#39;landscapes&#39;</li>
<li>    JCache, SpiritCache: updateable, cascadable caches, &#39;active queries&#39;</li>
<li>    Business Rule programming</li>
<li>    Spreadsheets</li>
<li>    JNDI</li>
<li>    Makefiles, Ant; Source Control: versioning, deltas</li>
</ul><p>
What all these have in common is that they are purely data- and event-driven or oriented. Not a thread in sight (if used properly). No method calls. Just querying, fetching, subscribing, tagging, declaring truths and rules, making changes to stuff, etc.
</p><p>
On the &#39;Net, all the dominant technologies are actually Declarative, not Imperative:
</p><ul>
<li>    DNS</li>
<li>    REST: URIs, HTTP</li>
<li>    Mail, News: SMTP, NNTP</li>
<li>    Instant Messaging; VoIP</li>
<li>    P2P: BitTorrent, Gnutella</li>
<li>    Multimedia: streaming, multicasting, PeerCast</li>
<li>    Compression, Information Theory, Cryptography, Trust</li>
</ul><p>
Again, the same things are happening: querying, fetching, subscribing, tagging, declaring truths and rules, making changes to stuff. 
</p><p>
Email (SMTP) is a great example of a Declarative Architecture, with its routing and transformation rules and self-addressed store-and-forward transmission. And, in fact, much the same applies to the rest of this list, where the Declarative aspects may include network querying and data events.  
</p><p>
Imperative protocols such as RPC, RMI, CORBA, SOAP, etc. haven&#39;t had anywhere near the impact of their Declarative cousins.
</p><p>
Now, consider the &#39;Web 2.0&#39; technologies:
</p><ul>
<li>    HTTP/1.1, XHTML</li>
<li>    Metadata: RSS, RDF, Atom, MicroFormats, tagging engines</li>
<li>    REST Web APIs for XML metadata (including RSS/Atom)</li>
<li>    DHTML; AJAX (when used as DOM updater), mod_pubsub</li>
<li>    Identity; Single Sign-On Web-APIs: OpenID</li>
</ul><p>
This is a wonderful list of Declarative approaches (as long as we use REST APIs and talk about Resources, not SOAP ones talking about functions and jobs!).
</p><p>
So far, I&#39;ve mentioned technologies that have attached themselves to the periphery of Imperative programming, where the actual behaviour is still driven procedurally, or How-like. 
</p><p>
However, Declarative programming itself has a history at least as long as Imperative programming,
and includes:
</p><ul>
<li>    Lisp, Rewriting systems</li>
<li>    Prolog, Deductive Databases, The Semantic Web</li>
<li>    Rule-Driven systems, Knowledge Engineering, Cyc, Ontologies</li>
<li>    Tuple Spaces, Javaspaces</li>
<li>    Neural Networks, Genetic Algorithms, Cellular Automata</li>
<li>    Example-based programming: Subtext</li>
</ul><p>
We can, if we choose, write 100% Declarative systems (even down to asynchronous or event-driven operating systems and hardware).
</p><p>&#160;</p><p>
<b>Wherefore?</b>
</p><p>
In this blog, I&#39;ll be pointing out opportunities where we can benefit from the Declarative approach when it&#39;s ready. 
</p><p>
Perhaps the biggest example of a Declarative Architecture that is ready to benefit us now is the Web.  In contrast, the Imperative Service-Oriented Architecture model and so-called &#39;Web&#39; Services are still weaning; still trying to get a life free of their huge standards consortia. REST, in its simplicity, ubiquity and straightforward usefulness is orders of magnitude more deployed than SOAP will likely ever be.
</p><p>
This blog is for discussing the common problems and solutions in Declarative technologies; seeing if ideas in one area can be used in another and seeing if we can distill their lessons and their approaches.  
</p><p>
Ultimately, heading towards a unified, distributed Declarative programming technology landscape. 
</p><p>
I hope you&#39;ll join me in my explorations into Declarative Architectures, in particular if you&#39;re interested in the currently most promising segment I mentioned: Web 2.0, and its application in Social Software. 
</p><p>
Or the currently massive but little-mentioned segment: Peer-to-Peer, and its application to the disruption of, well you know, all those big technological and commercial hierarchies...
</p><p>

</p>

            </div>
        </content>
    </entry>
    
</feed>

