Skip to content

plops/cl-elixir-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      • dyntrace module
    • 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

Changelog

20210123incompatible change in receive semantics, old behaviour available as semantics_old

Examples

commentlink
01_firstlearn about semantics
02_mix_introtry mix with buckethttps://elixir-lang.org/getting-started/mix-otp/supervisor-and-application.html
03_phx_introstart phoenix example (no live)https://hexdocs.pm/phoenix/up_and_running.html
04_bookfailing to find interesting example, some emacsseveral books
05_todoHow to Create a Todo List with Phoenix LiveView (Updated for Phoenix 1.5)https://www.youtube.com/watch?v=xgz-HTot3R8
06_liveChris McCord - Keynote: Phoenix LiveViewhttps://www.youtube.com/watch?v=8xJzHq8ru0M
07_excercisesome basic exampleshttps://github.com/seven1m/30-days-of-elixir
08_minimal_livetranslate live app that mix generates into s-expressions
09_minimal_live_2modify 08 to do something useful

Reminder

  • 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}])

About

s-expression to elixir language converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published