by Ian Clarke
Fundamentals
The fundamental concept behind Swarm is that we should “move the computation, not the data”. The Swarm prototype is a simple stack-based language, akin to a primitive version of the Java bytecode interpreter. This article provides the proof of concept to be quick to implement, while demonstrating that the concept could work for a popular runtime like the JVM or Microsoft’s CLR.
The Prototype
The prototype is implemented in Scala, and snippets of Scala code are used below, but a knowledge of Scala won’t be required to understand the rest of this article. Scala is chosen because because its rich semantics tends to make coding easier and faster than Java.
As with the JVM, there are three places to store data in the Swarm VM: the stack, a local variable array, and the store. The stack is used for intermediate values in computations, data here tends to be very short-lived. In the prototype it is implemented as a List[Any]. The local variable array is for data that is used within a block of code (its implemented as a Map[Int, Any]).



1 response so far ↓
1 Twitter Trackbacks for Swarm: A true distributed programming language: Swarm: A true distributed programming language. April 15th, 2010 ·... [multicoreinfo.com] on Topsy.com // Apr 15, 2010 at 1:09 pm
[...] Swarm: A true distributed programming language: Swarm: A true distributed programming language. Apri… http://www.multicoreinfo.com/2010/04/swarm-lang – view page – cached Tweets about this link Topsy.Data.Twitter.User['jose_ayala'] = {”location”:”",”photo”:”http://s.twimg.com/a/1271107021/images/default_profile_4_normal.png”,”name”:”Jose Ayala”,”url”:”http://twitter.com/jose_ayala”,”nick”:”jose_ayala”,”description”:”",”influence”:”"}; jose_ayala: “Swarm: A true distributed programming language: Swarm: A true distributed programming language. April 15th, 2010 ·… http://bit.ly/bqE4eS ” 2 hours ago view tweet retweet Filter tweets [...]
You must log in to post a comment.