Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
> I wish they'd start by standardizing something equivalent to "extern C" in Swift
There is the unofficial (but very relied upon) @_cdecl, if you're OK with needing to update your code if/when that eventually gets standardized. That attribute will take care of the calling convention difference for you.
https://github.com/apple/swift/blob/main/docs/ReferenceGuide...
Yes, it has been in the Swift compiler for some time now
The original flag was "-experimental-cxx-interop", now it is "-enable-cxx-interop"
See here for examples of it in use, including interop with the C++ std library types:
Not a working group, but a library does exist: https://cxx.rs/