Apple ports Swift to Linux. Download Ubuntu binaries!

First Apple open source’d swift.  Now Apple has created Swift binaries for linux.  Apple is catching on and we love it!

From Swift’s blog:

With the launch of the open source Swift project, we are also releasing a port that works with the Linux operating system! You can build it from the Swift sources or download pre-built binaries for Ubuntu. The port is still a work in progress but we’re happy to say that it is usable today for experimentation. Currently x86_64 is the only supported architecture on Linux.

Here are a few highlights of what’s working in the port today:

  • Swift without the Objective-C Runtime: Swift on Linux does not depend on the Objective-C runtime nor includes it. While Swift was designed to interoperate closely with Objective-C when it is present, it was also designed to work in environments where the Objective-C runtime does not exist.
  • The core Swift Language and Standard Library on Linux shares most of the same implementation and APIs as on Apple platforms. There are some slight differences of behavior because of the absence of the Objective-C runtime on Linux (noted below).
  • The Glibc Module: Most of the Linux C standard library is available through this module similar to the Darwin module on Apple platforms. Some headers aren’t yet imported into the module, such as tgmath.h.To try it out, just import Glibc.
  • Swift Core Libraries: The Core Libraries provide implementations of core APIs from Foundation and XCTest to be used on Linux without Objective-C . The intention is that these APIs are available in a cross-platform manner regardless of whether you are using Swift on Apple’s platforms or Swift on Linux.
  • LLDB Swift debugging and the REPL: You can debug your Swift binaries andexperiment in the REPL just like you do on OS X.
  • The Swift Package Manager is a first class citizen as it is on Apple’s platforms.

Here are some things that aren’t quite working yet or are planned for the future:

  • libdispatch: Part of the Core Libraries, updated Linux support is in progress. You can follow development on the libdispatch project on GitHub.
  • Some C APIs: Although this is generally true for all of our supported platforms, a few constructs in C aren’t imported yet into Swift. This will cause some APIs to be unavailable, such as those that contain varargs / va_list. However, in recent months Swift’s interoperability with C has significantly advanced, gaining support for named and anonymous unions, anonymous structs, and bitfields.
  • Some String APIs: The Standard Library’s String is missing implementations of several important APIs because they are currently tied to the implementation ofNSString on Apple’s platforms.
  • Runtime Introspection: When a Swift class on Apple’s platforms is marked @objcor subclasses NSObject you can use the Objective-C runtime to enumerate available methods on an object or call methods using selectors. Such capabilities are absent because they depend on the Objective-C runtime.
  • Array<T> as? Array<S>: Some mechanisms, such as casting containers with different associated types, currently do not work as they relied on bridging mechanisms with Objective-C.

We’re really excited to be able to release the open source project with a great head start for Linux support that you can try right now! There is still plenty of work to be done, so we hope to see you contribute to Swift to make the Linux port even more complete.

Eddie Dounn

Web developer by day. Enthusiast by night. Owner of VAZED

