Paul Krill
Editor at Large

Swift-C++ interoperability effort moves forward

news
Feb 4, 20221 min

Bidirectional interoperability workgroup formed as the Swift compiler adds the ability to import and use some C++ APIs.

puzzle pieces solving problems solved solution teamwork
Credit: Thinkstock

A Swift-C++ interoperability workgroup has been formed as part of the Swift project. The new workgroup is responsible for developing and designing the interoperability model between C++ and Apple-developed Swift.

A January 31 bulletin announcing the formation of the workgroup noted a “huge” amount of interest in bidirectional interoperability between the two languages. The workgroup will provide the framework for refining the interoperability layer’s goals and design and for discussing changes to the Swift compiler to support interoperability. The initial focus will be on rapidly iterating the development of the interoperability model between the two languages.

The bulletin noted that the Swift compiler now can import and use some C++ APIs including C++ standard library types std:string and std::vector. A “C++ interoperability manifesto” published on the Swift GitHub page describes the goals and design for bidirectional API interoperability between the two languages.

The manifesto emphasizes that proposed changes must fit Swift’s goals and philosophy, and that forking the Swift language or standard library or creating a dialect without a fork were not “interesting options.” Limited changes also could be made to the C++ code, toolchain, standard library implementation, and runtime environment, the document states.

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