Lightning Talk - Native Code from Elixir
summary
Shows calling FFmpeg C libraries from Elixir via NIFs, using load_nif plus C functions like enif_get_string and enif_make to convert Erlang terms, and an example that extracts a format long_name from libavformat/libavcodec (ffprobe style). Notes real problems: long C work can block the BEAM scheduler (reductions ~2000) unless run on dirty schedulers, and a C crash kills the VM. Recommends using Rust/rustler for memory safety as an alternative.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:07Foreign Function Interface Program written in Language X interoperates
- 0:32Hello World
- 2:01FFmpeg C code from Elixir
- 3:17Segfaulting the BEAM
- 3:39Questions?
related talks
24mClixir - mixing C and Elixir code
09mLightning Talk: Using Embedded FPGAs for Custom Vector Extensions
30mBinding Native Plugins with Flutter and Dart
30m"UEFI Applications With Modern C++"
46mThe Joy of Connecting Elixir to the Physical World
11mLightning Talk: The CFU: Custom Hardware with RISCV and Zephyr
27mFreestanding Erlang Porting BEAM close to the metal.
52mPhysical Elixir
