Elixir in the Browser
summary
Elixirscript compiles Elixir AST into ES2015 JavaScript and ships a JS runtime that implements atoms via Symbol.for, lists→arrays, tuples as a Tuple class and a custom pattern matcher (replacing the slow forked funy). Demos show a React canvas app using an Agent to reproduce Redux semantics and a working React Native hello world. Compiler speed improves by avoiding a JSON round trip to escodegen (previous builds took ~20s). Missing: bitstring pattern matching, full macro and protocol support, processes.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:30Elixir Screw
- 8:03Elixir Script
- 10:55Functions
- 12:45Modules
- 17:00Embrace the environment
- 18:25Elixir script module
- 19:35Demos
- 24:35Updating State
- 26:05React Native
- 27:40Future Project
related talks
35mUsing Elixirscript
20mJavaScript Transformation
45mEmscripten
22mHologram: The Journey to Local-First Elixir in the Browser
57ma Guided Introduction to Elixir - Part 2 of 6
01h 02mWant es.next Now? Traceur Your Way Back to ES5 and Feel the Harmony
52mES2015: Using tomorrow's JavaScript today!
26mElegant React with ES6 (and a bit of ES7)
