Elixir Wizards cover image

The Bridge Between Elixir and Zig with Isaac Yonemoto

Elixir Wizards

00:00

Zig, Zigler - What's It Like to Write, but Then Debug a NIF?

Zigler is a bridge between elixir and zig, which makes it super easy to build niffs. You can write these little test blocks and then it executes the code only when you're testing. So if you return an error from a function inside of zig, zig has something called as error return trace. And what I've done is I've integrated that with elixir so that when that error exits the NIF and comes back into beam land, it will append the zig stack trace on top of the elixir sack trace. It's kind of like throwing an exception but there are some very key differences because zig is a low level language.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app