genetic

genetic algorithm framework
git clone [email protected]:dracuxan/genetic.git
Log | Files | Refs | README

README.md (441B)


      1 # NIF for Elixir.Random
      2 
      3 ## To build the NIF module:
      4 
      5 - Your NIF will now build along with your project.
      6 
      7 ## To load the NIF:
      8 
      9 ```elixir
     10 defmodule Random do
     11   use Rustler, otp_app: :genetic, crate: "random"
     12 
     13   # When your NIF is loaded, it will override this function.
     14   def add(_a, _b), do: :erlang.nif_error(:nif_not_loaded)
     15 end
     16 ```
     17 
     18 ## Examples
     19 
     20 [This](https://github.com/rusterlium/NifIo) is a complete example of a NIF written in Rust.