Introducing Bundle Compiler
github.com
github.com
Handlebars -> JS/TypeScript compiler -> Bytecode -> JS probably anyway -> HTML seems like a lot of work.
See past discussion: https://news.ycombinator.com/item?id=14050625
1. How does render time compare to the same thing without the AOT compiler?
2. How does render time compare to React or Inferno?
3. Are Glimmer templates type safe, or are they plain old strings?
4. How do I consume compiled templates? It seems like I need to transform my code to use compiled templates as opposed to raw templates?
Seems like a perfect use case for WebAssembly once it's adopted. Instead of each framework creating their own bytecode implementation and VM to match it.
However, what they seem to be going for is a reduction of the time it takes to download and parse the code, so a specialized compressor makes sense. WebAssembly or the Binary AST proposal would change the calculation, but maybe it still works for them.