Swift as C++ Successor in FoundationDB
summary
Claim: Swift replaces C++ in FoundationDB by compiling Swift and C++ side‑by‑side, calling C++ directly via clang modules and emitting LLVM IR, and exposing Swift actors into the Flow runtime used for simulation testing runtime. The team merges a PR that migrates core actors incrementally, uses CMake integration and Swift macros to bridge async to Flow futures, runs millions of reproducible tests, and reports no regressions in benchmarks while preserving existing semantics.
AI-written summary · about
chapters (11)
- 0:00Swift as C++ successor
- 3:17FoundationDB overview
- 7:28Incremental Swift adoption
- 10:17Swift-C++ interoperability
- 13:07Swift vs C++ object model
- 19:50Bridging C++ collections
- 26:11Swift actors for concurrency
- 33:56Exposing Swift actors
- 36:29Developer experience
- 37:33Debugging improvements
- 40:41Swift performance benefits
related talks
36mSwift & Interoperability
19mUsing C, C++ and Objective C frameworks in Swift apps
47mAn Introduction to the Swift Programming Language
50mTime traveling with Swift
57mCatching up with Swift
45mSwift 5.9: Exploring Interop and an Arranged Marriage with C++
40mFeet in Both Worlds: From Objective-C to Swift
47mTime Traveling With Swift: Where We Started, Where We Are, and Where We’re Going
