2 ms·
Just throwing my side project, Surplus, out there as another example of this strategy (https://github.com/adamhaile/surplus https://github.com/adamhaile/surplu
by curveship 9y ago
Just throwing my side project,
Surplus, out there as another example of this strategy (https://github.com/adamhaile/surplus https://github.com/adamhaile/surplus). Surplus compiles JSX into optimized code that produces real DOM elements. The combination of an ahead-of-time compiler plus no virtual DOM layer means that the runtime code only has to do the minimal, truly dynamic work.
As a result, Surplus is the fastest framework in Stefan Krauss's latest js-framework-benchmark (http://www.stefankrause.net/wp/?p=431 http://www.stefankrause.net/wp/?p=431).
DSLs are powerful, compiler support can make them fast.