Skip to content

Instantly share code, notes, and snippets.

@oskimura
Last active December 19, 2017 07:53
Show Gist options
  • Save oskimura/8010245990b0ef0644b783aa1802e06b to your computer and use it in GitHub Desktop.
Save oskimura/8010245990b0ef0644b783aa1802e06b to your computer and use it in GitHub Desktop.

Elixer処理系

ElixerはErlangVMで動いている。 ErlangVMで動かす方法を知る必要がある。Elixirの前にErlangの場合について解説

beamファイルの作成

Erlangでのコンパイル

Elixirでは?

Elixerはコンパイラとインタプリタで処理の行われ方が違う。理由はErlangのAPIから。 コンパイルしてBeamファイルにする場合にはモジュールが必要。

Elixirのコンパイル

compile:noenv_formsを呼び出している

./lib/elixir/src/elixir_compiler.erl

./lib/elixir/src/elixir_module.erl

./lib/elixir/lib/module.ex

Elixirのインタプリタ

erl_eval:exprsを呼び出している

宣伝

reveal.jsを使う予定

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment