この記事はElikir Advent Calendar 2015の7日目の記事です。 ETSとは Erlang Term Storage の略で、etsモジュールを経由してin memoryなテーブルにtupleを保存できる仕組みです。 子プロセス間でデータを共有できますが、ネットワーク越しの共有はできません。 ドキュメントはこちら。 http://www.erlang.org/doc/man/ets.html REPLから使ってみる iexでREPLを起動しデータを登録したり取り出してみたりします。 新しいテーブルを作成 iex(1)> table = :ets.new(:temp_table, [:set, :protected]) 8211 :ets.new/2で新しいテーブルを作成してETSのPIDが返ります。1個目の引数はテーブル名のatom、2個目はテーブルの定義をatomのl
Erlang's Internal Data Representation Jun 28 th , 2016 5:12 pm I find it interesting how the Erlang BEAM engine represents data in memory. Quick look: An Erlang list This is the in-memory layout of the Erlang list "phi" . [112, 104, 105] As a reminder, Erlang treats a string as a list of small integers; 'p' , for instance, is 112 . Don’t worry too much about the bitwise details of the diagram - we
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く