sudo dnf install elixir
- start interactive elixir session `iex`
- quit elixir `press C-c twice`
- run elixir from file `elixir sample.exs`
- format elixir file `mix format sample.exs`
- https://www.youtube.com/watch?v=OR2Gc6_Le2U&feature=youtu.be
- 2019 fred herbert
- sys:trace
- sys:log 27:40
- sys:get_status
- microstate accounting
- recon_trace:calls
- sudo perf top -p `pgrep beam`
- dtrace, systemtap
- property-based testing with PropEr, Erlang and Elixir
- rebar3 shell
- iex -S mix test
- IEx.pry()
- https://www.youtube.com/watch?v=JvBT4XBdoUE
- sasa juric
- shows how erlang/beam can be debugged
| |
20210123 | incompatible change in receive semantics, old behaviour available as semantics_old |
| |
| |
- these are the same, I always forget this. a list of tuples in elixir
is like an alist in common lisp.
render(conn, "world.html", name: name)
render(conn, "world.html", [name: name])
render(conn, "world.html", [{:name, name}])