pelemay v0.0.0 API Reference

Modules

Provides optimizer for anonymous functions.

Provides a optimizer for AST

Pelemay: The Penta (Five) “Elemental Way”: Freedom, Insight, Beauty, Efficiency and Robustness

For example, the following code of the function map_square will be compiled to native code using SIMD instructions by Pelemay.

Documentation for Hastega.Generator.

defpelemay do
  def cal(list) do
    list
    |> Enum.map(& &1 + 2)
  |> Enum.map(fn x -> x * 2 end)
end

#=>
def cal(list) do
  list
  |> PelemayNif.map_mult
  |> PelemayNif.map_plus
end

SumMag: a meta-programming library for Hastega and Cockatorice.

Mix Tasks