Paul Krill
Editor at Large

Swift language targets machine learning

news
Feb 11, 20202 mins

Swift 6 roadmap also emphasizes expressive and elegant APIs and ‘fantastic’ development experience

close up of arrow in bulls eye of target skd283477sdc
Credit: Thinkstock

Moving toward Swift 6, the core development team behind Apple’s Swift programming language has set priorities including refining the language for use in machine learning.

Ambitions in the machine learning space are part of plans to invest in “user-empowering directions” for the language. Apple is not the only company with machine learning ambitions for Swift; Google has integrated Swift with the TensorFlow machine learning library in a project called Swift for TensorFlow. And the Swift community has created Swift Numerics, a library that can be used for machine learning.

In addition to machine learning, directions eyed for Swift include building APIs such as variadic generics and DSL capabilities such as function builders. Solutions for major language features such as memory ownership and concurrency also are part of the plan. Other specific goals for Swift, cited in a January 2020 bulletin, include:

  • Creating a “fantastic development experience,” with developers able to be highly productive and joyful when programming in the language. These investments include faster builds, better diagnostics, responsive code completion, and reliable debugging. Most current engineering work in the project covers these areas.
  • Growing the Swift software ecosystem, including expanding the number of supported platforms and improving how software written in Swift is deployed. Also planned is support for cross-platform tools such as Language Server Protocol, the Swift Package Manager, code formatting, and refactoring. Cultivation of a rich open source library ecosystem also is eyed.

Introduced in June 2014, Swift has been rising steadily in the Tiobe index of programming language popularity, jumping from 20th place a year ago to 10th place in the February 2020 index. Its predecessor, Objective-C, has done the reverse, dropping from 10th a year ago to 20th this month. The release currently in development is Swift 5.2. A succession of Swift 5.x releases are expected before Swift 6.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author