~/talk

Go vs Elixir: A concurrency comparison

Talkat Code BEAM SF 2019 · 2019-02-28..03-01· [go]
links:none on file
slides:none on file

Direct comparison of concurrency models: actor model (Elixir/Erlang on the BEAM) uses millions of isolated processes with mailboxes, asynchronous messaging, supervisors for “let it crash” fault tolerance and preemptive scheduling; CSP (Go) uses goroutines plus typed channels, synchronous sends, select for choice, buffered channels (example used a buffer of 16) and cooperative scheduling that can block the program. Demonstrations include a Go “gen_server” style counter (worked but felt awkward) and an Elixir-backed channel queue; Go programs compile to ~2MB binaries vs ~20MB for a minimal Elixir release.

AI-written summary · about

  1. 0:00Introduction to speakers
  2. 1:32Defining concurrency
  3. 3:56Concurrency vs parallelism
  4. 6:14Challenges with threads
  5. 9:37The Actor Model in Elixir
  6. 14:40CSP in Go
  7. 17:48Implementing Go routines
  8. 21:34Using select in Go
  9. 24:54Go's implementation details
  10. 27:16Go programming rationale
  11. 29:48Comparing models
  12. 32:04Bridging model gaps
  13. 33:21Implementing GenServer in Go
  14. 39:00Conclusions and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.