News for hackers. Stuff that matters.
Re:Ember's Glimmer Engine by vjeux on Tuesday March 03, 2015 @04:14PM (#9140800)
React 0.14 is going to have similar optimizations. Check those three posts if you are interested in the details :)

Reuse Constant Value Types like ReactElement: https://github.com/facebook/react/issues/3226

Tagging ReactElements: https://github.com/facebook/react/issues/3227

Inline ReactElements: https://github.com/facebook/react/issues/3228

Re:Ember's Glimmer Engine by ralmidani on Tuesday March 03, 2015 @05:28PM (#9141244)
React's unfair and one-sided patent grant aside (personally, I will never build a real app with React unless that situation changes), it is not a complete MVC framework, and to my knowledge there is nothing that fills in the gaps to make something close to Ember feature-wise. So while React may end up faster, Ember will hopefully be quick enough that its programming model wins out.

Edit: grammar.

Re:Ember's Glimmer Engine by teh on Tuesday March 03, 2015 @06:38PM (#9141580)
What makes the patent grant unfair? I think saying "you can use our pretty powerful technology until you sue us" is a great way to defang the patent system.

[1] https://github.com/facebook/react/blob/master/PATENTS

Re:Ember's Glimmer Engine by ralmidani on Tuesday March 03, 2015 @06:48PM (#9141622)
It's unfair and one-sided because you cannot sue Facebook for infringing an unrelated patent, but if Facebook sues you for an unrelated patent, you will lose your rights if you try to assert (defensively) that their patent is invalid. In other words, you can never sue or even defend yourself against a Facebook lawsuit.

For a more balanced approach to patents, see the GPL, Mozilla Public License, or Apache 2.0 License.

Re:Ember's Glimmer Engine by peterhunt on Tuesday March 03, 2015 @07:55PM (#9142012)
This is a common misinterpretation of this clause. There's been a lot of discussion at length here: https://news.ycombinator.com/item?id=8985722
Re:Ember's Glimmer Engine by throwaway41597 on Wednesday March 04, 2015 @04:22AM (#9143376)
A discussion started by an actual lawyer about the same license used for an other project is here: https://news.ycombinator.com/item?id=8901357

He doesn't agree with your interpretation. The license is very clear in that everything a company would typically do to /defend/ against a patent suit brought by Facebook will terminate its patent rights on React.

Let me quote the second paragraph (added line formating for readability), the (b) part is the broadest I think:

    The license granted hereunder will terminate, automatically and without notice,
    for anyone that makes any claim (including by filing any lawsuit, assertion or
    other action) alleging

    (a) direct, indirect, or contributory infringement or
    inducement to infringe any patent: (i) by Facebook or any of its subsidiaries or
    affiliates, whether or not such claim is related to the Software, (ii) by any
    party if such claim arises in whole or in part from any software, product or
    service of Facebook or any of its subsidiaries or affiliates, whether or not
    such claim is related to the Software, or (iii) by any party relating to the
    Software;

    or (b) that any right in any patent claim of Facebook is invalid or
    unenforceable.
So why word it like users cannot defend against Facebook while Facebook doesn't intend to be a claimant?
Re:Ember's Glimmer Engine by ralmidani on Tuesday March 03, 2015 @08:08PM (#9142061)
I read that discussion. The patent grant is very asymmetrical. Why should an entity using React be vulnerable to being sued by Facebook for unrelated patents and be unable to challenge those patents?
Re:Ember's Glimmer Engine by peterhunt on Tuesday March 03, 2015 @09:01PM (#9142243)
IANAL and I have nothing else to add to the discussion here other than adding the context that Facebook hates patent trolls and doesn't really compete on technology, so even if your interpretation is correct (which I don't believe it is) it'd be purely defensive anyway.
Re:Ember's Glimmer Engine by teh on Tuesday March 03, 2015 @07:01PM (#9141724)
IANAL so I didn't get that. Thanks for explaining!
Re:Ember's Glimmer Engine by unknownian on Tuesday March 03, 2015 @06:52PM (#9141650)
That's not just what it says. If it just said that, that would be fine.

It says making "any claim" against a Facebook patent will terminate your right to use the software. Facebook gets to protect its own software patents: "that any right in any patent claim of Facebook is invalid or unenforceable."

