~/talk

How to combine Swift/Kotlin with C/C++

Talkat Mobilization 2017 · on Saturday, 2017-10-21· [android, c-and-cpp]
links:none on file
slides:none on file

A push-up counter app is built with platform UIs in Swift and Kotlin and a shared C++ business layer using OpenCV for face-distance detection; glue code is generated with Genie IDL (optionally SWIG), requiring a custom OpenCV mat converter to map Java/ObjC wrappers to C++ pointers. Android uses JNI-loaded shared libraries and CMake; iOS links at build time. The prototype achieves ~50–60 FPS in camera debug mode, and Genie covers about 95% of binding work.

AI-written summary · about

  1. 0:00Introduction
  2. 0:47Why use C++
  3. 2:59Reusing legacy code
  4. 5:30Push-up counter demo
  5. 7:40Architecture decisions
  6. 9:53OpenCV and performance
  7. 13:14Language bindings
  8. 14:20SWIG vs Genie
  9. 17:52IDL file structure
  10. 21:55Generating glue code
  11. 22:16Android project setup
  12. 26:21iOS project setup
  13. 29:58Debugging camera feed
  14. 33:15Custom type converters
  15. 36:05Java native interface
  16. 37:07Personal fitness journey
  17. 37:47Key takeaways
  18. 39:59Alternatives and resources
  19. 41:50Q&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.