Re: [elm-discuss] Optimisation in Elm

2017-04-23 Thread Peter Damoc
Hi Ana, 1. Elm is fast because it use a very fast implementation of a virtual dom. 2. Elm compiler outputs JavaScript so all the low level memory concerns are handled by the JavaScript VM, not by Elm 3. No, Cmds do not influence the purity of Elm. If a function returns Cmds, it will always return

[elm-discuss] Optimisation in Elm

2017-04-22 Thread Ana Borovac
Hi, I have some theoretical questions: - why is Elm so fast? is there some kind of tail-recursion behind or is this just the part that JavaScript does? - how is the storage mastered (garbage collection)? - does commands (Cmd) influence on pureness of Elm? Thank you so much for your help! Ana