Swift as C++ Successor in FoundationDB by Konrad Malawski (Strange Loop 2023) @StrangeLoopConf
Swift as C++ Successor in FoundationDB by Konrad Malawski (Strange Loop 2023)  @StrangeLoopConf
Uploaded October 2023 | Updated November 2026, 3 days ago
Programming languages often prioritize either performance or ergonomics. Swift offers a unique modern type-safe low-ceremony approach taking the best of both worlds that scales from mobile apps to high-performance systems where previously memory-unsafe languages would be used. It also interoperates seamlessly with C and C++.

In this talk, we show how we successfully adopted Swift in FoundationDB, a distributed database struggling to modernize its C++ codebase. Swift's interoperability features allowed the team to incrementally move single functions, or entire types, to Swift. This transition was done without generating any bindings and while preserving the existing semantics.

FoundationDB uses a custom actor runtime, which enables reproducible simulation testing. Again, Swift's flexible concurrency and distributed actor model enabled an incremental side-by-side approach by having Swift concurrency seamlessly execute on the existing scheduling infrastructure.

Konrad Malawski
Swift Team, Apple
@ktosopl

Konrad works in the Swift team at Apple, where he focuses on foundational server-side Swift libraries and concurrency features of the language. He was part of the design and implementation of Swift’s structured concurrency and actor model, as well as the distributed actors language feature and cluster library. He also maintains server-side observability libraries for logging, metrics and distributed tracing. Previously, he worked on Akka at Lightbend/Typesafe, where he maintained core pieces of the ecosystem, including the clustering, event sourcing, streaming and HTTP libraries. He also made significant contributions to the reactive-streams specification and TCK which later became the foundation of the JDK’s java.util.concurrent.Flow types.

----
Recorded Sept 21, 2023 at Strange Loop 2023 in St. Louis, MO.
thestrangeloop.com
Swift as C++ Successor in FoundationDB by Konrad Malawski (Strange Loop 2023)Margaret-Anne Storey: What does productivity actually mean for developers?How Automated Tools Can Communicate Effective Strategies for Fixing Bugs by Justin SmithAlberto Bacchelli: How code review works (and doesnt) in the real worldHow to Build a Meaningful Career by Taylor Poindexter and Scott Hanselman (Strange Loop 2023)Impacting Global Policy by Understanding Litter Data by Sean DohertyType-Driven API Design in Rust by Will CrichtonReviving 1990s Digital Dress-Up Dolls with Smooch by Libby Horacek (Strange Loop 2022)Systems that run forever self-heal and scale by Joe Armstrong (2013)Nim Nuggets: Systems Programming & Metaprogramming Magic by Aditya SiramHow to Think about Parallel Programming: Not! - Guy L. Steele Jr. (Strange Loop 2010)The Evolution of a Planetary-scale Distributed Database by Kevin Scaldeferri (Strange Loop 2022)
Strange Loop Conference |

"Swift as C++ Successor in FoundationDB" by Konrad Malawski (Strange Loop 2023)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER