ReactiveConf 2017 - Tom Dale: Secrets of the Glimmer VM

Channel:ReactiveConf · Length:33:23 · Published:2017-11-20 · Views:2929

Watch on YouTube

Summary

Tom Dale explains the internals of the Glimmer VM, Ember's rendering engine, which compiles templates to opcodes. The talk includes a performance benchmark demo.

Why HN recommends it

HN points to it for understanding Glimmer and Ember's view layer, and as a reference for opcode-compiled templates.

you should not miss @tomdale's talk at ReactConf about GlimmerJS — HN, 2018

Web development · Compilers, interpreters & program analysis

Subtitles (excerpt)

[Music] hey everyone my name is Tom I work at LinkedIn I'm a software engineer there and I work on projects that make sure that our site feels fast for everyone and that includes customers in emerging markets like India and China where for many people their first time on the web is through the smartphone it might be the only way that they access the web so I want to talk to you about web performance and I know it's like a very common talk on the conference circuit these days but often when people talk often people talk about an app being fast or being slow but really there's no single fast or slow axis instead there's just a number of axes along which an app or a library can be fast or slow so I want to break these axes down into two broad categories the first is that we want to build an app that is lightweight that means that it's something that when the user taps a link to one of our URLs they're going to see something instantly but secondly we also want to build an efficient app we want to build something that feels incredibly responsive or sometimes native like people will call it once it's up and running and there's an interesting thing here which is that the two of these lightweight and responsive are often in tension

On Hacker News

Ember is the PostgreSQL of JavaScript frameworks. Similar to the way Postgres has deep roots that trace back to Ingres[1] in the days before SQL was a solidly established standard, Ember traces it roots back to SproutCore[2] in the JS framework pre-historic era of 2010. And the same way PostgreSQL was seen as a second-tier or only "historically significant" open source database, the PostgreSQL te… — mhale, 2018-01
This is a good development. Honestly one thing I very much think is a downside about React is the fact that your template is also JavaScript. Don't get me wrong this is incredibly powerful and can be very expressive, but it comes at a cost. That cost has the same cost as other JavaScript - it's blocking, cannot be paused and has all the possibilities of de-optimizations that might occur in the JI… — jonkoops, 2019-10
Yes, the runtime needs to be JavaScript. It’s not obviously faster, but it’s been benchmarked to be faster. [VIDEO] You can skip to 29:34 for the performance demo. — lightblade, 2018-11

Related videos