Re:Elm and Phoenix/Elixir in Production for France TV
by Skinney on Sunday October 16, 2016 @02:04PM
(#12719950)
The way Elm outputs JS today, it doesn't really have much to gain from being Closure compliant. Even uglify manages to remove most dead code from an Elm "blob", because Elm outputs javascript with a single scope. An Elm app is smaller than both a Cljs+React(om, reagent) and a JS+React app.
[ Parent
| on HN ]
Re:Elm and Phoenix/Elixir in Production for France TV
by hellofunk on Sunday October 16, 2016 @02:48PM
(#12720236)
Dead code elimination is only part of the benefits of Closure. The advanced compilation mode does a lot to optimize the final JS.
Re:Elm and Phoenix/Elixir in Production for France TV
by bjz_ on Sunday October 16, 2016 @04:34PM
(#12720784)
I haven't had much luck the the advanced setting for Elm - seems to optimise too much away, and I get undefined field errors when I try to run the code.
Re:Elm and Phoenix/Elixir in Production for France TV
by hellofunk on Sunday October 16, 2016 @05:55PM
(#12721212)
That's because Elm does not output JavaScript in the standardized format for Closure.