A Swift-C++ interoperability workgroup has been fashioned as a part of the Swift mission. The brand new workgroup is liable for creating and designing the interoperability mannequin between C++ and Apple-developed Swift.
A January 31 bulletin saying the formation of the workgroup famous a “enormous” quantity of curiosity in bidirectional interoperability between the 2 languages. The workgroup will present the framework for refining the interoperability layer’s objectives and design and for discussing adjustments to the Swift compiler to help interoperability. The preliminary focus can be on quickly iterating the event of the interoperability mannequin between the 2 languages.
The bulletin famous that the Swift compiler now can import and use some C++ APIs together with C++ normal library sorts std:string
and std::vector
. A “C++ interoperability manifesto” revealed on the Swift GitHub web page describes the objectives and design for bidirectional API interoperability between the 2 languages.
The manifesto emphasizes that proposed adjustments should match Swift’s objectives and philosophy, and that forking the Swift language or normal library or making a dialect with out a fork weren’t “attention-grabbing choices.” Restricted adjustments additionally may very well be made to the C++ code, toolchain, normal library implementation, and runtime setting, the doc states.
Copyright © 2022 IDG Communications, Inc.