The other lines are okay, it seems.

I am not an IP law expert or lawyer though, but the writing seems pretty simple.

Re:Ember's Glimmer Engine by EdwardMSmith on Tuesday March 03, 2015 @07:00PM (#9141718)
I'm not a lawyer either, but isn't the word "claim" a term of art in law. Doesn't it have a specific meaning distinct from the common usage?
Re:Ember's Glimmer Engine by teraflop on Tuesday March 03, 2015 @07:37PM (#9141931)
"Claim" has a specific meaning in the sense of the invention "claimed" by a patent. But Facebook's patent grant is clearly not using it in that context: "any claim (including by filing any lawsuit, assertion or other action)".
Re:Ember's Glimmer Engine by ralmidani on Tuesday March 03, 2015 @07:53PM (#9142006)
And a good reason for someone to claim a patent is invalid is being sued for violating that patent.
Re:Ember's Glimmer Engine by rxcfc on Tuesday March 03, 2015 @05:34PM (#9141267)
It's also worth noting that we're getting to the point where fastest doesn't really matter. Both Ember and React will be fast enough. Performance shouldn't be a deciding factor.
Re:Ember's Glimmer Engine by steveklabnik on Tuesday March 03, 2015 @05:46PM (#9141314)
One of the motivations for this change was that a real-world application was too slow. As the original presentation says, choosing a technology and then finding out that it's limiting you is really rough when it happens to you.

Performance _does_ enable certain kinds of applications, and it does absolutely matter, even on the desktop.

Re:Ember's Glimmer Engine by ralmidani on Tuesday March 03, 2015 @06:03PM (#9141401)
Performance matters, but if Ember can have 50-60% of the speed of a performance-optimized React app without the associated cognitive overhead, I suspect many will see the trade-off as worth it.
Re:Ember's Glimmer Engine by rxcfc on Tuesday March 03, 2015 @06:10PM (#9141444)
Agreed. And I suspect Ember can get closer than that, if not even outdo React in some cases.
Re:Ember's Glimmer Engine by steveklabnik on Tuesday March 03, 2015 @06:10PM (#9141447)
Agreed, for sure. I wasn't trying to make a framework-specific statement, just disagreeing with the notion that performance doesn't matter at all. It may only be for certain kinds of applications, but having more options is always good.
Re:Ember's Glimmer Engine by rxcfc on Tuesday March 03, 2015 @05:49PM (#9141326)
I should have added the caveat that there will always be a handful of cases where you do need absolute top performance. However, I do think that for the vast majority of apps we'll end up at a point where performance isn't the deciding factor. It doesn't mean that we shouldn't keep improving performance, just that being the fastest doesn't matter so much if all the options are very fast.
Re:Ember's Glimmer Engine by hayksaakian on Tuesday March 03, 2015 @06:24PM (#9141514)
it seems like if you're concerned with performance, react vs ember is not the conversation you're having.

your concern would be whether to use a framework at all

Re:Ember's Glimmer Engine by rxcfc on Tuesday March 03, 2015 @07:11PM (#9141810)
Performance is a relative term. One could just as well argue that if you're really concerned with performance you should just write machine code.
Re:Ember's Glimmer Engine by hayksaakian on Tuesday March 03, 2015 @09:22PM (#9142303)
i suppose i presumed a difference of 2x either way (worse/better) to justify picking one over the other -- given that frameworkless is ultimately the most optimize-able.

do you need something to be "at least X(ms) fast" or "faster than what company Y is doing" or "as fast as possible, no exceptions"

Re:Ember's Glimmer Engine by poolpool on Tuesday March 03, 2015 @06:54PM (#9141664)
Or whether you should even be using a web app.
Re:Ember's Glimmer Engine by cordite on Tuesday March 03, 2015 @05:36PM (#9141283)
It still matters on mobile. Whether it is running out of memory or being too sluggish to be usable.
Re:Ember's Glimmer Engine by cromwellian on Tuesday March 03, 2015 @07:37PM (#9141935)
Basically, if you treat render functions as "pure functional" functions, you can employ memoization and avoid recalculation. I hope this isn't the subject of patents, because it seems pretty basic.