IBM announced its free, browser-based Swift Sandbox, which lets developers write in Apple's programming language and execute their code in a server environment -- on top of Linux.

Larry Loeb, Blogger, Informationweek

December 7, 2015

3 Min Read

Apple's Swift Programming Language: 10 Fascinating Facts

Apple's Swift Programming Language: 10 Fascinating Facts


Apple's Swift Programming Language: 10 Fascinating Facts (Click image for larger view and slideshow.)

Shortly after Apple open sourced its Swift programming language last Thursday, IBM launched a free browser-based online sandbox to help developers get started writing code.

Swift has already been ported to Linux, and Apple has said it will not object to other OS ports. In fact, this Linux port is what enabled IBM to create this sandbox. The IBM Swift Sandbox uses a Docker container for the runtime environment, which allows Swift to live in the cloud just fine.

This means developers can run Swift code snippets on any browser over the Internet, not just a specific IDE. This is the kind of accessibility that encourages learners such as students to dabble in a language before making a commitment to deep-dive into a programming environment.

{Image 1}

The sandbox allows for input of Swift code (which is object-oriented and looks a lot like C structurally, but is not as complicated as Objective-C) in one window. Hitting the Run button in the sandbox sends the output to another pane.

IBM says it is committed to Swift in a big way. As IBM engineer Patrick Bohrer put it in weekend blog post, "It is an exciting time to be in our industry and especially be anywhere near Swift. … The Swift development community is the same community that is helping build the applications that are, literally, changing the way we live our lives. We think there are endless possibilities here. We hope you think the sandbox is as fun as we do and that it also empowers and inspires our collective creativity."

[See HTML 5 Vs. Native Apps: What's Best For Developers?]

Microsoft has joined the party as well. In February, it brought out Silver, a way to use Swift with Microsoft frameworks. The company said at the time, "With Silver, you can use Swift to write code directly against the .NET, Java, Android and Cocoa APIs. And you can also share a lot of non-UI code between platforms. Silver supports three platforms, but is decidedly not cross-platform, focusing on letting you leverage the Swift language natively for each individual platform, rather than encouraging mediocre cross-platform apps. With Silver, you can share your language and tool expertise, and you can share a lot of back-end business logic code -- but you will use it to write apps targeted at each platform individually."

Swift seems poised for rapid adoption by developers with the flurry of recent events. By making it open source and supported by different platforms, the "write once, run everywhere" goal developers have sought for so long seems closer than ever.

**New deadline of Dec. 18, 2015** Be a part of the prestigious InformationWeek Elite 100! Time is running out to submit your company's application by Dec. 18, 2015. Go to our 2016 registration page: InformationWeek's Elite 100 list for 2016.

About the Author(s)

Larry Loeb

Blogger, Informationweek

Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek. He has written a book on the Secure Electronic Transaction Internet protocol. His latest book has the commercially obligatory title of Hack Proofing XML. He's been online since uucp "bang" addressing (where the world existed relative to !decvax), serving as editor of the Macintosh Exchange on BIX and the VARBusiness Exchange. His first Mac had 128 KB of memory, which was a big step up from his first 1130, which had 4 KB, as did his first 1401. You can e-mail him at [email protected].

Never Miss a Beat: Get a snapshot of the issues affecting the IT industry straight to your inbox.

You May Also Like


More Insights