~/talk

Working with C and C++ in Apple environment

Talkat #Pragma Conference 2023 · 2023-10-05..10-06· [c-and-cpp, ios]
slides:none on file

Argues for embedding C/C++ to share domain logic across iOS, macOS, Android and Windows, showing a working integration: a header-only JSON library as a single-file example, Swift Package Manager needs an add empty .cpp to satisfy SwiftPM workaround, and larger C++ libs compile to XCFrameworks and link fine though binaries grow unless linker strips unused slices. Recommends hiding C++ with a Swift wrapper + protocol for UI mocks, uses OpaquePointer and passRetained for async callbacks, tests with Google Test, and notes C++ interop in Xcode 15 early but usable.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:08Motivation for C and C++ in Apple apps
  3. 5:05C-only frameworks in Apple ecosystem
  4. 7:51Approaches to C and C++ interoperability
  5. 8:16Integrating C/C++ libraries in Xcode
  6. 9:41Demo: Adding a C++ library to iOS app
  7. 13:52Real-world C++ library integration
  8. 15:40Wrapping C++ with Swift for UI
  9. 17:27Synchronous and asynchronous C calls
  10. 20:23C++ interop in Xcode 15
  11. 21:44Key resources for C++ interop
  12. 22:07Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.