Apple announced Swift this past summer at WWDC 2014. As many of you already know, this is Apple’s replacement language for Objective-C and is intended for developing both iOS and Mac OS X applications. When I started looking into Swift one of the first things that went through my head was “Gee, I sure wish I could build server-size mobile app support using Swift too.”
It turns out that there is another language (upon which many people think Swift may have been based) called Scala. It runs on top of the JVM and has a very similar syntax and expressiveness to Swift. Excellent support for building REST services is provided in Scala and since it is built on the JVM, one can also utilize Java packages.
As an experiment, over the next few months we will be building a version of the Counters app used in our iOS Weekend development classes. This new version will use Swift on the client and Scala on the server.