News for hackers. Stuff that matters.
Re:Show HN: I built a 4kb alternative to React, Vue, etc for... by turtlebits on Friday January 08, 2021 @12:05AM (#25681702)
Looks nice. Svelte is also <4kb, but it is compiled.
Re:Show HN: I built a 4kb alternative to React, Vue, etc for... by thunderbong on Friday January 08, 2021 @03:19AM (#25682714)
I also feel that Svelte has taken the best of many worlds.

Most front-end Javascript frameworks rely on either declarative widgets or some contrived implementation of HTML / CSS with a build step to get the developer's code to render in the browser.

Svelte's approach to sticking extremely close to traditional HTML / CSS & JS, and then compiling everything together, in my opinion, makes it much more approachable and maintainable.

Re:Show HN: I built a 4kb alternative to React, Vue, etc for... by rhengles on Friday January 08, 2021 @12:07PM (#25686843)
I think Rich Harris is to front-end as John Carmack is to games development, and no doubt Svelte is a marvel of technology, however I dispute the notion that it is more close to "traditional html / js / css" than either React or Vue. For example, most frameworks use webpack which extend es6 module syntax in a way that they don't work natively in the browser without compilation, and I don't think Svelte is any better than them in this regard.
Re:Show HN: I built a 4kb alternative to React, Vue, etc for... by BatteryMountain on Friday January 08, 2021 @10:13AM (#25685436)
Svelte also feel a lot like using Knockout which was/is great (although its not a full framework)!
Re:Show HN: I built a 4kb alternative to React, Vue, etc for... by mizzao on Friday January 08, 2021 @01:42AM (#25682211)
Would be also interested in a deeper comparison to Svelte here.
Re:Show HN: I built a 4kb alternative to React, Vue, etc for... by defx on Friday January 08, 2021 @06:54AM (#25683718)
Thanks for your interest Mizzao. Svelte is a cool project, and the discussion RE buildtime vs runtime raise some great questions RE trade-offs. What I would say is that neither project would be the right choice for every use case. Svelte is very feature rich and provides more of a “batteries included” framework approach, whereas Synergy has a much smaller feature set and scope which leaves flexibility and choices in other areas. In this sense, Synergy is easier to compare feature-by-feature with a library of smaller scope such as Preact.