Live data from Hacker News

Riot – A React-like, 2.5K user interface library

muut.com

11–20 of 222 posts

Re: Riot – A React-like, 2.5K user interface library

#12

Oh a new Javascript framework. I'd been getting worried, it'd been 40ms since the last one.

They do seem to be getting closer to sanity with each one though. With the advancements in browsers, in a few years the experience of web development may not be completely awful!

Re: Riot – A React-like, 2.5K user interface library

#13
post #11

Does this support nesting custom tags? How do I communicate between different tags? Is the opts variable accessible outside the definition of the tag?

Unlimited nesting is supported. You pass options with HTML attributes:

  

  this.data = { foo: 'bar' }

Re: Riot – A React-like, 2.5K user interface library

#15
Looks nice. React really is more of a pattern or (if you will) a design philosophy, so anything along those lines is appreciated. However, I don't think being ~10x smaller is enough. It needs to be ~10x better as a whole, which in my view it isn't. The improvements seem more cosmetic than substantial.

Re: Riot – A React-like, 2.5K user interface library

#16
Looks promising. Is this battle-tested yet? I.e. is there a web app with a non-trivial amount of traffic that is using Riot at the moment?

The main selling point of React is that it is actually tested against millions of users and browser configurations as a part of Facebook UI.

Re: Riot – A React-like, 2.5K user interface library

#17

Hey, I'm just curious about performance with fucking large app. It's always the main issue for me, a todo list can't show use performance. If your framework is fast with 3 items in a list, what's the point with, like, 1000? I'm gonna try

Haven't tried with such large datasets. Very curious about the results!

Should be fast, since Riot uses compiled and cached expressions and updates DOM nodes only if there is a change.

If there is a performance bottleneck, it can be fixed.

We'll be doing performance tests and comparisons later.

Re: Riot – A React-like, 2.5K user interface library

#18

Looks promising. Is this battle-tested yet? I.e. is there a web app with a non-trivial amount of traffic that is using Riot at the moment? The main selling point of React is that it is actually tested against millions of users and browser configurations as a part of Facebook UI.

muut.com uses Riot for authentication, signups and for forum settings which is a fairly large application. The site is fairly popular.

Of course React is much more tested and probably more solid at this point and Riot 2.0 is just released.

But one major benefit for Riot is that there is indeed 24x less code to maintain and so much less weak spots to take care of.

Re: Riot – A React-like, 2.5K user interface library

#19
post #6
post #5

I'd be really interested in the views from people who were much more into JS than I am. I've used Angular for a couple of small cases now and I like it, but have been hearing lots of good stuff about React (and even Om, I'm quite Clojure inclined). How does this stack up against React in terms of power, brevity, etc?

Maybe you can find the answer from the comparison section: https://muut.com/riotjs/compare.html

Thanks, in my haste I didn't see this. Helps a lot!

Re: Riot – A React-like, 2.5K user interface library

#20

Looks promising. Is this battle-tested yet? I.e. is there a web app with a non-trivial amount of traffic that is using Riot at the moment? The main selling point of React is that it is actually tested against millions of users and browser configurations as a part of Facebook UI.

muut.com uses Riot for authentication, signups and for forum settings which is a fairly large application. The site is fairly popular. Of course React is much more tested and probably more solid at this point and Riot 2.0 is just released. But one major benefit for Riot is that there is indeed 24x less code to maintain and so much less weak spots to take care of.

Do you think that the 24x less code is because of its exceptional design? Or is it missing some features?
Post reply on HN