Re:The Glimmer VM: Boots Fast and Stays Fast
by chubot on Thursday April 06, 2017 @07:23PM
(#14055651)
OK thanks, that helps. It sounds potentially interesting but in its early stages.
Re:The Glimmer VM: Boots Fast and Stays Fast
by steveklabnik on Thursday April 06, 2017 @07:48PM
(#14055772)
No problem!
It is and it isn't; that is, all of this is extracted from Ember, so it has had a lot more maturity and testing than you might think at first. Not _super_ so as it's still relatively new, but deployed in lots of big places.
As the article mentions, this technique is distinct from virtual DOM. The article is light on what specifically it does though. From the article:
> I'll describe the details of this approach in another post, but the short version is that we compile templates into "append-time" opcodes for a bytecode VM. The process of running the "append-time program" produces the "updating program", which is then run every time the inputs change.
anyway.
> If anything it sounds like there are a lot of other components besides the VM, which weren't really described in the blog post, and I couldn't find any links.
There's a little bit; that is, this post is specifically about Glimmer's VM; Glimmer itself has a few more things, just like React is more than just a virtual DOM implementation. In Glimmer's case, there's glimmer-component, which lets you write web components, and glimmer-application, which lets your register your components into a cohesive whole, etc.
TL;DR: Glimmer as a project is similar to react. It has some significant and novel implementation details that keep it speedy.