Live data from Hacker News

Svelte – A UI framework that compiles into tiny standalone JavaScript modules

svelte.technology

191–200 of 236 posts

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#191
post #173

Earlier quoted context omitted.

Yeah the lack if a realistic benchmarking tool is a major part of this whole front end fatigue, is it just another project or can it realistically prove itself to be a real benefit for performance.

FWIW Rich Harris' other stuff is pretty solid: Ractive, Rollup, Bublé.

I agree. Ractive is very cool, and with a little luck could have been the hotness that vue.js has developed into.

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#192

TodoMVC is a useless benchmark for the problem that this claims to be addressing. The limits we're hitting with our applications now are with BIG applications, with many routes, many views, and lots of client side logic. We're talking hundreds of files (in some cases, thousands). Of course a framework, with it's fixed overhead, is going have a bigger payload for a tiny demo app like TodoMVC, than something like this…

I find wrong that most frameworks do not include any component library. Even if there is a vibrant community, you end up with 30 dependencies which do not play well together.

I'm the author of a commercial framework for BIG applications [1]. Once you put everything on the table you can see which features should go into the framework and you end up with things like localization, date/number formatting, form validation, keyboard navigation, layouts, tooltips, routing, modals, etc. Once you have all that, you can build a coherent widget/charting library on top of it.

[1]: http://cx.codaxy.com/v/master/docs/intro/feature-list

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#193
post #121

Earlier quoted context omitted.

Wow. How can someone even understand it like that! No way. I actually meant what I wrote and im not really worried about what someone else might think about my comment. Cause it's way way softer.

Even if someone doesn't like it AND doesn't use it, they can still tell the world how they think about it. You could have written your comment without that sentence and it would still convey your opinion :)

hmm good point though

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#194

This looks interesting. For the past 3 years I've been using ractivejs and really enjoy it. I'm wondering if Svelte will take away development efforts from ractivejs? OT >The web's obesity crisis, solved. Svelte turns your templates into tiny, framework-less vanilla JavaScript. Made me think of [idlewords][1] website obesity presentation... [1]: http://idlewords.com/talks/website_obesity.htm

I think Rollup already took time away from Ractive. It's really too bad, I think Ractive has some great ideas and I really enjoyed working with it. It was the best way to build web UIs I've come across. But I feel its future is uncertain so it's hard to recommend others begin using it.

Actually, ractivejs as it is right now is pretty mature, so I will still use it. The ecosystem and momentum behind it could suffer from a _shift in focus_ from /u/rich_harris- the creator of both libs- but the library has flown under the radar all this time so I feel it might not be a huge change.

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#196

Earlier quoted context omitted.

I think Rollup already took time away from Ractive. It's really too bad, I think Ractive has some great ideas and I really enjoyed working with it. It was the best way to build web UIs I've come across. But I feel its future is uncertain so it's hard to recommend others begin using it.

> I feel its future is uncertain so it's hard to recommend others begin using it. Self-fulfilling prophecy unfortunately.

Perhaps, but at least to the team I was working with at the time, Rollup indicated we shouldn't expect much to change or improve in Ractive. I think Ractive was partially a victim of timing; as Harris himself has said, it has many of the same ideas as React and he may well not have made it if React existed when he began. And it never really seemed to gain much popularity which you kind of need for a project to grow beyond just its creator. I still haven't investigated this new thing, but if it was indeed inspired by Ractive that gives me hope.

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#198

I love the ideas. The only other thing I like is CSS scoping, though. I think that CSS scoping is a problem in React, and current ideas on how to implement that in React are absolutely horrible IMHO. Two-way binding is a step back I think, I don't love the name (lots of people will judge a new technology by its name), and the thought of introducing yet another framework is a nightmare. I'd personally go with Polymer…

> Two-way binding is a step back I think You don't have to use it – its effects are restricted to the subtree where you've explicitly opted in to it. I've personally found it to be a huge timesaver, and would never go back to a world where I didn't have the option of using it. But you're in no way forced into it. > I wonder if these ideas can be somehow applied to React A lot of people have wondered that, including m…

> Unfortunately, a compiler wouldn't be able to generate a good picture of the structure of a JSX component – because it's 'just JS' it resists the kind of meaningful static analysis that Svelte can take advantage of.

Can you elaborate more on this? It seems like passing the compiled JS through Esprima and checking the call graph would give you a fairly detailed structural representation of a JSX UI. You may need to do some graph stitching across module boundaries, haven't tried this myself.

What static analysis does Svelte provide?

Re: Svelte – A UI framework that compiles into tiny standalone JavaScript modules

#200

Earlier quoted context omitted.

> I feel its future is uncertain so it's hard to recommend others begin using it. Self-fulfilling prophecy unfortunately.

Perhaps, but at least to the team I was working with at the time, Rollup indicated we shouldn't expect much to change or improve in Ractive. I think Ractive was partially a victim of timing; as Harris himself has said, it has many of the same ideas as React and he may well not have made it if React existed when he began. And it never really seemed to gain much popularity which you kind of need for a project to grow b…

>but if it was indeed inspired by Ractive that gives me hope

Actually, I would like to see the author's thoughts on ractive vs svelte. From the outside svelte is very reminiscent of ractive.

[EDIT] +\n

Post reply on HN