News for hackers. Stuff that matters.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by nightski on Tuesday April 18, 2017 @05:28PM (#14143095)
The benefits you acknowledge (distribution) are not because of the tech but in spite of it.

At the end of the day all it would take is one of the 3 major browser vendors to offer an alternative. That alternative could be distributed to a large percentage of desktops in a relatively quick manner saving billions if not trillions of dollars in wasted productivity.

It will never happen though.

* EDIT: This comes from someone who uses React, Redux, webpack, etc.. daily

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by julian_1 on Tuesday April 18, 2017 @08:27PM (#14144388)
No-one could even agree on making HTML5 valid XML - in order to leverage all the tools and knowledge that exist in that space.

Not that I even like XML. But having another XML dialect that's not actual XML shows that the only hope is to build valid tools and abstractions on top of all the crud.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by tannhaeuser on Wednesday April 19, 2017 @01:52AM (#14145755)
There's nothing "not actual XMLish" about HTML. HTML is formally describable in its entirety using SGML (see my project at http://sgmljs.net/blog/blog1701.html), just not by the XML fragment of SGML.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by julian_1 on Wednesday April 19, 2017 @03:31AM (#14146108)
Is it possible to scrape random html5 pages off of the internet and transform them with xslt 2?

Or write content/metadata schemas (distinct from a DTD schema that simply describes html5) using XSD?

Unlike xhtml, my understanding, was that the current tooling around XML won't just work out-of-the-box for html5.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by cwyers on Wednesday April 19, 2017 @03:55AM (#14146179)
You're missing the point. HTML wasn't XML because XML didn't exist then. SGML did. XML is a "an SGML dialect that's not actual SGML," not the other way around. The people who designed XML knew the SGML spec, as they wrote XML as a subset of it, and they knew what was in HTML. They could have written XML so that HTML conformed. They chose not to. But the HTML spec at the time was absolutely conformant SGML.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by tannhaeuser on Wednesday April 19, 2017 @05:28AM (#14146522)
What cwyers said. Plus, XML was designed to replace HTML as XHTML, but it didn't happen. Doesn't mean you need to give up markup processing alltogether. Just use full SGML, which has additional features such as tag omission/inference and other markup minimization features for text authoring not in the XML profile of full SGML such as markdown and custom Wiki syntax support. You might actually like it.

You can parse HTML 5 into XML using my HTML 5 DTD [1] and eg. OpenSP's osx tool or my upcoming sgmljs.net tool.

What do you have against DTDs? They do the same as XSD, and then some.

[1]: http://sgmljs.net/docs/html5.html

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by kyrias on Tuesday April 18, 2017 @10:31PM (#14145019)
> But having another XML dialect that's not actual XML…

HTML is based on SGML, it was never an XML dialect.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by ZenoArrow on Tuesday April 18, 2017 @06:01PM (#14143388)
>"At the end of the day all it would take is one of the 3 major browser vendors to offer an alternative."

You mean like Dart?

Besides, languages that target WebAssembly are almost certainly going to evolve to fit that space.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by cubano on Tuesday April 18, 2017 @07:44PM (#14144146)
I have serious doubts that WebAssembly is really going to come to dominate the web the way many people here seem to believe it will.

The idea that all of sudden there is going to be a rush to push compiled/closed sites after so many very successful years of using free-and-open stacks seems rather non-logical to me.

Time will tell.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by azernik on Tuesday April 18, 2017 @08:55PM (#14144546)
The success of the JavaScript stack was not dependent on source being shipped to the browser, and the push for WebAssembly​ is not motivated by keeping source away from the browser.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by toyg on Wednesday April 19, 2017 @01:10AM (#14145571)
What? It absolutely was. Whole generations of today's JS people trained themselves with View Source.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by nine_k on Wednesday April 19, 2017 @01:39AM (#14145696)
....decompiling minified Javascript?

Sorry, this ship has sailed.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by mathw on Wednesday April 19, 2017 @04:19AM (#14146267)
That was before minification. I think that ship already sailed.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by jerryszczerry on Wednesday April 19, 2017 @06:24AM (#14146720)
> The idea that all of sudden there is going to be a rush to push compiled/closed sites after so many very successful years of using free-and-open stacks seems rather non-logical to me.

Well, then we have minified JS that isn't exactly readable. Similarly with multiple-compiled JSX-to-ES6-to-ES5/JS code.

Also, there's a number of JS obfuscators, whose main purpose is to smuggle a piece of closed code into those theoretically “free-and-open” stacks.

Thus, I think, after wasm becomes generally supported, there will be more incentive to write code in your language of choice and compile it to a common platform, than to write code in JS or one of its derivatives and minify/compile it anyway.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by finchisko on Wednesday April 19, 2017 @01:15AM (#14145599)
I see your point. But I'm more optimistic. We devs like to jump on hype trains. We only need one good reason to do so.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by ZenoArrow on Wednesday April 19, 2017 @01:15PM (#14149517)
>"compiled/closed sites"

It's worth noting WebAssembly isn't compiled into a form only computers can understand. There are plans to offer 'View Source'-style functionality for WebAssembly. WASM is a compressed AST rather than hardware-specific bytecode.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by cies on Tuesday April 18, 2017 @06:47PM (#14143729)
> Besides, languages that target WebAssembly are almost certainly going to evolve to fit that space.

And are already but now targeting JS. Like PureScript, ReasonML, Elm and even TypeScipt to some extend.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by goldbeck on Tuesday April 18, 2017 @05:37PM (#14143176)
If this is such a good and valuable idea, why will it never happen? Seems the major internet-interface makers (Google via Chrome, FB via their app, for ex), are vying for control over the way people develop web applications too. Making an alternative that gets adopted would be invaluable to them.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by jpk on Tuesday April 18, 2017 @06:07PM (#14143436)
It won't happen because none of them will implement the other guy's new thing. Chrome would do the Google thing, Edge would do the Microsoft thing, and Firefox would sit back and balk that none of that junk is standardized. Then webdevs would just stick with Javascript and friends because it's the only thing that mostly works everywhere. That's exactly what happened to Dart, right? It had aspirations of hopping into Chrome along side JS but who else was going to put it in their browser? Now it's just another thing that compiles to Javascript because that's the only way you'd get anybody to adopt it.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by tannhaeuser on Tuesday April 18, 2017 @06:20PM (#14143535)
You could also see it the other way around. That we've come pretty far with standardization based on JavaScript and HTML5 (and CSS and SQL and POSIX and IP ...). What do you expect exactly?
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by jfoutz on Tuesday April 18, 2017 @06:27PM (#14143590)
Mozilla is probably in the best position to do something. If it's good enough to get developers to switch and rave about it, ms and google will follow to keep mindshare.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by tannhaeuser on Wednesday April 19, 2017 @01:45AM (#14145722)
JavaScript was invented by Netscape, the predecessor of Mozilla. Also Firefox came out in a phase of browser stagnation, but Chrome in particular and the other browsers are so powerful today that I'm more worried we're going to loose web standards to "whatever WebKit does". So I wouln't hold my breath.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by bigato on Wednesday April 19, 2017 @07:43AM (#14147020)
Not true, see webassembly.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by jpk on Friday April 21, 2017 @05:39PM (#14169632)
The parent and grandparent were talking about unilaterally developed tech, "At the end of the day all it would take is one of the 3 major browser vendors to offer an alternative." etc

The correct comparison there is Dart. WebAssembly is a joint effort being developed by a team comprised of folks from every major browser vendor, so it isn't really an example of what they're talking about.

Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by bigato on Wednesday April 19, 2017 @07:42AM (#14147017)
That already happened and is called webassembly. And it is backed by not one, but all of the major browsers.
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by Bombthecat on Wednesday April 19, 2017 @06:14AM (#14146694)
Dart is shipped with chrome, or not? I don't see any huge success :)
Re:Facebook Announces React Fiber, a Rewrite of Its React Fr... by bigato on Wednesday April 19, 2017 @07:41AM (#14147015)