3

Swift-C++ interoperability effort moves forward

 2 years ago
source link: https://www.infoworld.com/article/3649131/swift-c-plus-plus-interoperability-effort-moves-forward.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Swift-C++ interoperability effort moves forward

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

By Paul Krill

Editor at Large,

InfoWorld | Feb 4, 2022 1:15 pm PST

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.

[ Also on InfoWorld: Complexity is killing software developers ]

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.

Green IT: The color of money
0 seconds of 21 minutes, 50 secondsVolume 0%

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK