r/programming • u/FalseGodMoloch • Sep 22 '17
MIT License Facebook Relicensing React, Flow, Immuable Js and Jest
https://code.facebook.com/posts/300798627056246/relicensing-react-jest-flow-and-immutable-js/504
u/filleduchaos Sep 22 '17
Willing to bet this had a lot to do with Automattic looking for an alternative.
86
u/arostrat Sep 22 '17
I never used it before, but what this news means to the future of alternatives like Preact? Is there a reason for its development now?
152
u/filleduchaos Sep 22 '17
Those 'alternatives' did not pop up because of React's licensing. They're projects with their own reasons to exist. Preact in particularly aims to be a (supposedly) faster, tinier UI framework (weighing in at 3KB compressed, vs. React's 44KB), and I'd definitely recommend it for smaller apps that don't have a need on React's extended family of packages (it's pretty much still in its infancy, so Preact doesn't have anywhere near as many third party components, bindings and plugins as React does).
40
u/jsprogrammer Sep 23 '17
and I'd definitely recommend it for smaller apps that don't have a need on React's extended family of packages (it's pretty much still in its infancy, so Preact doesn't have anywhere near as many third party components, bindings and plugins as React does).
There is preact-compat which claims to allow using React add ons with Preact without needing to change code.
30
u/AbsoluteZeroK Sep 23 '17
I haven't used it myself, but my friend was telling me about it the other day. They're working on switching their webapp to a PWA and switching to preact was the first thing they did just to try and shrink their bundle. It's a pretty large codebase (according to him) and they followed to migration instructions and it just worked and made their bundle way smaller.
→ More replies (2)4
Sep 23 '17
We tried to use preact on a Greenfield project a couple of months ago. Lots of things were broken, even with preact-compat. After about 2 days, we needed to switch back to react.
→ More replies (20)14
Sep 23 '17
(weighing in at 3KB compressed, vs. React's 44KB)
FYI [email protected] is 2.2kb, and Dan was able to create a slimmed down version of [email protected] at 12kb, so that's ~15kb for full React lib. If you're going by bundle size as one of your main mettrics, this might be a good initiative to reconsider.
10
u/filleduchaos Sep 23 '17 edited Sep 23 '17
Where on earth are you getting those numbers from? I'm not with my laptop so I can't verify, but as far as I was aware React 16 was slimmed down to 109KB unminified. I'm not aware of any magic that would get that down to 2.2KB.
Edit: Abramov himself reports a combined React/ReactDOM size of 37KB gzipped.
9
Sep 23 '17 edited Sep 23 '17
react - https://bundlephobia.com/[email protected] - 2.2kB minified + gziped
react-dom - https://twitter.com/dan_abramov/status/908332171223617536 - ~ 14kb minified + gziped
even if you go for the umd build:
λ ls -la node_modules\react\umd\react.production.min.js -rw-r--r-- 1 btm 197610 6716 Sep 23 12:06 'node_modules\react\umd\react.production.min.js'Remember I mentioned the hacked rendered (react-dom) that Dan was talking about.
→ More replies (12)→ More replies (1)19
u/TinRAT Sep 22 '17
Yeah it's much smaller than react so better for projects where file size is important
186
Sep 22 '17 edited Jun 25 '23
edit: Leave reddit for a better alternative and remember to suck fpez
130
u/hackcasual Sep 22 '17
Automattic is the company that makes WordPress.
36
u/eddiemoya Sep 23 '17
WordPress is open source. Automattic is how the original developer has monotized his creation, which itself is managed by an open source community.
0
Sep 23 '17
[deleted]
15
u/johnyma22 Sep 23 '17
Sort of.. Automattic has several hundred developers that maintain Wordpress (the software, not wordpress.com) - Without Automattic, Wordpress wouldn't have the market share and reputation it has today.
Disclaimer: Friend of Matt Mullenweg.
→ More replies (7)26
→ More replies (1)12
Sep 23 '17
Also gitlab
6
u/9034725985 Sep 23 '17
I thought gitlab uses vue?
27
-6
u/andyc Sep 22 '17
Really? Why would facebook care?
100
u/filleduchaos Sep 22 '17
Let's see - a blogging platform (and accompanying open source project) that powers a sizeable chunk of all websites in existence moving away from using their tech, vs relative nobodies arguing back and forth on the internet about the license. Gee, I wonder which one Facebook cared about enough to actually change it (and reference in their statement).
→ More replies (4)→ More replies (5)1
u/andyc Sep 24 '17
Lots of down-votes of an honest question and yet none of the responses to this apparently obvious question connect wordpress' use of react to facebook's bottom line.
I know how popular wordpress is. How does them using react make facebook money?
162
Sep 23 '17 edited Sep 23 '17
No license change for GraphQL?
121
u/Perfekt_Nerd Sep 23 '17
This is what I was gonna ask. GraphQL actually has patents on the implementation of the spec, so it’s worse.
22
0
Sep 23 '17
[deleted]
→ More replies (22)86
u/totbwf Sep 23 '17
The issue isn't the implementation, but rather the fact that the SPEC has patents that relate to it. So if I were to develop some implementation of the spec, I would actually be less safe, because Facebook's implementation comes with an explicit patent grant, which means that I would be infringing on Facebooks patents. It's so fucking stupid.
22
915
u/KevZero Sep 22 '17
You can call it "damage control" if you want, but I call it a great choice by FB regardless. Convincing the lawyers couldn't have besn easy, so congratulations and many thanks to everyone at FB who made it happen.
236
u/zecuria Sep 22 '17
Exactly I mean at the end of the day it's what's best for the community and they made a good decision, so I will at least give them props for that :)
169
→ More replies (2)58
119
u/niczon Sep 23 '17
MIT is the least restrictive of the open source licenses. The choice to use the MIT is essentially opening up react to the widest use. This is a really nice step.
→ More replies (3)9
u/jms_nh Sep 23 '17
? I thought BSD was the least restrictive.
26
u/mrbubblesort Sep 23 '17
If we want to be really technical, WTFPL is the least restrictive.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <[email protected]> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO.19
24
u/thockin Sep 23 '17
Please don't use WTFPL for anything real. It is not techically a license (so say lawyers) and many places will not touch your code as long as it is WTFPL'ed.
Just use one of the myriad good licenses like MIT or Apache2.
→ More replies (5)2
u/Crandom Sep 23 '17
In reality though, you haven't actually licensed anyone to use your stuff (according to my work's lawyers) so it's the most restrictive possible license
2
u/dpash Sep 23 '17
Depends which version of the BSD license. There's four, three and two clause versions of the BSD license and at least the four clause license has problems due to the "advertising clause".
11
u/danhakimi Sep 23 '17
Speaking as one of these kinds of lawyers.. I would guess this was a business thing, and the lawyers just did what they were told.
22
u/cptskippy Sep 23 '17
You act as though there's a cadre of lawyers at Facebook who act as the gatekeepers for decisions like this. Lawyers are advisors, they're not in charge. The business is always in charge and the lawyers are just there to offer guidance to protect the companies interests.
Remember Facebook's motivation for releasing this code at all under any license is purely self serving. One of the benefits of open source is more eyes tweaking and fixing your code.
Facebook benefits from wide spread adoption of their code because it increases the numbers of people supporting and maintaining that code.
The controversial license meant that anyone paying attention or with skin to lose was probably going to steer clear of their code. And let's be honest, those are probably the eyes you want looking at your code.
So at the end of the day this was 100% damage control.
It's good for the community because Facebook is trying to Foster the community, at the end of the day though this is about what's good for Facebook. What's good for the community is just a means to an end.
This isn't a knock at Facebook because any company open sourcing code they actively use is doing the same thing. But you need to understand their motivations and that your best interests are a side effect of Facebook acting in their best interest.
2
u/TheImmortalLS Sep 24 '17
There is a manifest function and a latent function. Corporations have mastered this distinction, in this case claiming to work with the community but in actuality doing this for PR reasons.
11
u/shevegen Sep 22 '17
Well, I'd think that one has to applaude the people at Facebook for a good decision too.
Other corporations did similar good decisions, such as Oracle and Java EE (or what the name was again ... I don't want to search right now...)
92
u/KevZero Sep 22 '17
The history of litigation behind Java is obscene. I don't think Oracle ever gave anything to the community without a good fight. The goodwill of the Java community is something they bought with Sun Microsystems.
70
u/arstechnophile Sep 23 '17
Other corporations did similar good decisions, such as Oracle
HAHAHAHAHAHAHAHAHAHAHAHAHAHahahahahahahahahahahahhhoooooooo....
24
6
u/kurosaki1990 Sep 23 '17
What ever you think about Oracle what they did to java ee was good decision.
0
Sep 23 '17
[deleted]
1
u/KevZero Sep 23 '17
Facebook is absolutely a paid product. It's an advertising platform. It's free to use because that's how they gather the product they're selling: people's attention. Bad PR can cost them. Their revenue is on the order of $9B per quarter.
0
132
u/CSMastermind Sep 23 '17
At work when we were deciding between React and Angular the license was a big influence in choosing Angular. I imagine many other large corporations made similar decisions.
25
u/takuhi Sep 23 '17
Yep, it was the same for us. We chose Vue over Angular 2 because we didn’t have time for the steeper learning curve.
29
62
u/MostlyCarbonite Sep 23 '17
Did you look at Vue?
16
u/CSMastermind Sep 23 '17
We did! We really liked Vue! The problem for us was that it was too new and the ecosystem too undeveloped for us. We worried about documentation, support, the talent pool, etc. All the things you have to care about at Enterprise scale.
That said I'd love to build with it in a year or two.
6
u/Jwkicklighter Sep 23 '17
The Vue docs are some of the best docs I have ever used, and the talent pool almost doesn't matter because it can be learned in a very short time by most JS devs.
→ More replies (1)22
u/brubakerp Sep 23 '17
I don't know why you're being downvoted for asking a question. Apparently some people have a strong opinion of Vue.
→ More replies (2)22
u/MrJohz Sep 23 '17
I think the irritating thing is whenever someone says "we were deciding between Angular and React" there is always a guy who'll pop up and suggest Vue. It's sort of like the whole Rust Evangelism Strike Force thing. I like a lot of the ideas behind Vue, but it's always quite irritating, once you've decided between a set of options, for someone to continually be popping up and asking you to reconsider their particular favourite.
I don't think this is Vue's fault, per se, because I think this same thing was happening with React last year, and other frameworks before then, but now it's Vue's turn, and man is it irritating...
→ More replies (5)9
u/MostlyCarbonite Sep 23 '17
Yeah here's the thing: I had never heard of Vue before like 3 weeks ago. But I haven't been shopping around for web dev ecosystems lately. So I was curious whether they had considered Vue. The user's answer was informative.
and man is it irritating
How about: don't. Don't be irritated by it. It doesn't impact your life in any way.
11
u/Measuring Sep 23 '17
Tried getting Vue to work with Typescript but it doesn't work that well with it sadly (especially so for Vuex). Coming from C# it's a bit hard to get used to Javascript.
12
u/thekaleb Sep 23 '17
v2.5 is improving typescript typing.
5
u/Measuring Sep 23 '17
Great to hear. I see it now: https://medium.com/the-vue-point/upcoming-typescript-changes-in-vue-2-5-e9bd7e2ecf08
Used Visual Studio but it just wouldn't properly do IntelliSense and gave warnings even though they were disabled and the code compiled.. maybe I should just use VS Code.
→ More replies (1)5
u/thavi Sep 23 '17
I have to use both, myself...going to JS after using C# is like opening a box of crayons.
→ More replies (4)→ More replies (3)15
u/i_spot_ads Sep 23 '17
Even licence issue aside, Angular is pretty awesome and powerful framework for large projects
6
u/eloc49 Sep 23 '17
Ya, my company decided between React or Angular before all this licensing stuff and picked Angular. I love it, no clue why it gets so much hate.
18
u/DroidLogician Sep 23 '17
Does anyone know if this immediately affects React Native as well, or if they have plans to relicense RN? I expect that has its own patents but it's also a derivative work of React so I don't know.
214
u/sigma914 Sep 22 '17 edited Sep 23 '17
So they're relicencing it MIT, and removing the revokable patent grant, cool, good first step.
Now, back to the original problem, ie. Is it patent encumbered?
Are they adding an explicit, unrevokable patent grant? There is a reason GPLv3 and Apache2 have them.
MIT is just a copyright licence, it's my understanding it does nothing to grant use of patents associated with the software that's licenced under it.
Edit: reworded based on replies.
92
Sep 22 '17 edited Mar 20 '18
21
u/keepthethreadalive Sep 23 '17 edited Sep 23 '17
There's a comment on HN which talks about how a plain MIT license without any patent language can be interpreted as copyright+patent license. So unless a license specifies patents explicitly, you can say patents were licensed too.
The comment has sources, but I'm still skeptical.
8
Sep 23 '17 edited Sep 23 '17
Apache 2.0 would have been nicer.
It has everything facebook wants (retaliation!) and everything big corps want (explicit patent license).
But then again, MIT is on the whitelist of licenses we are allowed to use at work, and that BSD+Patents was making people nervous.
Edit: BTW, the problems with patents is not only applicable to react. It's every MIT / BSD library you use. Facebook just happens to own a few patents and quite a lot of lawyers.
→ More replies (1)7
u/PM_ME_UR_TAXES_GURL Sep 23 '17
Eh, it's a reasonable and common position to take. There's not much case law around open source licenses, so it's basically up to each party to form their own standpoints, but pretty much everyone has found some way to feel ok with the most open lics (MIT, BSD, Apache, etc.)
2
u/danhakimi Sep 23 '17
Ain't no way to worry about Apache 2.0, that thing is almost a perfect permissive license. Except for being gpl2 incompatible.
29
u/HomemadeBananas Sep 22 '17
MIT license means do anything you want with this, pretty much. I don't see how you could be infringing on anything if they give the code to the world, and say do anything with this.
85
Sep 22 '17 edited Mar 20 '18
5
u/danhakimi Sep 23 '17
It's an explicit license to use, and doesn't specify "under copyrights." I would say it's a very clear patent license, although not quite complete from context.
11
u/jsprogrammer Sep 23 '17
MIT license supersedes patent grants (implicit or explicit). The MIT license explicitly allows one to deal without restriction.
25
u/sandwichsaregood Sep 23 '17
Sorry if I maybe don't understand the full legal argument, so consider this more of a question than a counter argument, but isn't this still untested territory?
Whether or not the MIT permission to basically distribute the software however you want also implicitly gives you a patent grant hasn't really been tested in court and there are arguments for both ways.
→ More replies (17)15
u/sm9t8 Sep 23 '17
No formal granting of a license is necessary in order to give it effect. Any language used by the owner of the patent or any conduct on his part exhibited to another, from which that other may properly infer that the owner consents to his use of the patent in making or using it, or selling it, upon which the other acts, constitutes a license, and a defense to an action for a tort.
De Forest Radio Tel. Co. v. United States 273 U.S. 236 (1927)
→ More replies (2)5
u/ijustwantanfingname Sep 23 '17 edited Sep 23 '17
You need to cite that, because it sounds to me like you're completely missing his point. Patents and copyrights are not the same.
→ More replies (10)0
14
u/ijustwantanfingname Sep 23 '17
I'll tell you how.
A patent and a copyright to source code ARE NOT THE SAME THING.
A perfect example of this are the SURF and SIFT algorithms in OpenCV. OpenCV is BSD licensed (comparable to MIT), as are the implementations of SURF and SIFT it contains. However, these algorithms are patented.
What does this mean? It means you can do whatever you want with the source code itself, but if you use SURF/SIFT in a commercial product, you are financially liable to the patent holders. This applies whether you use OpenCV's BSD licensed implantation, or roll your own. Doesn't matter, the code is irrelevant. It's the algo/patent that is encumbered.
I could be wrong, but my guess is that open source MP3 decoders were the exact same situation before that patent finally died.
→ More replies (4)4
u/Daneel_Trevize Sep 23 '17
algorithms are patented
Wasn't there that victory over the Trans-Pacific Trade deal so there wasn't international normalisation to the lowest of the low, specifically that US law has this as a possibility but many other places laugh at it?
3
u/Otis_Inf Sep 23 '17
Perhaps read this: https://writing.kemitchell.com/2016/09/21/MIT-License-Line-by-Line.html a lawyer's take on the MIT license. What you state is untrue.
→ More replies (3)8
u/sigma914 Sep 22 '17
It was a grant, but it came with additional restrictions, now they've removed the grant and the restrictions, which as you say means that you may be infringing on any patents from the get go.
Do any of these pieces of software implement patented algorithms? If so are Facebook now going to offer another, unencumbered, grant?
20
u/jonny_eh Sep 23 '17
What restriction? It was a grant that got revoked if you sued FB. Now there's no grant at all.
→ More replies (1)9
u/recycled_ideas Sep 23 '17
There are arguments that releasing under an OSI license includes an implicit patent license, that was actually part of the issue the OSI had with Facebook's license.
As to it being patent encumbered, no one has found any facebook patents that affect react, and if react if patent encumbered then so are most if not all of the current popular front end frameworks.
37
u/darkslide3000 Sep 23 '17
This. So many people didn't understand what the original argument was about, and so many people still don't understand what they announced just now. The announcement as it stands (i.e. if they don't add any extra patent grants to it) actually reduces what people can do with React. There have never been any "patent restrictions" in the license... the license was 3-clause BSD, no strings attached. In addition to that license they also offered you a "take it or leave it" patent grant with strings attached.
So now they're offering you MIT (which is generally considered equivalent to 3-clause BSD) and no more patent grant. If there are no patents covering React, nothing changed because you could already do what you want before. If you there are patents, you are now way more fucked than before because as soon as you use it you're immediately infringing and there is no more grant to cover you even if you never sued Facebook for anything first.
Either they'll have to add extra clarification about a new, wider patent grant, or this whole thing is just a big practical joke meant to fool all the idiots who have no idea what's really even at issue here.
5
u/harlows_monkeys Sep 23 '17
MIT is just a copyright licence, it's my understanding it does nothing to grant use of patents associated with the software that's licenced under it.
There is actually nothing in the MIT license that says it is a copyright license. It just lists some things it allows you to do, and several of them are things that you cannot do without copyright permission. However, several of them are also things that you cannot do without patent permission.
The most serious problem with the MIT license is that there is nothing in it concerning how long it lasts. In general, a non-exclusive license without consideration that does not specify a term and does not say that it is perpetual or irrevocable is revocable at will.
The MIT license (and the BSD licenses, and GPLv2) are non-exclusive, do not specify terms, and do not say they are irrevocable. So unless one can either
(1) argue that because they are granting copyright and patent permissions, which both have definite terms, and so the licenses implicitly have a term equal to the remaining time on the underlying copyrights and patents, or
(2) argue that there was consideration, or a substitute for consideration1,
one needs to seriously consider the possibility that an MIT licensor could revoke your license and then go ahead and sue you for copyright and/or patent infringement.
Personally, I think you probably could successfully argue there was a substitute for consideration and so probably could prevent the license from being revoked, but man, I sure as heck would not want to be the defendant who actually has to be the first to do that.
Of the licenses that the Open Source Initiative classifies as "popular and widely-used with strong communities", I think that Apache 2.0 and GPLv3 are the only ones that say they are irrevocable.
There is one other aspect of the MIT license that may mitigate the risk of revocation somewhat. The MIT gives the licensee permission to sublicense the license. If Alice, the copyright/patent owner, licenses her software to Bob under the MIT license, and the Charles gets his copy from Bob, and then Alice successfully revokes Bob's license, I think Charles could make a good case that he got his license as a sublicense from Bob, and Alice's revocation of Bob's licenses does not affect him. If Alice tries to revoke Charles' license, Charles would argue that he doesn't have a license from Alice. His is from Bob.
Of the licenses that the Open Source Initiative classifies as "popular and widely-used with strong communities", the ones that allow sublicensing, I believe, are Apache 2.0, MPL 2.0, CDDL 1.0, and the Eclipse Public License 2.0.
Note that the only license that is on both of those lists is Apache 2.0.
You really do want both of these, because if a license says it is irrevocable, but does not allow sublicensing, then you are safe from revocation. But whenever you distribute a copy, the recipient has to get a license from the original licensor. The licensor cannot revoke licenses already issued, but what if the licensor declares that they will no longer issue new licenses?
If that works, then while you may continue to use the software, make derivative works, distribute copies and derivative works, and so on, your recipients would only get the default rights that everyone gets under copyright (such as the rights covered by fair use and the first sale doctrine). In effect, the software would be open source/free software within the subset of people that already have it when the licensor stops issuing licenses, and would in effect be closed/proprietary for everyone else. That would be a mess.
(You might be able to argue that an irrevocable license that does not allow sublicensing implicitly promises to continue issuing new licenses to your distributes. I think that argument would have a pretty good chance of working. Again, I sure as heck would not want to be the first defendant to deal with that, though).
1 Google "detrimental reliance" and/or "promissory estoppel" if you want to go down that rabbit hole. Consideration and its substitutes are the tvtropes.org of contract law, so be warned.
1
u/sigma914 Sep 23 '17
Thanks for writing all that out! That's really interesting, I know what my reading for the next week is.
→ More replies (1)4
u/danhakimi Sep 23 '17
The mit license is a license to use the software it covers. It very heavily implies copyright, and less heavily implies patent. It is generally presumed that any sane court would read it to imply a patent license consistent with software freedom and the spirit of the mit license. But nobody really knows for sure.
2
1
u/oiyouyeahyou Sep 23 '17
Wasn't there a recent change in the US legal system moving software out of the patent space?
1
u/gloomndoom Sep 23 '17
No changes but many companies pushing for patent reform and many opposing any reform.
-12
51
u/VikeStep Sep 23 '17
(IANAL), however here was my understanding of the whole thing. Can anyone correct me if I am wrong, since I've seen a lot of conflicting information going around.
On BSD + PATENTS:
This is essentially the BSD License with an additional patent grant to all(?) of Facebook's patents.
The intention of this is that you can use React without worrying about the legal implications of having to depend on or use Facebook's patents
If you file a patent assertion against Facebook, then only the PATENTS part of the license is revoked, and the BSD license to use React still holds
This means that you can still use React after the PATENTS part of the license is revoked without being sued.
If you violated a Facebook patent somehow, then that doesn't cause this license to be revoked (but you now have a bigger problem to worry about).
BSD License is irrevocable
On MIT:
There is no explicit patent grant to Facebook's patents by using React
You now risk violating one of Facebook's patents from the get go regardless of whether you file a patent assertion against Facebook or not.
MIT License is irrevocable
9
u/_101010 Sep 23 '17
This means that you can still use React after the PATENTS part of the license is revoked without being sued.
From what I understand the Patent grant in React licence was implied towards some patent FB regarding virtual/shadow dom.
So after PATENT grant being revoked, you would be SOL.But now you are SOL right from the get go.
6
u/VikeStep Sep 23 '17
I don't think the virtual/shadow DOM thing is actually an approved patent.
I'm also not sure that react has any patented code in it at the moment. If it does, then I'm not sure how Facebook could even offer this on the MIT license at all since it does not mention patent grants. However, someone else mentioned up in the thread that this has not been tested in court before.
1
6
u/liam-io Sep 23 '17
Does this prevent it from changing MIT backk to BSD + PATENT again? It has been done one time from APACHE to BSD + PATENT
22
u/unkz Sep 23 '17
I believe it means that the community will be able to fork it at that point using all the code up to that point under the MIT license.
4
5
Sep 23 '17
Can we get a few tech lawyers in here to clear the air? There's so much FUD going on and counter arguments on counter arguments that I still am clueless as to what this means for someone like me that wants to start a project for a large corporation and a boss who has expressed concern for React due to all this patent/licensing stuff.
→ More replies (4)
38
u/britenite Sep 23 '17
I know this won’t change anyone’s opinions on Facebook and they deserve what they get, but this is a big win for the open source community as a whole.
Every single developer who said they were switching away from React because of this should get warm fuzzy feelings knowing that they contributing to an industry juggernaut very publicly changing their behavior.
And a huge thanks to Automattic because they almost certainly pushed FB over the edge.
61
u/mbetter Sep 23 '17
"Big win"? How is it a win to go from a revocable patent grant to no grant at all? It's either a loss or, more likely, none of this fucking mattered in the first place.
10
u/Arkanta Sep 23 '17
This has been a total shitshow, only showing how many people have poor reading comprehension.
15
u/_101010 Sep 23 '17
This doesn't change shit. Now you are infringing on the patents from the get go.
5
u/bart2019 Sep 23 '17
What patents? I've read there is no patented stuff in React.
5
u/JB-from-ATL Sep 23 '17
Then that raises another question, why did they even have a revocable patent grant?
9
u/joesb Sep 23 '17
Then why do you have problem with the patent grant in the first place?
3
Sep 23 '17
Why was it there in the first place?
It's something that shouldn't be there, but equally, if they actually attempted to act upon a patent like that there'd be an enormous shitstorm as almost all frontend frameworks would be caught up in it.
→ More replies (1)9
u/darkslide3000 Sep 23 '17
ITT: People who have no idea what the issue at stake is and are getting majorly trolled by Facebook. What you call a "big win" is actually them taking more options away from you. You're like the kind of people who would pay more for a quarter pounder than a half pounder at the burger place because they think they're getting more.
2
u/factotvm Sep 23 '17
building user interfaces at scale
What does that mean? Because my understanding of user interfaces is that while they need to perform, they don’t need to scale beyond one user.
6
u/FalseGodMoloch Sep 23 '17
Large codebase. If your codebase becomes a imperative clusterfuck spaghetti dom manipulation atrocity, it is hard to scale. React helps with that.
→ More replies (4)12
u/bad_at_photosharp Sep 23 '17
I think they're talking more about scale in size of development team/codebase size. Not scaling in terms of performance.
→ More replies (2)3
u/i_spot_ads Sep 23 '17
Try to build a huge telemetry dashboard without Angular or React AND without crying, and you’ll understand very quickly what that means
4
u/factotvm Sep 23 '17
Then they should have said build user interfaces that are maintainable.
→ More replies (3)1
u/ascii Sep 23 '17
Most of the GCP web console is built using angular. Try spawning a few thousand VMs and watch how a page load suddenly takes like ten seconds. And Google invented angular, so one would assume they know how to use it. Seems like angular doesn't scale. Unless GCP has crazy bad underlying APIs, I guess.
That's probably not what they meant though, I think what they were going for is having a hundred developers working on the same piece of shit-app and not stepping too badly on each others toes.
4
u/Endarkend Sep 23 '17
So, does that mean Wordpress will remain with React or are they going forward with the redo?
2
u/Cherlokoms Sep 23 '17
Wordpress uses React? Why?
6
u/aSardineInShoes Sep 23 '17
Wordpress.com uses it for it's admin interface "Calypso". It isn't part of the self hosted version of WordPress you download from wordpress.org.
→ More replies (1)1
4
u/dashdanw Sep 23 '17
I really don't like how they're sort of selling this as an 'honest mistake' if you look at the licenses for things like hack and hhvm they're super obfuscated and controlling and it was clearly on purpose.
61
u/JewCFroot Sep 22 '17
Wow, bent over backwards in face of the claims that Facebook would steal every possible startup IP that used React.
Seemed to be a PR disaster for them and they're doing damage control.
0
u/shevegen Sep 22 '17
That may be one thing - but the PR is secondary.
The primary issue is that I think it was the right move. They don't even need the patent clause anyway - other corporations made agreements too, see Red Hat and Microsoft snuggling up.
0
Sep 22 '17
[deleted]
→ More replies (3)38
u/Existential_Owl Sep 22 '17
I guess the person you're replying to is trying to cast this as a "bad thing" somehow.
I, for one, welcome an MIT-licensed React framework.
13
u/JewCFroot Sep 22 '17 edited Sep 23 '17
Actually I’m very happy it’s moved to MIT! Didn’t mean to cast a completely cynical view on the switch. It is a great thing.
I was reflecting on their motives for changing, which were bad. The intention was to mitigate companies moving away from their libraries, rather than willingly have a more open license.
→ More replies (10)
7
u/uGallowboob Sep 23 '17
Can someone TLDR this for me?
18
Sep 23 '17
Facebook released a popular library for developers. Like, really popular. A whole swathe of the internet didn't understand the licence that it came with and got all pitchforks and broomsticks and started a change dot org to boycott the library. Facebook did a terrible job explaining the legal intricacies behind their decision so mob mentality grew. Now they've switched to a licence everyone thinks they understand and the mob has been satiated... for now. Until they realise that this didn't solve the original issue of infringing on Facebook's patents whilst using an open source library.
→ More replies (3)
12
u/MiserableSpaghetti Sep 23 '17 edited Sep 23 '17
I've only just started a html/css/JavaScript courses, can someone explain what was going on and what this outcome means to a newbie?
edit: thank you for downvoting me for trying to learn
9
u/_101010 Sep 23 '17
React is a front-end framework like Angular.
React had a BSD license + Patent grant. And patent said that if you sue FB, then you lose the patent grant and are SOL.Recently there was discussion on this BSD + Patent on Apache JIRA and resulted in React being banned from all Apache projects.
This caused a tsunami, and Automattic, which makes Wordpress, decided that it too will abandon React, in favor of Vue.
This decision of Automattic is being rumored to cause have this license change from FB.
Now, they changed the license to MIT, which doesn't have a explicit patent grant, which technically means you are infringing on the patents from the get go.
6
u/bart2019 Sep 23 '17
which technically means you are infringing on the patents from the get go
But there are no patents in React, yet. (AFAIK)
4
u/Arkanta Sep 23 '17
That’s why all of this was bullshit
4
u/jmblock2 Sep 23 '17
It is not bullshit. The license restriction was any patent claim against Facebook and affiliated, not just patents in the React framework.
4
u/Arkanta Sep 23 '17
No, it meant that ANY grant covered was lifted if you sued facebook, not that you had to stop using React when doing so.
React has no patent covering it, so this whole outrage was utter bullshit.
And now what, we have NO GRANT anymore, and a couple of armchair HN lawyers are arguing that this means that we get an implicit patent grant.
→ More replies (3)2
u/beaverlyknight Sep 23 '17
Now, they changed the license to MIT, which doesn't have a explicit patent grant, which technically means you are infringing on the patents from the get go.
This seems to be up for debate according to what I've read. Some people are saying that lawyers think MIT involves an implicit patent grant. I have no idea about the legal stuff personally, I'm just reporting that.
→ More replies (1)
2
2
u/tamalm Sep 23 '17
So I developed a few backend APIs using GraphQL using Java & Go. Will my clients get threat mails from fb legal team? Some of the services may be competing with fb (targeted ad industry for b2b). Fortunately client side apps are not on react.
2
2
8
u/mayhempk1 Sep 23 '17
This is good news, but keep in mind they can always relicense it again in the future if they kill off their competition (Vue and Angular). We should still proceed with caution, but this is still a victory nonetheless I believe. I hope WordPress still goes with Vue so Vue can grow even more like the big boys React and Angular.
We've been working on React 16 for over a year, and we've completely rewritten its internals in order to unlock powerful features that will benefit everyone building user interfaces at scale.
Does that mean it will be "very" or at least noticeably different syntactically (think Angular 1 vs Angular 2 I believe it was), or will it still be the same or at least very similar? I.e. will it maintain backwards compatibility with older version(s) or at least the current version of React, or should we expect massive changes?
13
u/intertubeluber Sep 23 '17 edited Sep 23 '17
The public API will not change from 15.whateverItIsNow.
I think.
Edit: it sound like that is correct https://github.com/facebook/react/issues/8854
"For the past several months, we have been working on a rewrite of React codenamed “Fiber”. Initially, it won’t affect public API, but it brings several new features (like #2127 and #2461). Fiber gives us a solid foundation to improve React core in numerous ways. We’ll be talking more about it soon, and we intend to ship it with React 16 by default"
4
2
4
u/0987654231 Sep 23 '17
Does that mean it will be "very" or at least noticeably different syntactically (think Angular 1 vs Angular 2 I believe it was), or will it still be the same or at least very similar? I.e. will it maintain backwards compatibility with older version(s) or at least the current version of React, or should we expect massive changes?
They have a post where they say it's almost completely compatible and internally only like 1% of their components needed code changes and most of those because they relied on unsupported react behavior.
1
→ More replies (3)2
u/joesb Sep 23 '17
Vue can be relicensed as well. And if you say that you can fork Vue at the point before the license change, then you can do same with React.
1
u/mayhempk1 Sep 23 '17
Yup, which is why this is great that React will be MIT licensed at least for version 16 - there will always be this available as a new base for forks. I am happy they did this.
3
3
Sep 23 '17
Finally the react license circle-jerks can end
8
4
u/joesb Sep 23 '17
Next it’s gonna be about how Facebook is evil because they don’t have patent grant, see people complain about how Facebook can sue you for using Graphql because Graphql does not have patent grant.
2
u/Magnesus Sep 23 '17
I bet all who complained wouldn't have ever sued Facebook anyway. Now they have similar licence but no patent protection. Great win.
2
Sep 23 '17
Basically from the users of these libraries, the threat is still the same and unknown, facebook is totally able to sue them on basis of patents on these library if they have any. So the question remain: does facebook has or has not patent on those technologies ?
2
u/rickdg Sep 23 '17
"I am altering the deal. Pray I don’t alter it any further."
2
u/ascii Sep 23 '17
In this case, they made the deal a lot better for everyone else. So I'm kind of hoping the keep on altering.
1
u/rickdg Sep 23 '17
It's all about trust. What stops them from eventually going back to the initial license?
3
u/ascii Sep 23 '17
Nothing. But the can't unrelease what they've already released, nor can the prevent anyone from forking the last version they released while under the MIT license.
2
u/RalfN Sep 24 '17 edited Sep 24 '17
Obviously, the threat of a fork. Once released under a certain liscence all that code will forever be under that liscence.
So, no, thats' unlikely -- borderline impossible -- to happen. Its way too popular for that fork to not happen.
Thats why people like the MIT liscense in the first place, because then the community can always continue on the same terms, without any help or permission from facebook. And although we are not react users at all, its obvious and clear the react community is large enough to easily do this without breaking a sweat. (i.e. maintaining and improving react)
It's all about trust.
Trust is a silly thing to depend upon -- actual contracts and liscences on the other hand are much better than trust.
Although it is questionable wether you now have more or less rights. The previous liscence means acknowlediging the validity of Facebook's patents (kind of). But you can still be sued for patent infrigement by others, and now also by FB.
However the patent risk was never going to go away anyway, since FB could just sell their patents to a third party and patent trolls are generally insulated from where the patents originated. But it's nice that the liscence is now symetrical. (ie. It gives the same rights to all contributors, without making FB special) Its easier for larger corporations that tend to whitelist liscences.
1
1
Sep 23 '17
Someone eli5 this for me?
4
Sep 23 '17 edited Sep 23 '17
Old license: you get a patent grant, but if you sue Facebook for patent infringement on anything, everyone who works on React with a patent on it can sue you.
New license ignores patents.
As a counterpoint, the MS-PL offers a patent grant that only terminates if you sue regarding the software project itself.
Edit: the Apache 2.0 license offers a similar grant. So does the Mozilla Public License. And the WebM license. So there's a lot of prior art and Facebook ignored it.
1
1
1
-5
u/shevegen Sep 22 '17
Wow, that's a surprising move.
Well I don't want to jump on the bandwagon but I have to say - good decision.
Now the next target is ... W3C!
Actually, I consider W3C promoting DRM much worse than Facebook's old React licence, since Facebook isn't a "standard's body" in regards to, well - HTML. Even if corporations, in particular evil Google, have de-facto control over the www these days (hello chromium how do you do) and buy in their standards into W3C - I felt that W3C's move was ethically much worse.
Facebook's licence model was probably understandable from their point of view but it wasn't a permissible licence unlike the MIT. I guess the MIT may be one of the best licences - and that's coming from someone here who happily uses GPLv2 most of the time! (No "later clause" though. If I'd ever switch, I'd most likely pick MIT too.)
2
Sep 23 '17
Bad decision. There were three or four other open source licenses with narrower, more widely approved patent grants they could have gone with rather than their own custom license. Instead, they switched to a license that doesn't have an explicit patent grant.
The MS-PL is pretty close to BSD plus patent grant, for instance, and it's got a narrow enough patent grant that the Apache Foundation is happy with it.
1
u/recycled_ideas Sep 23 '17
It sort of depends on how you look at it.
For better or worse a lot of content companies view FRM, however ineffective it may be, as a critical feature for their distribution platform. The lack thereof in HTML 5 was a major reason for companies being reluctant to move forward to new technologies.
If there is going to be DRM on the web, and let's be clear there absolutely 100% will be, is it not better that that DRM be as standard as possible so that most if not all consumers can access that content on the operating system and browser of their choice?
The IFF do not live in reality and they are not at all above framing the argument in a way that is misleading. This was never a choice between DRM and no DRM. It was a choice between standards on DRM or no standards on DRM. The W3C could also not have offered the compromise they requested as they don't have the legal authority to force anyone to abide by them.
→ More replies (10)1
-1
u/Ratstail91 Sep 23 '17
Translation: We fucked up. So we'll reverse the React fuck up, and maybe the others.
-1
u/thoughtsandprayersio Sep 23 '17
Preact has better performance anyhow. I am not waiting for fiber to release. Sticking with preact.
5
Sep 23 '17
Just make sure you do a proper pentest before going life.
I heard that the reason preact is faster is due to less security checks (XSS prevention and such).
0
u/systematicfrank Sep 23 '17
I am so impressed. Normally the bigger the company the harder it is taking a good strategic move while using a bad tactical one. So many companies would be stubborn holding the control they have on their own assets (tactics) instead of chasing after influence/impact (strategy). As a developer this greatly changes my perception of Facebook.
2
u/JB-from-ATL Sep 23 '17
Please note: the problem everyone had with their license was the awkward tacked on revocable patent grant. Now there is no explicit parent grant at all, revocable or irrevocable.
1
u/markzzy Sep 23 '17
Eh it shouldn't. They're doing it because they were pressured into doing it. Not because they wanted to. IMO Facebook still has more to learn in this regard.
896
u/yogthos Sep 22 '17
This is a great reminder that public pressure works, even on a giant behemoth like Facebook.