2 ms·
I like this trend that I am seeing, even if Project X isn't for me, the fact that both Vue.js and Svelte have kicked off a newer perspective of strong compile t
by no_wizard 7y ago
I like this trend that I am seeing, even if Project X isn't for me, the fact that both Vue.js and Svelte have kicked off a newer perspective of strong compile time (or bundle time, if you prefer) optimizations, due in large part to their realized benefits (and why I think they're both rising in developer mindshare popularity, even though I think Vue's install base is many factors time bigger then svelte's, svelte is the baseline now for performance metrics to be measured against from what I can tell)
This has inspired me to work on in my spare time a Web Components compiler for optimized at compile time custom elements (and other features) kind of like Stencil JS, but I want to use Babel as to not alienate those who don't use typescript. I'm also considering what the compilation target should be (currently I'm toying with Lit HTML, but I've looked at Incremental DOM too, or forking my own thing based on it, because Google's lack of communication around it makes me nervous.)
This is what I feel like the bundler promise is ultimately the most logical extension of, highly optimized compiled components that frameworks/libraries can hook into (the compiler, I mean) to highly optimize their builds without the developer having to worry and fret about whether their build is setup properly to be the most performant
This is my opinion of course, and its entirely possible this started long before Vue or svelte even existed, but I'm excited to see more of this now.
I feel like its what Handlebars was suppose to be, but I don't know if it ever lived up to that hype, especially performance wise (in the browser. I know its popular server side, where the performance concerns are a bit different).
EDIT: Just a heads up, it appears they're using a bit of eval (view `new Function([...args])`[0] under the hood. I'm personally not a fan of this . Too many security related edge cases not to be considered risky. I'm open to the fact I could be wrong though.
[0] https://github.com/calebporzio/project-x/blob/master/src/utils.js https://github.com/calebporzio/project-x/blob/master/src/uti...
- spankalee 7y agoYou really don't need a compiler to be fast. A fast architecture is really the first order concern. lit-html generally beats Svelte and Vue at performance, but has no compiler.