• Your favorite

    Apple

    ,

    iPhone

    ,

    iPad

    ,

    iOS

    ,
    Jailbreak
    , and
    Cydia
    site.
  • Apple Releases First Blog and Gives Overview of New Swift Programming Language


    Apple’s official developer website now has a blog on the new Swift programming language. The company introduced Swift at this year’s WWDC, and it apparently provides stronger, newer, and cleaner tools for developing applications. The blog is specifically for Apple engineers who are working on Swift sharing details behind the language development. The first blog post is as follows:

    Welcome to Swift Blog

    This new blog will bring you a behind-the-scenes look into the design of the Swift language by the engineers who created it, in addition to the latest news and hints to turn you into a productive Swift programmer.
    Get started with Swift by downloading Xcode 6 beta, now available to all Registered Apple Developers for free. The Swift Resources tab has a ton of great links to videos, documentation, books, and sample code to help you become one of the world’s first Swift experts. There’s never been a better time to get coding!

    - The Swift Team
    The post also talks about the compatibility of Swift with present and future Apple software. The details state:

    One of the most common questions we heard at WWDC was, “What is the compatibility story for Swift?”. This seems like a great first topic.

    App Compatibility

    Simply put, if you write a Swift app today and submit it to the App Store this Fall when iOS 8 and OS X Yosemite are released, you can trust that your app will work well into the future. In fact, you can target back to OS X Mavericks or iOS 7 with that same app. This is possible because Xcode embeds a small Swift runtime library within your app’s bundle. Because the library is embedded, your app uses a consistent version of Swift that runs on past, present, and future OS releases.

    Binary Compatibility and Frameworks

    While your app’s runtime compatibility is ensured, the Swift language itself will continue to evolve, and the binary interface will also change. To be safe, all components of your app should be built with the same version of Xcode and the Swift compiler to ensure that they work together.

    This means that frameworks need to be managed carefully. For instance, if your project uses frameworks to share code with an embedded extension, you will want to build the frameworks, app, and extensions together. It would be dangerous to rely upon binary frameworks that use Swift — especially from third parties. As Swift changes, those frameworks will be incompatible with the rest of your app. When the binary interface stabilizes in a year or two, the Swift runtime will become part of the host OS and this limitation will no longer exist.

    Source Compatibility

    Swift is ready to use today, in brand new apps or alongside your proven Objective-C code. We have big plans for the Swift language, including improvements to syntax, and powerful new features. And as Swift evolves, we will provide tools in Xcode to help you migrate your source code forward.

    We can’t wait to see what you build!
    Apple engineers have been promoting Swift on Twitter and in Apple’s developer discussion forums recently. Lead developer of Swift, Chris Lattner also published his own blog post about Swift the day of the WWDC keynote. The release of the blog marks another milestone for Apple, as it is the first blog on the official website and shows the company opening up to consumers and developers as well.


    Source: Apple
    This article was originally published in forum thread: Apple Releases First Blog and Gives Overview of New Swift Programming Language started by Akshay Masand View original post