Escalier provides a Scala language binding for DDS currently targeting the Open Source DDS implementation OpenSplice. The beauty of Escalier is that it takes advantage of the nice features provided by the Scala language (check out the Scala web site for tons of good documentation on how to get started with Scala) to provide a very concise and elegant API for DDS.
The other nice bonus that comes with Escalier is that it allows you to write DDS applications as Scala script. Likewise, you can start a Scala interpreter and start to create DDS entities that publish or subscribe to data -- pretty cool!
Escalier promotes a reactive programming style for DDS applications and in upcoming releases will provide a complete Functional Reactive Programming framework for writing DDS applications (probably based on scala.react).
As I'll show you in the next code snipped, with Escalier you can write DDS applications in a few lines of code. In addition, when you want to write a simple application that connects to the default domain and the default partition, Escalier actually automatically creates DomainParticipants, Publisher/Subscriber under the hood leaving you with the only effort of having to define your topics, DataReaders and DataWriters.
To keep things simple let's assume we want to write a kind of Twitter using DDS. The first things to do is to define the type for the twits, which can be quickly done by defining the following IDL structure.
At this point we can write our DDS application that allows us to write Twits:
Now, let's write the DDS applications to display all the twits from the people we are interested in:
That's it, now you can try it yourself by downloading the latest version of Escalier. Have Fun!
A+