Minimal example of the usage of Nifs in Elixir
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
native_lib
test
.gitignore
README.md
mix.exs

README.md

Nativly

Small and simple elixir application demonstrating the usage of [Nifs] from Elixir, containing the examples from thei "Using C++ from elixir with nifs" blog post.

Installation

In order to build the native C++ code you will need the following:

  • g++ compiler
  • The Erlang dev package which contains <erl_nif.h>

Usage

Checkout the lib/nativly.ex file, it contains the nifs. Checkout the native_lib/nativly.cpp file, it contains the actual native implementation of the nifs.