nimler

Erlang/Elixir NIFs

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 4.6.0
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-31 04:57

Tags

Authors

  • wltsmrz

Installation

nimble install nimler
choosenim install nimler
git clone https://github.com/wltsmrz/nimler

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
nimler - - - - - - -

Dependencies

Package Version Optional
nim >= 1.2.0 No

Source

Repository https://github.com/wltsmrz/nimler
Homepage https://github.com/wltsmrz/nimler
Registry Source nimble_official

README

nimler

Nimler is a library for authoring Erlang and Elixir NIFs in the Nim programming language. It has mostly complete bindings for the Erlang NIF API and some accessories for making writing NIFs easier, including idiomatic functions for converting between Erlang terms and Nim types, and simplifications for using resource objects.

Mostly, Nimler is a minimal, zero-dependency wrapper for Erlang NIF API.

Build status

Target Status
x86_64-linux
arm64-linux
$ nimble install nimler

Documentation

Nimler is documented at smrz.dev/nimler.

Sample

import nimler

func add(env: ptr ErlNifEnv, a: int, b: int): (ErlAtom, int) {.xnif.} =
  (AtomOk, a + b)

func sub(env: ptr ErlNifEnv, a: int, b: int): (ErlAtom, int) {.xnif.} =
  (AtomOk, a - b)

exportNifs "Elixir.NifMath", [ add, sub ]