5min chapter

Elixir Wizards cover image

The Bridge Between Elixir and Zig with Isaac Yonemoto

Elixir Wizards

CHAPTER

How to Write a Niff in Elixir?

The reason why it's easier to call C from Julia is one because Julia cares highly about high performance C. The priority for Elixir and the beam is different. So we care about having robust and high uptime systems. And so in order to accommodate that, there are a lot of things that the beam has to kind of put in the way of executing low level code. But what I, what I do with Ziglar is I read the function header that you provide to Ziglar,. saying I want this function to be mounted into my module. It reads that, it figures out what the types are and then does all that unboxing for you. You have gotten into the age old question

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode