
Erlang Solutions
2 HN recommenders · recommended in 5 months, 2016–2022
55:28 · 23K views · Mar 11, 2016
A joint Erlang Factory 2016 keynote by Phoenix creator Chris McCord and Elm creator Evan Czaplicki on using the two together, including Phoenix.Presence design and PubSub optimizations.
Pointed to as the best source on Phoenix Presence internals and for combining Phoenix with Elm.
6 comments from Hacker News
Speaking of Elm I liked this video from Erlang Factory about using Phoenix and Elm together. They both have a functional flavors so I think it might appeal to same people: this video The first half is about Phoenix, the second about Elm. I don't know much about front-end stuff but I did like the Elm bit as an intro, especially the debugging and nice error messages part.
My Erlang Factory keynote also goes into the design considerations and PubSub layer optimizations that sits underneath Phoenix.Presence: this video
There is a nice talk from Erlang Factory 2016 called "Making the Web Functional with Phoenix and Elm" this video
The Phoenix Framework (web framework for Elixir) already solves this for you.[1] It's called Phoenix.Presence. They used a combination of CRDTs with heartbeats to implement it. You are right, it is a hard problem because of the distributed nature of Erlang/Elixir. That's why Chris provided a framework level solution for it. [1] this video (Erlang Factory SF 2016 Keynote Phoenix and Elm – Making the Web Functional)
I wonder if the same might happen to Elm, should Phoenix adopt it as their browser language of choice. There's definitely a connection there -- for what it's worth, the keynote at 2016's Erlang Factory conference was a shared talk between Chris McCord (creator of Phoenix) and Evan Czaplicki (creator of Elm), "Making the Web Functional" [0] [0] this video