Anybody tried out Svelte framework yet?
-
Well, I’m wondering what he measured now too.
Svelte
React
Scott
-
But, overall, really not worth talking about.
Scott
-
I saw this tweet:
https://twitter.com/youyuxi/status/1184824857663594499
I hope Evan is right.
For the foreseeable future, I’m sticking with Vue :).
-
Recently, I saw an extensive test comparison between Angular, React, Vue 2.x, Vue 3 (Beta) and Svelte.
Svelte was the fastest all around.
Then it was Vue 3. Very close to Svelte, except the load time. Obviously Vue library makes it larger.
Then it was Vue 2
Then React
Lastly Angular. It had the longest load time.So yeah, Vue 3 should be a game changer especially running on Mobile.
-
Haha those poor folks who spent all that time learning Angular.
-
@s-molinari said in Anybody tried out Svelte framework yet?:
You can’t do anything with Svelte without its compiler.
How is this an argument? Svelte IS the compiler. The counter-argument would be “You can’t do anything with Vue without the Vue framework.”
-
@necmettin said in Anybody tried out Svelte framework yet?:
@s-molinari said in Anybody tried out Svelte framework yet?:
You can’t do anything with Svelte without its compiler.
How is this an argument? Svelte IS the compiler. The counter-argument would be “You can’t do anything with Vue without the Vue framework.”
I believe he meant the distribution options of Vue. You can use production Vue in “runtime” mode, or in “full” mode - with Vue compiler. More here:
https://vuejs.org/v2/guide/installation.html#Explanation-of-Different-Builds
IMHO argument stands. Not that it matters, but technically it is valid.
-
@necmettin @qyloxe is correct.
Scott
-
To that point too, Svelte isn’t a library or framework, but rather a language extension.
Scott
-
@s-molinari said in Anybody tried out Svelte framework yet?:
To that point too, Svelte isn’t a library or framework, but rather a language extension.
Scott
That’s what Rich Harris himself said: https://gist.github.com/Rich-Harris/0f910048478c2a6505d1c32185b61934
-
Yup. I read that too.
It’s also important to note that performance is only one part of the pie. I think developer experience (also known as DX) is important too.
Although Svelte follows the similar path of SFC’s like Vue, and I truly believe this format for setting up your code is easier to reason about overall (so good for DX) than mixing JS with HTML, there are situations where going down to render function level is also necessary and that is where Svelte, I believe, misses out. Its
@html
directive is nothing like what is needed from what I can tell. I can only imagine such “html in JS” code will look mofugly and even harder to reason about than some of the bad React JSX code out there.Anyone whose used Svelte at any kind of advanced level, please do chime in and correct me, if I am wrong.
Scott