~/talk

Using C Libraries in Modern Apps

Talkat /dev/world 2016 · 2016-08-29..08-31· [c-and-cpp, ios]
links:none on file
slides:none on file

Explains how pdfium gets integrated into AsdeqDocs by wrapping its C API in Swift: creates a pdfium Swift framework that exposes only Swift wrappers while importing C headers via a module map and bridging header, compiles static .a libraries for arm and x86 to avoid rebuilding, and uses Swift objects with strong parent references to guarantee correct deallocation order. Demonstrates rendering annotated PDFs correctly and using C, Objective‑C, Swift and C++ together in production.

AI-written summary · about

  1. 0:00Intro
  2. 1:14A talk in three parts
  3. 2:51PDF annotations
  4. 3:27Annotations with Core Graphics
  5. 3:55Proprietary libraries
  6. 5:24Pdfium to the rescue
  7. 7:00Annotations with pdfium
  8. 7:32The pdfiumswift framework
  9. 9:01Object-oriented pdfium
  10. 10:44Loading a document
  11. 11:18Initialising a C resource
  12. 12:07Automatic resource closing
  13. 13:33Mixing languages
  14. 18:32Adding C code directly
  15. 22:51Framework with Swift wrapper
  16. 27:58Dealing with pdfium
  17. 28:26Summary
  18. 28:59Questions?
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.