Swift and C++ interoperability workgroup announcement

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • swift

    The Swift Programming Language

  • > 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...

  • cxx-interop-test

    Small test app for C++ Interop with Swift.

  • 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:

    https://github.com/plotfi/cxx-interop-test

  • 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.

    InfluxDB logo
  • cxx

    Safe interop between Rust and C++

  • Not a working group, but a library does exist: https://cxx.rs/

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts