ElixirConf 2021 - Isaac Yonemoto - Zig (heart) Elixir

Channel:ElixirConf · Length:48:10 · Published:2021-10-23 · Views:3948

Watch on YouTube

Summary

Isaac Yonemoto's ElixirConf 2021 talk on Zigler, a library for writing Elixir NIFs in Zig. He looks at its internals and how it bridges the two languages while keeping the NIFs well behaved on the BEAM.

Why HN recommends it

HN threads on Zig and Elixir link it as the creator's explanation of how Zig NIFs can behave nicely inside the BEAM.

The creator of Zigler has a talk from ElixirConf 2021 on how he made Zig NIFs behave nicely — HN, 2024

Functional programming · C, C++, Rust, Go & systems languages

Subtitles (excerpt)

[Music] [Music] thank you guys all for coming i feel really honored to be here and to give this talk uh um hope you guys are having a good time i guess this is like basically the next the last talk of the of the conference so uh thanks for coming to my to my room all right so um my talk is titled zig loves elixir uh and so uh let's get to it so i'll give you a little bit of background about me this is what i look like on the internet i've been programming since the 80s i am a former biochemist so i spent about a decade doing that sort of stuff you can find me on twitter at dnatics that's probably the easiest way to find me and occasionally i make these really strange elixir deep dive videos um going into deep deeply about how things like you know uh testing works in in ecto when you have async true which i think is really awesome by the way uh so if you don't know how that works uh you should look into it and maybe check out some of my videos um so how did i get to elixir so like i said i've been coding since the mid-80s uh but nothing real you know just educational learning how to code stuff uh my first real programs were in c and c plus plus in the early 2000s and then as the web started taking off

On Hacker News

There's a series of things that a NIF must do to be a good citizen. Not crashing is a big one, but also not starving the VM by never yielding (in case the NIF is long-running) is important, plus a few secondary things like using the BEAM allocator so that tooling that monitors memory consumption can see resources consumed by the NIF. The creator of Zigler has a talk from ElixirConf 2021 on how he… — kristoff_it, 2024-10
Really fascinating to see Zig being used to make Elixir cross platform! Exciting stuff. Here's a direct link to the ElixirConf talk: [VIDEO] — brightball, 2021-11
something that I don't understand about the actual API: I maintain the zigler library, and one thing that was useful about the old async "colored-but-not-really" functions was that they implicitly tolerate having internal suspend points (detail: [VIDEO] ) -- I'm not sure if having IO be a passed parameter will still let me do that? Can users build their own functions with yield points? And will y… — dnautics, 2025-07
RE: Elixir I have a feeling that the zig's i/o strategy will enable me to bring back the zig-async-dependent yielding nifs in zigler. I'm really hopeful io interface will have a yield() function, that would be even better! [VIDEO] — dnautics, 2025-07
Links for anyone curious. > Syntax highlighting here can work correctly, actually. Highlighting shown here in the 2021 ElixirConf talk posted elsewhere in the comments: [VIDEO] > I'm not sure why it's not better documented in Zigler Here's the docs for it (though buried in the 'advanced' section) [LINK] — h0l0cube, 2024-10

Related videos