Erlang/Elixir精選-第6期(20200113)

精選文章

  1. Implementing languages on the Erlang VM. -Robert Virding.

    因爲視頻沒有顯示PPT,PPT可以在點擊這裏下載

    • leex - lexical scanner generator
    • yecc - parser generator
    • syntax tools - for building erlang code
    • XML parsers (xmlerl)
    • compiler
  2. Profiling in Erlang.

    fprof,eprof,cover,cprof,top,eep,recon,eflame,eflame2工具列表。

  3. 列表解析不爲人知的高級炫技

    比如:

    2> [1 || 1].
    []
    3> [something || nothing].
    []
    4> [2 || []].
    []
    5> [x || 1, 2, 3].
    []
    6> [1 || true].
    [1]
    7> [wat || 1 == 1].
    [wat]
    8> [2 || true, true, true].
    [2]
    9> [3 || true, false, true].
    []
    10> [throw(x) || false, throw(y)].
    []
    11> [throw(x) || true, throw(y)].
    ** exception throw: y

歡迎來語雀投稿或推薦,精選每週一發布,同步更新在語雀博客園

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章