7 thoughts on “Apple ports Swift to Linux. Download Ubuntu binaries!

  • October 19, 2016 at 4:00 am
    Permalink

    I was just looking at your Apple ports Swift to Linux. Download Ubuntu binaries! – website and see that your website has the potential to get a lot of visitors. I just want to tell you, In case you don’t already know… There is a website service which already has more than 16 million users, and the majority of the users are interested in websites like yours. By getting your website on this network you have a chance to get your site more visitors than you can imagine. It is free to sign up and you can find out more about it here: http://www.prestonkincaid.com/link/o – Now, let me ask you… Do you need your site to be successful to maintain your way of life? Do you need targeted traffic who are interested in the services and products you offer? Are looking for exposure, to increase sales, and to quickly develop awareness for your site? If your answer is YES, you can achieve these things only if you get your site on the service I am talking about. This traffic service advertises you to thousands, while also giving you a chance to test the service before paying anything at all. All the popular sites are using this network to boost their readership and ad revenue! Why aren’t you? And what is better than traffic? It’s recurring traffic! That’s how running a successful website works… Here’s to your success! Read more here: http://gd.is/y/46o6a – Unsubscribe here: http://brt.st/5lpX

    Reply
  • October 22, 2016 at 8:55 pm
    Permalink

    Hello my name is Alisa and I just wanted to send you a quick note here instead of calling you. I discovered your Apple ports Swift to Linux. Download Ubuntu binaries! – website and noticed you could have a lot more traffic. I have found that the key to running a popular website is making sure the visitors you are getting are interested in your subject matter. There is a company that you can get keyword targeted visitors from and they let you try their service for free for 7 days. I managed to get over 300 targeted visitors to day to my website. http://www.prestonkincaid.com/link/o – Unsubscribe here: http://lis.ovh/b2

    Reply
  • November 14, 2016 at 7:54 pm
    Permalink

    Hi my name is Cameron and I just wanted to send you a quick note here instead of calling you. I discovered your Apple ports Swift to Linux. Download Ubuntu binaries! – website and noticed you could have a lot more hits. I have found that the key to running a successful website is making sure the visitors you are getting are interested in your subject matter. There is a company that you can get keyword targeted visitors from and they let you try the service for free for 7 days. I managed to get over 300 targeted visitors to day to my website. http://thfox.com/4Ztq

    Reply
  • November 28, 2016 at 11:50 am
    Permalink

    I was just looking at your Apple ports Swift to Linux. Download Ubuntu binaries! – site and see that your website has the potential to become very popular. I just want to tell you, In case you didn’t already know… There is a website service which already has more than 16 million users, and the majority of the users are looking for websites like yours. By getting your site on this network you have a chance to get your site more visitors than you can imagine. It is free to sign up and you can read more about it here: http://qgo.be/la8IR – Now, let me ask you… Do you need your site to be successful to maintain your business? Do you need targeted traffic who are interested in the services and products you offer? Are looking for exposure, to increase sales, and to quickly develop awareness for your site? If your answer is YES, you can achieve these things only if you get your website on the service I am talking about. This traffic service advertises you to thousands, while also giving you a chance to test the service before paying anything at all. All the popular websites are using this service to boost their readership and ad revenue! Why aren’t you? And what is better than traffic? It’s recurring traffic! That’s how running a successful site works… Here’s to your success! Find out more here: http://www.bazmon.co.uk/6q

    Reply
  • November 30, 2016 at 9:42 pm
    Permalink

    I was just looking at your Apple ports Swift to Linux. Download Ubuntu binaries! – website and see that your website has the potential to become very popular. I just want to tell you, In case you don’t already know… There is a website service which already has more than 16 million users, and the majority of the users are interested in websites like yours. By getting your website on this network you have a chance to get your site more visitors than you can imagine. It is free to sign up and you can read more about it here: http://www.esdlink.de/67 – Now, let me ask you… Do you need your site to be successful to maintain your business? Do you need targeted visitors who are interested in the services and products you offer? Are looking for exposure, to increase sales, and to quickly develop awareness for your website? If your answer is YES, you can achieve these things only if you get your site on the network I am describing. This traffic service advertises you to thousands, while also giving you a chance to test the network before paying anything. All the popular websites are using this service to boost their traffic and ad revenue! Why aren’t you? And what is better than traffic? It’s recurring traffic! That’s how running a successful website works… Here’s to your success! Find out more here: http://dmvd.com/a

    Reply
  • December 1, 2016 at 9:57 am
    Permalink

    I decided to leave a message here on your Apple ports Swift to Linux. Download Ubuntu binaries! – page instead of calling you. Do you need more likes for your Facebook Fan Page? The more people that LIKE your website and fanpage on Facebook, the more credibility you will have with new visitors. It works the same for Twitter, Instagram and Youtube. When people visit your page and see that you have a lot of followers, they now want to follow you too. They too want to know what all the hype is and why all those people are following you. Get some free likes, followers, and views just for trying this service I found: http://rodlangh.be/3k

    Reply
  • December 14, 2016 at 3:55 pm
    Permalink

    I decided to leave a message here on your Apple ports Swift to Linux. Download Ubuntu binaries! – page instead of calling you. Do you need more likes for your Facebook Fan Page? The more people that LIKE your website and fanpage on Facebook, the more credibility you will have with new visitors. It works the same for Twitter, Instagram and Youtube. When people visit your page and see that you have a lot of followers, they now want to follow you too. They too want to know what all the hype is and why all those people are following you. Get some free likes, followers, and views just for trying this service I found: http://8si.ru/2l3ih

    Reply

The HackerAttitude Discussions