News for hackers. Stuff that matters.
Re:Ember's Glimmer Engine by cfontes on Tuesday March 03, 2015 @03:41PM (#9140572)
Never used ember but that deserves a pretty complete write up about what was done and how.

Nice work.

Re:Ember's Glimmer Engine by steveklabnik on Tuesday March 03, 2015 @04:02PM (#9140723)
Here's a TL;DR:

A handlebars template might look like this:

    <div class="foo">
      {{#if enabled}}
        <p>I'm enabled!</p>
      {{#end}}
    </div>
The usual DOM-diffing algorithm compares every single thing: "has this div changed? Has the class changed? Has the <p> changed?"

This uses the knowledge of Handlebars to make the diffing algorithm smarter: you don't need to check if the <div> or its class has changed, it never will. You don't need to check if the <p>'s contents have changed, it never will. This means less to diff, which means more speed.

This is the advantage of using a declarative syntax for templating: this analysis can be done entirely at compile time.

Re:Ember's Glimmer Engine by searls on Tuesday March 03, 2015 @04:14PM (#9140798)
Thanks for the concise description. Love to see Team Ember take advantage of the information users are already feeding the existing public API.
Re:Ember's Glimmer Engine by ssutch3 on Tuesday March 03, 2015 @05:10PM (#9141134)
I imagine we'll get something soon. Ember is having it's developer conference this week, and they were planning on announcing this and I believe something related to a server-side trampoline of sorts.
Re:Ember's Glimmer Engine by steveklabnik on Tuesday March 03, 2015 @05:32PM (#9141261)
This link was posted short after the keynote, this was announced, as well as more information about FastBoot, the thing you're talking about: http://emberjs.com/blog/2015/01/08/inside-fastboot-faking-th...
Re:Ember's Glimmer Engine by rxcfc on Tuesday March 03, 2015 @05:37PM (#9141285)
Some information can be seen at the PR for Glimmer: https://github.com/emberjs/ember.js/pull/10501.