Google closure compatible
Farewell FRP
Signals
Subscriptions
Update
View
Model
Action
Change state
Change html
Update
View
Model
PROGRAM
Subscriptions
Subscriptions
subscriptions : Model -> Sub Msg
subscriptions model =
Sub.batch
[ Mouse.clicks MouseMsg
, WebSocket.listen
"ws://echo.websocket.org" WS_Msg
, Keyboard.presses KeyMsg
]
More speed
No time-travelling debugger
&
no hot-swapping
Action
Msg
becomes:
url = "someAddress"
makeQuery query =
let
url = url ++ query
in
url
Around 20-30% elm packages are thin wrappers on js plugins
Elm bindings for whole web-platform. Decrease need to use javascript interoperability!
Web platform in Elm
Erlang style of concurrency