News for hackers. Stuff that matters.
Re:Svelte – A UI framework that compiles into tiny standalon... by eob on Wednesday November 30, 2016 @11:03AM (#13071786)
Looks neat, but also like a non-standard implementation of Web Components, which, though slow coming, already have universal browser support with a small shim.

What's the advantage of this over something like Google's Polymer library, which is a toolkit for rapidly creating reactive web components?

Re:Svelte – A UI framework that compiles into tiny standalon... by netcommentator on Wednesday November 30, 2016 @11:17AM (#13071919)
Web Components (or Polymer) when combined with JSX is awesome: https://github.com/wisercoder/uibuilder

Shadow DOM lets you build reliable, reusable components.

Re:Svelte – A UI framework that compiles into tiny standalon... by boubiyeah on Wednesday November 30, 2016 @11:05AM (#13071811)
Polymer is an enormous library.
Re:Svelte – A UI framework that compiles into tiny standalon... by eob on Wednesday November 30, 2016 @11:07AM (#13071825)
Polymer offers a lot of UI widgets, which are enormous when you glob them together, but the base polymer library is actually incredibly small due to the fact that's it's leveraging the browser's native custom element functionality.

Can't reply to your comment so editing here:

Works natively on IE11+, Edge, Safari 9+, Chrome, Opera, Firefox, and mobile browsers. The polyfill for everyone else (webcomponents-lite.js) is 41kb.

Re:Svelte – A UI framework that compiles into tiny standalon... by boubiyeah on Wednesday November 30, 2016 @11:08AM (#13071839)
Ok, it has been some time since I checked. Don't you need lots of big polyfills ?
Re:Svelte – A UI framework that compiles into tiny standalon... by ergo14 on Wednesday November 30, 2016 @11:18AM (#13071931)
No - 95% of time you need that webcomponents-lite to get things working.
Re:Svelte – A UI framework that compiles into tiny standalon... by ergo14 on Wednesday November 30, 2016 @11:17AM (#13071918)
Thats completly untrue - polymer is close in size to jquery and a lot smaller than react core for example.
Re:Svelte – A UI framework that compiles into tiny standalon... by abdonrd on Wednesday November 30, 2016 @12:01PM (#13072377)
No, it's a little library. And smaller in Polymer 2.0. :)