This post demonstrates how to run embedded Zig code with Elixir using the Zigler library. It covers the creation of a binary buffer in Zig that is consumed by Elixir, with a focus on computing and displaying the Mandelbrot set using a Livebook. The key code snippets for setting up the environment, compiling the Zig code, and processing pixel data are included.

5m read timeFrom zig.news
Post cover image
Table of contents
The algorithmElixir codeThe Zig code

Sort: