Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Programming Apple

Swift 5 Released (swift.org) 56

Ted Kremenek, a manager of the Languages and Runtimes team at Apple, writes: Swift 5 is now officially released! Swift 5 is a major milestone in the evolution of the language. Thanks to ABI stability, the Swift runtime is now included in current and future versions of Apple's platform operating systems: macOS, iOS, tvOS and watchOS. Swift 5 also introduces new capabilities that are building blocks for future versions, including a reimplementation of String, enforcement of exclusive access to memory during runtime, new data types, and support for dynamically callable types.
This discussion has been archived. No new comments can be posted.

Swift 5 Released

Comments Filter:
  • by SuperKendall ( 25149 ) on Tuesday March 26, 2019 @10:28AM (#58336066)

    It's great that Swift has finally got ABI compatibility, the main benefit to start it an easier time distributing frameworks that can be dynamically loaded.

    Another great aspect of Swift 5 is that you can still build apps all the way back to iOS 11 (maybe earlier). So you can still convert apps to use the latest Swift without worrying about excluding users that prefer to wait for a while before upgrading (though the practical reality is that after a year, almost all iOS users have upgraded).

    One interesting change that happened with Swift 5 is that it switched internally from storing Strings as UTF-16, to UTF-8 - it helps performance and bridging to languages like C.

    • Are you serious? "all the way back to iOS 11"? Dude, iOS 11 is barely 1.5 year old!
      I do my best to support actually old versions with my apps (for amateur astronomers) - I was able to support iOS 6 until last summer (Apple stopped allowing it), new versions of my apps support as far back as iOS 7, which is not easy if you want to fully support new devices as well, but there are ways to do it. I do get some thank you messages from iOS 7 or iOS 9 users (mainly people with devices such as iPhone 4S, iPad 2 who

      • I've kept my phone and iPad on iOS 10 because I haven't seen any reason to upgrade them. The other week I changed mobile carriers and I had to update my iPhone to the latest release and I haven't seen a positive thing about the move other than having my phone work with the new carrier. I have a 5s because that size of phone suits my needs. I'm sure that there are a number of security fixes in there that are good too.

        Lately I've been seeing a number of apps requiring iOS 11 or even 12. These are apps that ar

  • I can't wait! (Score:3, Informative)

    by pak9rabid ( 1011935 ) on Tuesday March 26, 2019 @10:39AM (#58336146)
    Oh sweet, another forced Xcode upgrade that will no doubt bust up all my app's existing code and require hours of effort to get back to where I was again! Thanks Apple!
    • How is it forced? (Score:4, Insightful)

      by SuperKendall ( 25149 ) on Tuesday March 26, 2019 @11:55AM (#58336738)

      Oh sweet, another forced Xcode upgrade

      How is this forced? You could keep using the current version of Xcode for quite a while.

      In fact even after upgrading, nothing says you have to move to Swift 5 - you can keep compiling against the older Swift versions, and upgrade when it makes sense to you.

      I've been using the beta version of Xcode off and on, and it didn't seem to break anything - I was able to compile my existing projects just fine with no changes.

      • How is this forced? You could keep using the current version of Xcode for quite a while.

        No haha. Trying to remain on older versions of Apple software is a pain and not supported scenario. After a few OS upgrades, it won't work at all.

    • I rolled my eyes this morning thinking you were being a little melodramatic, but here I am now trying to get an xcode project working.
  • Are they still changing the UUID almost every release?

    I made a plug-in for Xcode and released it as open source a few years ago. Almost every time an Xcode release came out I'd get a request saying that plug-in stopped working. This is because as part of the configuration of the plug-in you specify the UUIDs of Xcode the plug-in works with. The new release doesn't match and so the plug-in doesn't work. An error code shows up in the log and it's easy to find out what has happened.

    It was like dealing with a b

The unfacts, did we have them, are too imprecisely few to warrant our certitude.

Working...