These days I seem to mainly use this blog for once-a-year announcements of what I'm up to, which is useful as record for myself when I need to reflect.
So here's where I'm at, as 2015 begins.. ...
These days I seem to mainly use this blog for once-a-year announcements of what I'm up to, which is useful as record for myself when I need to reflect.
So here's where I'm at, as 2015 begins..
Some time ago, in summer 2012, I announced that I was focusing on end-user programming of virtual worlds in Android.
I called the language Cyrus at the start of 2013 and swore I'd stick to it. Well, that was obviously a dumb choice, since she got in the news that August, doing all kinds of embarrassing things.
I spent the second half of 2013 playing with Minecraft modding in Cyrus, followed by a year-long exploration through 2014 of using Augmented Reality to interact with the Internet of Things.
Core Goal
So now I'm back to that core goal: end-user programming of virtual worlds in Android, but now with a splash of Minecraft, a sprinkling of Augmented Reality and a pinch of the Internet of Things.
Of course, any virtual world today feels like it came from the last century if it refuses to acknowledge the tactile accessibility that was discovered by Notch in his world-sweeping game.
Android is an ideal platform for all this, because it is clearly AR-native, plus it can be used as a Thing - especially with sensor-packed, Bluetooth-enabled Android tablets and phones becoming such a cheap commodity.
I want to make the language more accessible to normal people by bumping up the number of dimensions used to access it: from my one-dimensional text format (which I still think is pretty clean and nice to read) to a two-dimensional graphical or visual interface.
Names
So, while I wait to see if "Cyrus" is actually viable in the longer term to name the language, this year's names are back to the Object Network and NetMash. I'm also still using "FOREST" and "Functional Observer" to describe the architectural style and programming model, respectively, if anyone asks.
But since I'm focusing my energies on end users not technical folk, I'm not expecting anyone to ask..
After filling up that other blog recently with 61 pages of content, one page a day, I was challenged by my ThoughtWorks colleague, Andy McWilliams, to help him get in more easily to my explanations of the Object Network applied to Augmented Reality and the Internet of Things, especially around how my approach differs and is better than other approaches. ...
After filling up that other blog recently with 61 pages of content, one page a day, I was challenged by my ThoughtWorks colleague, Andy McWilliams, to help him get in more easily to my explanations of the Object Network applied to Augmented Reality and the Internet of Things, especially around how my approach differs and is better than other approaches.
Here's the short overview I came up with:
Other Approaches
Broadly-speaking, existing approaches to unifying the IoT (AllJoyn, OpenHAB, The Thing System, Nitrogen, Argot, ..) are built around event and action messages. Messages are often managed through a message bus and/or an API that gives message construction and a function-call and callback interface, perhaps through socket connections.
Programming is offered through "event-action" (or "callback-call") rule programming, perhaps in Javascript or via a visual programming interface like If This Then That.
The Object Network Approach
The Object Network, on the other hand, is built like the Web, using URLs. These URLs point not to Web pages but to JSON state objects. Any peer can publish state objects on URLs - e.g. sensors, controllers, mobile devices, servers, etc - and that state can be pulled or pushed at any time between peers using HTTP GET and POST (or CoAP!).
Object Network programming is based, not on events and messages, but on state and state transfer. So instead of event-action rules, it has "state-to-state" rules, which are simpler and more powerful. Actions, if needed, are handled by creating "intent objects", but peer objects are very much more empowered and independent, so can run their own rules to set their own state in the face of surrounding state objects observed through their links.
Three Object Net Posts
I then pointed Andy at one of the posts on that other blog, but here are three posts there that are relevant:
Benefits of The Object Net Approach
These posts give more elaboration around the benefits of this approach, but briefly:
Using URLs is a force towards harmonisation of the formats they are contained in - each end of the link will tend to come from the same family of formats. So simply putting URLs in JSON is itself a massive benefit, if it leads to common formats for the same data. Further, these links and shared formats, when used across multiple systems, form a "fabric" of data that can be used to serendipitously create whole new applications and mash-ups.
It's a simple and powerful distributed systems model, as the Web itself has demonstrated. When it becomes peer-to-peer and asynchronous through CoAP, IPv6 and the IoT, its power increases further through timeliness and interactivity, decentralisation and the removal of intermediaries - and puts that power in the hands of users in their intimate daily lives.
To this the Object Net adds the simple and powerful programming model of setting object state as a function of surrounding neighbour, environmental or public object states, observed through links. The key aspect is the autonomy of each object in the network to determine its own state evolution in a decentralised, loosely-coupled mesh.
CoAP-based Alternatives
Now, merely using the CoAP stack buys you most of the above approach, being chartered from the start with REST in mind, plus adding asynchronous resource observation and having great peer-to-peer potential through IPv6 and UDP.
So really, it all depends on the code that uses it - does it build the observation model into the programming model like the Object Network does? Does it simply let you describe how the state of your object can be set according to the states of objects you link to and observe? Does it talk about common data formats? I've yet to track down a framework or platform that does this.
The nearest I've seen to an approach that has many of the elements of this, including observation through CoAP and a model layer above, is the Open Source Internet of Things (and see here also). This project seems to be much more complex, partly due to its being based on the Semantic Web.
I'll be exploring how the Object Net compares to it and the overall CoRE approach, and maybe also see how the IPSO Alliance and other initiatives fit in to all that.
I've started another blog called Building The Object Network, about how I'm experimenting with Augmented Reality for the Internet of Things using the Object Network approach.
So far I've been blogging every day.
Do subscribe! ...
I've started another blog called Building The Object Network, about how I'm experimenting with Augmented Reality for the Internet of Things using the Object Network approach.
So far I've been blogging every day.
Do subscribe!
Well that worked out pretty well: I have a 3D environment on Android programmed in a simple but powerful declarative language which I've called "Cyrus".
Cyrus basically uses JSON all the way through: from user interface and scene graph to rewrite rules, on the wire and on disk. The Cyrus programming language is essentially JSON itself, as JSON rewrite rules. I've reduced the noise of JSON in Cyrus by taking out redundant double-quotes, square brackets and commas. It looks very nice to me. ...
Well that worked out pretty well: I have a 3D environment on Android programmed in a simple but powerful declarative language which I've called "Cyrus".
Cyrus basically uses JSON all the way through: from user interface and scene graph to rewrite rules, on the wire and on disk. The Cyrus programming language is essentially JSON itself, as JSON rewrite rules. I've reduced the noise of JSON in Cyrus by taking out redundant double-quotes, square brackets and commas. It looks very nice to me.
The Name Cyrus
Now, probably to everyone's confusion and annoyance, I'm always thinking of multiple names for the many things I create around the core principles I'm evangelising. And then changing them all the time!
So I decided to choose a single new name, "Cyrus", for everything, and will endeavour to stick with it this time... I got the name from playing around with the letters of 'cyberspace rules', but will probably claim it stands for "cyberspace rules updating state" or something, because that sounds more impressive.
One advantage of this name is that both academics and regular folk should be able to spell it!
So now NetMash and Fjord are the "Cyrus app" and the "Cyrus programming language" respectively; the Object Network is now just the Cyrus network - a Web of JSON.
Once I have rough consensus and running code, it'll all be exchanging data via the Cyrus Media Type - probably "text/cyrus" for the simplified form and "application/cyrus+json" for the noisy one.
The basic underlying model and architecture implemented in Cyrus are still called "Functional Observer" and FOREST, however.
The Future of Programming
Edd Dumbill has recently described how he sees the Future of Programming.
In that article, Edd offers five categories that he sees as forces driving this, which I'd paraphrase as: concurrency within and between machines; embedded and mobile hardware; data-oriented programming; end-user programming; simplifying the software stack.
I was pretty excited to read this, because it accurately describes the drivers behind Cyrus.
Cyrus in 2013
So I'm now going to spend 2013 explaining to everyone why Cyrus is the next programming language they should try out. And, like I said before, I mean everyone - from kids to grannies, via Business Analysts.
Cyrus is, of course, very new, but even while it's maturing this year, it will still be good for non-critical uses, such as prototyping - especially mobile or distributed apps and sketching out business rules - and for making little fun apps, maybe while learning to program.
Do join the Cyrus Google Group if you want to get involved in any way, or just post a comment below.
If you also think that hacking up 3D worlds on Android could be fun, then join me! Stuff you should expect to play with if you want to get involved includes Java, Android, OpenGL ES 2.0, 3D model creation, hyperlinked JSON and JSON rewrite rules. Creatives, evangelists and inspirers are also very welcome to get involved!
The idea is to make an app (NetMash) that lets people build, mash up, animate and program 3D worlds, shared online and all linked-up, Web-like.
Like creative-mode Minecraft, but adding easy in-world programming and shared online by default. Or maybe a bit like an open, distributed, generic, mobile Kodu (or here), for adults as well as children.
NetMash is intended to deliver creative empowerment to ordinary people. We professional software folk often get stereotyped as geeks, and the creative fun we often have dismissed as in some way unusual. That's a real shame, because such prejudice means that the other 99.9% of the world are simply missing out on the joy of experiencing the most creative and empowering activities humankind has yet invented. ...
If you also think that hacking up 3D worlds on Android could be fun, then join me! Stuff you should expect to play with if you want to get involved includes Java, Android, OpenGL ES 2.0, 3D model creation, hyperlinked JSON and JSON rewrite rules. Creatives, evangelists and inspirers are also very welcome to get involved!
The idea is to make an app (NetMash) that lets people build, mash up, animate and program 3D worlds, shared online and all linked-up, Web-like.
Like creative-mode Minecraft, but adding easy in-world programming and shared online by default. Or maybe a bit like an open, distributed, generic, mobile Kodu (or here), for adults as well as children.
NetMash is intended to deliver creative empowerment to ordinary people. We professional software folk often get stereotyped as geeks, and the creative fun we often have dismissed as in some way unusual. That's a real shame, because such prejudice means that the other 99.9% of the world are simply missing out on the joy of experiencing the most creative and empowering activities humankind has yet invented.
Empowering Families
So, success for NetMash will be measured not just by the fun we're having building it, but more strictly by its first users: which will include my 10-year old daughter, my 13-year old daughter who has Williams Syndrome, their granny and their mum! My wife runs Relax Kids classes in primary schools, so maybe there's an opportunity there to introduce the creative joys of programming to a wider group.
That's my own little world, but I'd also like NetMash to reach people globally that would not normally get access to the creative empowerment of programming.
Empowering the Disenfranchised
Maybe Thoughtworks would be interested in using NetMash in schools that we have contacts with, maybe in a non-Western country where technology and education are often less freely available.
Mobile is already changing the lives of the hitherto disenfranchised, through greater access to communications, finance and healthcare. Before long, the inevitable arrival of super-cheap Android devices means fully global access to advanced, connected technology, and a global demand for all the opportunity that this brings.
I'd like NetMash to be a part of all that, whether it's for a boy in a one-room wooden school, or a girl in the school down the road. Or her granny.
I just re-read my article on the Universe Web. I think it's pretty good. Indeed, to be honest, "programming as Cyberspace building" is where my heart has always been, and I'm all about following my heart this year. Especially if it's more fun, for both myself and others! Or if it opens up new worlds to new people.
In contrast, I don't see "fun" in W3C or IETF activities. Indeed, there's recently been a number of examples of tension in that world, between stabilisation and innovation, idealism and pragmatism, Enterprisey and Webby. Interestingly, all those examples have a "2.0" flavour: HTML5 (Web 2.0), HTTP 2.0 and OAuth 2.0.
My own interests are rough consensus and running code; innovation and pragmatism. Webbiness not in the W3C sense - "Web" Services, Semantic "Web", "Web" Sockets, etc. - but in the sense of "the simplest thing that works". Which is the Web of HTTP (1.1), URLs, JSON and REST, or specifically my FOREST interpretation.
I crave the simple and powerful, the cool and the fun. Which ultimately leads to the kind of thing I was describing as the Universe Web. And to be honest, I'd like to write and code for me, not for my peers and colleagues or for my career.
So, to the pursuit of pure joy in place of compromise, I'll now be focusing my energies on the journey of evolving the NetMash Java server and Android app towards an online, open, hyperlinked virtual world that is programmable in-world by users using simple rules.
Stay tuned!
I just re-read my article on the Universe Web. I think it's pretty good. Indeed, to be honest, "programming as Cyberspace building" is where my heart has always been, and I'm all about following my heart this year. Especially if it's more fun, for both myself and others! Or if it opens up new worlds to new people.
In contrast, I don't see "fun" in W3C or IETF activities. Indeed, there's recently been a number of examples of tension in that world, between stabilisation and innovation, idealism and pragmatism, Enterprisey and Webby. Interestingly, all those examples have a "2.0" flavour: HTML5 (Web 2.0), HTTP 2.0 and OAuth 2.0.
My own interests are rough consensus and running code; innovation and pragmatism. Webbiness not in the W3C sense - "Web" Services, Semantic "Web", "Web" Sockets, etc. - but in the sense of "the simplest thing that works". Which is the Web of HTTP (1.1), URLs, JSON and REST, or specifically my FOREST interpretation.
I crave the simple and powerful, the cool and the fun. Which ultimately leads to the kind of thing I was describing as the Universe Web. And to be honest, I'd like to write and code for me, not for my peers and colleagues or for my career.
So, to the pursuit of pure joy in place of compromise, I'll now be focusing my energies on the journey of evolving the NetMash Java server and Android app towards an online, open, hyperlinked virtual world that is programmable in-world by users using simple rules.
Stay tuned!
The Web, in its purest form - declarative HTML and CSS documents, XML feeds - is mashable, linkable, sharable. It's easy to create documents that slot into the global Web and can be accessed on any device; accessed by just a simple link. Servers can easily scale through statelessness and cacheing.
Native Mobile Apps are fast and slick. They are intimate with the dynamic, interactive, tactile mobile user interface, intimate with the capabilities of the device and intimate with the domain of mobile: photos, locations, contacts, messages.
OTS is a simple, clean, powerful approach to delivering Mobile functionality and content that is designed to realise these benefits of both Native Apps and the Web. ...
The Web, in its purest form - declarative HTML and CSS documents, XML feeds - is mashable, linkable, sharable. It's easy to create documents that slot into the global Web and can be accessed on any device; accessed by just a simple link. Servers can easily scale through statelessness and cacheing.
Native Mobile Apps are fast and slick. They are intimate with the dynamic, interactive, tactile mobile user interface, intimate with the capabilities of the device and intimate with the domain of mobile: photos, locations, contacts, messages.
OTS is a simple, clean, powerful approach to delivering Mobile functionality and content that is designed to realise these benefits of both Native Apps and the Web.
How OTS Works
OTS - Object Type Specifications - achieves this by defining open JSON object types for people, places, dates, photos, messages, feeds, lists, galleries, user interfaces, forms, maps, calendars, etc., all linked together into the Web.
These dynamic OTS objects are published or shared instead of native apps and instead of Web documents.
A native OTS mobile client for Android, iOS, etc. can then render those objects and allow the user to interact with them, using its understanding of what they mean to deliver a slick user experience.
The user will start with the link of an object to look at, then may see immediately-linked objects nested into the same view, perhaps summarised and/or with open/close sliders. Any linked object can be jumped to as the new top view. If an object being viewed updates, the view, or the corresponding part of the view, updates.
Your Journey
Indeed, you are an OTS object, that others can see, and that gives access to stuff you want to make public from your device, such as photos you've only just snapped, your current location if enabled, status and text messages, selected contacts, links of interest, etc. SMS and MMS will be mapped to OTS photo and message objects on your device.
Your user object and your shared stuff are automatically pushed to shared servers when you make them public or when they update. All of this could use contacts, photos, reviews, messages, etc., from your and others' Twitter, Facebook, Google, etc. accounts, adapted to OTS objects server-side.
Many applications can be built through simply wiring up some OTS objects. Indeed, you can do this yourself through the mobile client, including creating and publishing new objects and lists of existing objects. You can plot on a shared map any OTS object that has a location field, or lists of such objects all at once.
Such as lists of your contacts or friends - to watch your party on the map as it converges on the restaurant, perhaps. That restaurant may be publishing an OTS object describing its outdoor Jazz schedule this week, which can be plotted on a shared calendar along with the weather report objects, retrieved from another server. If you discover a list of review objects about the Jazz via an OTS search form, you can save the link and then instantly share it with your party.
If your friend takes a photo, you can instantly 'join them on the map' where they stand and chat about it - and the weather conditions they're experiencing. No need for them to upload to a photo-sharing site, with login and file finder dialogues, or for you to download and launch separate, unrelated chat, photo-sharing, map and weather apps.
Programming OTS in Fjord
None of the above would need any code to be downloaded and run on the device. It's interesting to notice just how much can be achieved simply by leveraging the client's understanding of the object semantics, and through generic declarative interactions with points in the dynamic Web of OTS objects. With object cacheing, once the objects needed have been seen once, the user can still use them when the network breaks, alongside the on-board objects.
Obviously, being able to run programs on the device would open up an even wider range of applications, including giving greater tolerance of network outages for object behaviours that would otherwise be run on remote servers. But so far, everything has been declarative; how do we avoid having to go back to writing code in imperative Java or Javascript?
Well, being based on the FOREST architecture, OTS would use Fjord as its declarative programming language. And Fjord is just another OTS JSON object type, that can be fetched along with the objects it animates, for on-device program execution.
Server-side, again, so much can be achieved simply by publishing OTS objects, and adapting existing services. For more interactive applications, behaviour could be programmed in Java, etc., against a FOREST declarative API, or again in Fjord.
NetMash and Fjord Development
NetMash, as well as being the Java reference implementation for FOREST - networking, persistence, declarative API and Fjord implementation - is also an Android app that forms the reference implementation for OTS.
Fjord is very much in flux and hasn't been updated to the latest way FOREST works, but a version of it I built on Node.js has worked as expected. Based on that work, NetMash should have a Fjord implementation this year, which, being in Java, will thereby be available on both the Android client and the server side.
NetMash and OTS supercede all the other variants of these ideas I've been dabbling with before, including the Node.js implementations.
So, as always, it's all coming along slowly, and I can always use help with all this. Ping me via email (see left bar) if you want to be involved in the OTS Mobile Revolution!
Conclusion
Applications and content built with OTS don't need to be downloaded or updated via app-stores, and have no app boundaries - all applications can build on one another. They share one user, one map, one calendar, one combined view of the on-device and on-line world of interlinked, dynamic mobile objects from multiple sources. Your, and your friends', location, message, photo, list, contact and date objects are pushed and pulled automatically when made public or when they change.
As Martin Fowler points out, there is a gulf between native and Web applications on mobile that seems like an "uncanny valley" when you attempt to work within it by patching up the differences with hybrid technologies that pull too hard away from the respective comfort zones of pure native or pure Web.
Even so, there is a great deal of activity here, with multiple, evolving technology specifications to choose from. Into this discomfort zone I place technologies such as the HTML5 and related Javascript APIs, WAC, PhoneGap and Javascript toolkits that emulate native look and feel.
OTS is a clean alternative that effectively brings native and Web closer together, thus squeezing out this "uncanny valley" discomfort zone. Being both a native mobile app and a first-class player in the Web, OTS brings out the best of both, then goes beyond either.