Skip to content

Instantly share code, notes, and snippets.

View bratsche's full-sized avatar

Cody Russell bratsche

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bratsche on github.
  • I am bratsche (https://keybase.io/bratsche) on keybase.
  • I have a public key ASB1iVAvshnnFu_8fyzVI-1OBhcehQUwyy_ScHu7enY-TAo

To claim this, I am signing this object:

@bratsche
bratsche / index.ex
Last active August 23, 2023 16:42
Phoenix LiveView 0.17 table
defmodule ExperimentsWeb.ComposerLive.Index do
use ExperimentsWeb, :live_view
import ExperimentsWeb.ComposerLive.Table
alias Experiments.Composers
alias Experiments.Composers.Composer
@impl true
def mount(_params, _session, socket) do
@bratsche
bratsche / notes.txt
Created December 11, 2023 16:25
Notes for why I think Elixir is worth using
Notes on why I think Elixir is worth using for us
* Phoenix Channels - able to support 2 million concurrent clients on a single server.
* Node.js has an equivalent feature called SocketIO
* Ruby on Rails has an equivalent feature called ActionCable
* Not aware of any similar feature in Python
* Concurrency
* Ruby, restricted by a GIL
* Python, restricted by a GIL, but there is a proposal to remove it. Not sure how long it will take to remove it.
* Node.js, single-threaded async