As promised earlier in the year, Apple’s Swift team has now posted source code for the Swift compiler and standard library functions and objects. Open-sourcing Swift is a big win for the developer community as it means Swift can now be setup to run on a server and many other use cases, bringing Apple programming talent and expertise beyond ‘just’ making apps iOS devices and Macs.
Making Swift open-source also gives the developer community as a whole more confidence in the language. Theoretically, if Apple ever decided to move away from Swift (which is unlikely), the language could be picked up by others and continue development and existing codebases could continue to be supported.
By open sourcing the language, Apple is also inviting the community to help make Swift better, by contributing to the language itself. It is yet to be seen how open Apple approach accepting significant community pull-request however. The Swift site says the project prefers ‘small incremental improvements’.
For those interested in finding out more, check out the documentation on the Swift.org site. The code itself is hosted on a GitHub repository. The repo is currently 404ing but the code should be up shortly.
Apple is publishing code for the raw language compiler as well as the Swift standard library and parts of Foundation, which many developers did not think would happen. Frameworks like AppKit and UIKit remain exclusive to Mac and iOS app development as expected. The published ‘core libraries’ include some of the most important components from AppKit and UIKit, like a networking stack, threading, and common data types, however. Apple says these features are actually planned for official release in the as-yet-unannounced Swift 3, but is including them now for feedback in the early development stages.
Unsurprisingly, Swift 2.2 planned for Spring 2016. pic.twitter.com/CN8wsELGLL
— Benjamin Mayo (@bzamayo) December 3, 2015
FTC: We use income earning auto affiliate links. More.
A slap to android, a kick to windows
Why is that ?
.NET, ASP.NET, c# Compiler Roslyn are all open source, as is TypeScript and many developer tools from Microsoft.
Android is open source, Java is GNU GLP.
That would be because:
1. A Judge executed a recall of all copies of MS-DOS 6 for this very reason — it included Stac Electronics compression. The list goes on. Why trust Microsoft with a CLR (runtime) .NET for any of its languages like C# (ASP.Net btw is a part of .NET :-/
2. TypeScript is a part of Microsoft’s usual embrace, extend and extinguish philosophy: Embrace it, Promise develops they will extend it, then when threshold has been reached, extinguish it.
3. You can find tapes of the CEO at the time giving his views on Capitalism as a joke. Not funny for those who spend a lot of time building a project.
Anything that has to do with Microsoft Programming, .NET is a CLR (common language runtime), or a programming language such as C# should be avoided. C# is Microsoft’s primary language and Swift out-performs it by a huge factor because C# and it’s supposed to be Microsoft’s fastest besides C++.
Hurray for Apple!
@Robert Thompson
Dude, First of all, how could you compare c# on Windows phone is amazing(DID you see the demo where a windows phone works like a complete desktop? ). So your claiming is obviously nothing more than a fan claim and is not valid.
Second, cpp programmers knows what a joke it is when comparing any language to cpp. I could for sure write a cpp library that runs on a desktop that is slower than python running on a raspberry pie! right? BUT I can for sure do the opposite and with a lot of optimization, nothing will be able to beat cpp. Right?
C# was java with better properties and built in event delegates. Android is Java… and java is old, period. NullPointerException anyone?
Tell me one thing, how did you add u’r twitter handle alongside u’r name right here in the comments?
Your comment is funny.
‘M interested to make friends from international borders and if you like too and have social sites, let me know.
Sift is great but I don’t see its uses anywhere other than ios dev, hopefully the community will decide that and improve it because its still new and miss a lot of stuff.
Give it time, we don’t ‘ve to worry ;D
er – no it’s not.
Not really… a win for both IMO – just use swift, it’s open source. If anything, Android needs this. Windows… doesn’t matter no one is buying them.
No one is slapping or kicking anyone. The programming languages both Android and Windows use are open source too and have been well before Swift.
How did u add u’r twitter handle right here in the comments alongside u’r name?
Excellent news.
swift.org is down.
It’s up, it just takes a while to load.
swift.org is indeed down: http://downforeveryoneorjustme.com/swift.org
It’s not, it’s just slow because of the demand.
Nope, it was definitely down.
Excuse me, but does this mean that even windows users now can write apps for iOS / Mac ?
I don’t think so. It just means that you now can write Windows or Linux software in Swift. Technically, you could compile other software now on a non-OS X machine, but it’ll probably use OS X-specific frameworks causing it not to work.
Yes, you just have to buy a Mac :)
Who would want to program anything in Swift unless they had to. I’ve developed with it for more than a year and, if anything it’s a step backwards from Objective-C. The syntax is not logical.
Excuse me, how do you add twitter handle alongside u’r name right here in the comments?
Woohoo! It sure is a good time to be a developer!
Someone please make a source code formatter.
(I don’t have the skill)
See AppCode by JetBrains.