29) ElixirConf 2017 - Well Behaved Native Implemented Functions for Elixir - Andrew Bennett

elixirconf2017
#1

ElixirConf 2017 - Well Behaved Native Implemented Functions for Elixir - @potatosalad

Native Implemented Functions (NIFs) are a powerful way to call native functions written in C, C++, Rust, Haskell, and more! However, special attention must be given to avoid destabilizing the Erlang VM. We’ll review examples of misbehaving NIFs and how to measure their negative effects on the Erlang VM scheduler. We’ll then explore patterns for well-behaved NIFs, including: timeslice reductions, dirty schedulers, I/O events, and threads. We’ll also explore the new features introduced in Erlang/OTP 20 and take a look at future plans for the NIF.

Audience: Intermediate-Advanced

All talks are available in the Elixir Conf 2017 Talks List or via the #elixirconf2017 tag

6 Likes

#2

This is a talk I’m going to rewatch anytime I need to interface with lower level code. This is hardcore and handy!

3 Likes