November 30, 2022


The Internet Generation

Swift-C++ interoperability effort moves forward

A Swift-C++ interoperability workgroup has been formed as part of the Swift venture. The new workgroup is responsible for producing and developing the interoperability product concerning C++ and Apple-created Swift.

A January 31 bulletin announcing the formation of the workgroup observed a “huge” volume of fascination in bidirectional interoperability in between the two languages. The workgroup will give the framework for refining the interoperability layer’s targets and style and for speaking about modifications to the Swift compiler to guidance interoperability. The preliminary concentrate will be on rapidly iterating the enhancement of the interoperability model concerning the two languages.

The bulletin noted that the Swift compiler now can import and use some C++ APIs together with C++ common library varieties std:string and std::vector. A “C++ interoperability manifesto” released on the Swift GitHub page describes the objectives and structure for bidirectional API interoperability involving the two languages.

The manifesto emphasizes that proposed variations ought to suit Swift’s ambitions and philosophy, and that forking the Swift language or normal library or developing a dialect with no a fork have been not “interesting choices.” Confined variations also could be designed to the C++ code, toolchain, typical library implementation, and runtime surroundings, the document states.

Copyright © 2022 IDG Communications, Inc.