The Grand Opening: Swift Goes Open Source

DZone 's Guide to

The Grand Opening: Swift Goes Open Source

Swift going open source is a big deal for a lot of people. Get up to speed with these links.

· Mobile Zone ·
Free Resource

So, just in case you spent the weekend being dead — and probably didn’t miss it even if you were —Swift.org is a thing!

And unlike previously accustomed source dumps, this is going to be the working repo going forward:

“The Swift team will be developing completely in the open on GitHub,” Federighi told Ars. “As they’re working day-to-day and making modifications to the language, including their work on Swift 3.0, all of that is going to be happening out in the open on GitHub.”

Open, indeed — to general surprise, the entire commit history of Swift went public; check this visualization out:

Over 5 years of work, 23,000+ commits condensed into 8 minutes

Rather interesting is the focus in bringing Swift to the cloud. There’d been these Perfect people,

Wouldn’t it be amazing if you could develop every aspect of your apps, front and back end, all using Swift™? We think so. That’s the vision behind Perfect. Perfect is the first enterprise-grade web server and web toolkit for the Swift programming language…

which looked like a rather … selective … interest. But that’s not what Apple thinks:

“IBM has been a major source of that feedback for us, and they’ve been eager since they got started with Swift, saying “how can we take these applications we’re writing for enterprise all the way from the mobile platform into the cloud?” …

Where we expect the community to really push is the cloud framework, and we think there will be a lot of energy to adapt Swift into the datacenter…

And why yes, IBM is right out of the gate with support for Swift, in your browser no less:

Today, IBM introduced an online 2.2 Swift Sandbox. John Petitto writes, “We love Swift here and thought you would too so we are making our IBM Swift Sandbox available to developers on developerWorks.”

Another Swift browser REPL is at Swiftstub.com.

Well, the idea that community participation will drive adoption might work out, and might not, but we know one thing for sure in less than a week:

Swift’s comments and test suite are on track to be one of the most correctly spelled and best indented ones in the industry! 

Indeed. If you can’t find any more speling misteaks and feel like getting in on the Linux development action, here’s a great start:

Introduction to Open Source Swift on Linux

In this tutorial, you’ll set up a Linux environment on your Mac, install Swift, and compile and run some basic Swift examples on Linux. Then you’ll take stock of the new bits offered by Apple, and finish off with a look into into the misty crystal ball of time, and guess what this all means for the future…

Oh, that’s not hard to guess, is it now?

And here’s some more suggestions for getting involved:

  • Search for FIXME in the code base and make the fix – @ayanonagon
  • Add more Unit Tests (something I wrote down as my personal strategy) – @KostiaKoval
  • Fix bugs! Yes, Swift bugs are tracked publicly via Jira!
  • As many have noticed, the Foundation Project has a lot of NSUnimplemented(). Instead of complaining (or worse, laughing about it), contribute to it! The nice things is that it’s in Swift – you don’t need to know C++. Here is a great example PR from @simjp!
  • For larger changes, write a proposal and ask for reviews from the community – amazing example by @ericasadun

As Jesse Squires said it the best: Let the revolution begin!

ios, swift

Published at DZone with permission of Alex Curylo , DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}