Skip to content
0:00 / 0:00

#elixir#zig#nif

Why Zig is a great language for Elixir Nifs: Vol. 2

E-xyza

1.1K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Linked in the descriptionityonemo/zigler

Advanced. Deep dive for people who know the field.

1.6K views5 years ago2 recommendations

Programming languagesSystems programmingElixir and ErlangZig

An explanation of long-running NIF models in Elixir and how Zig can be used to implement them safely.

Where I discuss the different long-running NIF models and how zig can give you options to use any of them depending on what your needs are. Zigler Library: github.com/ityonemo/zigler/ (0.7.0, which is in the video wip) Volume 1 (memory management): youtu.be/IM_tO8hQgKA

Why it's here

2 people recommend this

What people say. Recommended for understanding the differences between Elixir NIF models and how Zig simplifies writing them.

u/kristoff-itin r/Zig • Recommends

Why Zig is a great language for Elixir Nifs: Vol. 2

u/dnauticsin r/elixir • Recommends

On “Image processing with C and Elixir (Help)”

Check out zigler, too. I'm releasing 0.7.1 next week which will have threaded nif support. If you want to understand the difference: link to this video Threaded nifs might be appropriate for your image use cases. And if you're familiar with C, zig is a friendlier language than rust.

u/dnauticsin r/Zig • Mentions

On “Concurrency in Zig?”

…gned to have an interface that makes it look like async/await in rust. But unlike rust, there is a much lower level of granular control going on. If you want parallel, there are threading functions in the std too that will usually hook into the OS's threading calls. I'm excited because zig is likely to offer some extreme performance benefits: [video And also, because the system is agnostic and low level, if you prod at it, you can figure out how to get zig to play nice with other language's schedulers, and even fit the other language's primitives into the bits and pieces that zig's stdlib expects: [video…