Lightning Elm 0.17

 

What's new?

What's same?

What's lost?

+ Pros +

 + Pros + 

Google closure compatible

 + Pros + 

Farewell FRP

Signals

Subscriptions

Elm architecture

Update

View

Model

Action

Change state

Change html

Elm architecture

Update

View

Model

PROGRAM

Subscriptions

 + Pros + 

Subscriptions

subscriptions : Model -> Sub Msg
subscriptions model =
  Sub.batch
    [ Mouse.clicks MouseMsg
    , WebSocket.listen
        "ws://echo.websocket.org" WS_Msg
    , Keyboard.presses KeyMsg
    ]

 + Pros + 

More speed

- Cons -

- Cons -

No time-travelling debugger

&

no  hot-swapping

- Cons -

Action

 

Msg

becomes:

Runtime Error ];>

url = "someAddress"

makeQuery query =
  let
    url = url ++ query
  in
    url

Where is Elm heading?

Current

Around 20-30% elm packages are thin wrappers on js plugins

Direction

Elm bindings for whole web-platform. Decrease need to use javascript interoperability!

MISSION

Web platform in Elm

  • Http
  • Geolocation
  • Web sockets
  • to be continued...

MISSION

Erlang style of concurrency

  • lightweight proccess
  • event query
  • message sending

Thank you very much

Bartosz Szewczyk

@sztobar

Made with Slides.com