News for hackers. Stuff that matters.
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.
Re:Elm and Phoenix/Elixir in Production for France TV by Skinney on Monday October 17, 2016 @07:45AM (#12724182)
Closure doesn't really have a standardized format. It does, however, not like that you mix string and dot access for object (obj['str'] vs obj.str), which Elm does a couple of places.