zigler
zigler copied to clipboard
zig nifs in elixir
- beam - e - nif - Allocator - Resource - root - threads - load - entry - exported_nifs
https://github.com/ziglang/zig/pull/9623
main: ``` const foo = @import("foo.ex") pub const bar = foo.bar; ``` foo: ``` pub const bar = struct{...} ```
Using this simple example: ``` defmodule ZiglerDemo do use Zig, otp_app: :zigler_demo ~Z""" pub fn example_fun(value1: f64, value2: f64) bool { return value1 > value2; } """ end ``` I...