"Swift as C++ Successor in FoundationDB" by Konrad Malawski (Strange Loop 2023)
Channel:Strange Loop Conference · Length:42:24 · Published:2023-10-12 · Views:19589
Summary
Konrad Malawski's Strange Loop 2023 talk shows how the FoundationDB team adopted Swift incrementally in a C++ codebase. It covers Swift's C++ interoperability, which let them move single functions or entire types over one at a time.
Why HN recommends it
HN commenters recommend it as the main resource on Swift as an incremental successor to C++ and on how the interoperability works in practice.
The fairly recent presentation about starting to move FoundationDB to Swift[0] was also very interesting. — HN, 2024
Programming language design · C, C++, Rust, Go & systems languages · Databases & storage
Subtitles (excerpt)
hello hello okay uh hello everyone uh welcome to the Swift as C++ successor in FDB Foundation DB talk my name is Conrad I work at Apple on the Swift team mostly focus on language and runtime for concurrency and distributed systems but also server side libraries in general uh so this talk is a bit of a case study how we adopted Swift in a large existing code base uh that's predominantly C++ and I'll introduce you to some Swift features along the way uh so for those who don't know uh Swift is a natively compiled general purpose language it's the language of choice on Apple platforms uh but it's equally well supported on other platforms for example Linux and there a vibrant service side ecosystem people building and deploying services in in Swift uh in general we have a very strong focus on safety both memory safety and currency safety and I'll zoom into to this a bit more at the same time though Swift doesn't sacrifice ergonomics to achieve this safety uh we strive to be a great first programming language you can imagine you've never programmed before you want to pick up some language write an app for your phone it can't overwhelm beginners with a ton of difficult stuff right at the same time we
On Hacker News
Honestly, Swift seems like such a nice language. Most of the performance and power, great interop, but more directed at application development than Rust (with e.g. refcounting being the default). But as they say, you choose a language for its ecosystem, not for the language itself. It would be great if Swift’s open source ecosystem for stuff other than app development grew. It does indeed seem l… — cube2222, 2024-08
I'm not a (direct) user of the C++ interop, but everything I've heard about it has been quite positive. A few hopefully relevant resources, first a couple of videos: - "Introducing a Memory-Safe Successor Language in Large C++ Code Bases" (John McCall; CppNow 2023) [LINK] - "Swift as C++ Successor in FoundationDB" (Konrad Malawski; Strange Loop 2023) [VIDEO] And then a series of blog posts by Dou… — glhaynes, 2024-06
I wonder what the author thinks about Swift’s new C++ interop story? Since the Swift compiler includes Clang, and can thus compile both your C++ and Swift into LLVM IR, without the need for an FFI later between the two, couldn’t this be the “Typescript for C++” that the author points out a space for? The Swift folks are very much thinking about Swift as a C++ successor that can be incrementally m… — mannuch, 2023-12
Nowadays being rewritten into Swift. "Swift as C++ Successor in FoundationDB" by Konrad Malawski (Strange Loop 2023) [VIDEO] — pjmlp, 2025-07
Yes, Apple themselves, apparently folks wanting Apple to use Rust don't read Apple's documentation or watch talks done by Apple compiler developers. > Swift was designed from the outset to be safer than C-based languages, and eliminates entire classes of unsafe code. -- [LINK] > Swift is a successor to the C, C++, and Objective-C languages. It includes low-level primitives such as types, flow con… — pjmlp, 2025-04
Related videos
- Introducing a Memory-Safe Successor Language in Large C++ Code Bases - John McCall - CppNow 2023 · CppNow · 1:22:20
- "Voice Driven Development: Who needs a keyboard anyway?" by Emily Shea · Strange Loop Conference · 41:17
- Boeing: Last Week Tonight with John Oliver (HBO) · LastWeekTonight · 32:36
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- "Testing Distributed Systems w/ Deterministic Simulation" by Will Wilson · Strange Loop Conference · 40:20
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- Growing a Language, by Guy Steele · Bill Pugh · 53:31
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- Effective Programs - 10 Years of Clojure - Rich Hickey · ClojureTV · 1:14:51