IBM's Swift Response

| by Alex Blewitt Follow 4 Followers on Dec 04, 2015. Estimated reading time: 2 minutes |

Today, IBM launched a Swift developer section on its developerWorks site, along with an engineering blog and links to Apple's open-source repositories at In a blog post, John Ponzo confirmed that IBM had been developing Swift apps since its release a year and a half ago. They explicitly call out Swift's benefits for their developers in the MobileFirst for iOS Industry Solutions team.

This followed from the Apple and IBM agreement in July 2014 to promote enterprise applications for the iPhone and iPad, along with integration in cloud technologies, as well as reselling iOS devices and support agreements.

In addition to the public support, IBM have also launched the IBM Swift Sandbox, which provides a web-accesible shell onto a remote Linux session on the IBM cloud. Navigating to gives a REPL which can be used to evaluate Swift statements and then see corresponding output on the other side. Apple's Swift Tour can be used to experiment with the syntax and semantics of the Swift programming language. IBM have also provided a number of small samples that can be used to experiment with Swift.

The version of Swift running on the sandbox is a pre-release of Swift version 2.2 on Linux, and as such, some changes to the underlying library may be present. Swift's evolution does not take into consideration either source compatibility or binary compatibility at this stage; instead, the compiler offers 'fix-its' which can be used to migrate from one version to another. Binary compatibility is a planned item for Swift 3.0, due to be released towards the end of next year. Note also that as the Linux port is missing the Objective-C support, and any methods or extensions that depend on Objective-C classes (such as NSString). In addition, Apple specific frameworks such as UIKit or AppKit are not available.

For example, Swift 1.x had a global method stride(from:10,to:1,by:-1) but this has since been replaced with a member method 10.stride(to:1,by:-1). Error messages are translated into pop-up errors in the interface. 

for count in 10.stride(to:1,by:-1) {
print("Blast off!")

Functionality in the Swift sandbox will allow source code examples to be shared in future, but they are not available at the time of writing.

Do you think a sandbox will be a useful way of playing with Swift code?

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread


Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you