~/talk

Making Existing Native Code Available in Kotlin

Talkat Kotlin/Everywhere Chicago 2019 · on Friday, 2019-08-23· [kotlin]
links:none on file
slides:none on file

Shows how to call existing C/C++ libraries from Kotlin two ways: Kotlin/Native uses JetBrains CInterop with a small .def file to generate a .klib that links to the shared lib so you only need one wrapper; compilation uses gcc flags like -fPIC -shared .dylib. JVM requires writing a JNI C wrapper (example named greeter_jni) and building two shared libraries, then running a self‑executable jar with java -Djava.library.path; provided examples compile and run and full code is on GitHub.

AI-written summary · about

  1. 0:00Intro
  2. 0:29C Interop on Two Platforms
  3. 0:52Let's Build A C Library
  4. 2:36C-Interop for Kotlin Native
  5. 5:43Using libgreeter.klib
  6. 8:19Kotlin JVM: JNI (Java Native Interface)
  7. 9:11Kotlin JVM: JNI Conversion Library
  8. 13:25Kotlin JVM: Using JNI Conversion Library
~/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.