News for hackers. Stuff that matters.
Re:China’s first ‘fully homegrown’ web browser found to be G... by amelius on Thursday August 16, 2018 @11:52AM (#17775720)
A better approach would be to allow websites to implement their own render engine. If they don't supply a render engine, then the browser picks the default one (which, at some point, will stop being updated).
Re:China’s first ‘fully homegrown’ web browser found to be G... by gmfawcett on Thursday August 16, 2018 @12:07PM (#17775861)
Maybe we could give the rendering engines catchy names like Shockwave, Flash, Silverlight, and JavaApplet. :)

You can barely trust a typical Web site to run Javascript in your browser without leaking personal information to God knows who. I'm not going to trust them with a full-blown rendering engine.

Re:China’s first ‘fully homegrown’ web browser found to be G... by amelius on Thursday August 16, 2018 @12:42PM (#17776249)
Once people can run JavaScript and WASM in a sandboxed environment (the browser), you might as well give them the ability to run a rendering engine. There is nothing magical about rendering engines.

Comparison with Flash et al. is not accurate anymore, since these ran in an unprotected environment. Also, they were cumbersome install whereas WASM apps don't need installation (but can live in a cache if desired, and could even be shared among websites).

Re:China’s first ‘fully homegrown’ web browser found to be G... by dTal on Friday August 17, 2018 @08:24AM (#17782238)
"Cumbersome installs" and "unprotected environment" were not why people hated Flash. People hated flash because it couldn't be {scraped, crawled, searched}, broke elementary browser controls like copy/paste and the back button, resulted in laggy and clunky UIs, and was excessively heavy on bandwidth. All of this would apply just as much to WASM 'apps'.

Fundamentally the problem is the conflict between the browser as an 'app' platform and the browser as a document viewer. Put simply, would you rather your user interface be 1) a magnificent piece of software with thousands of man-years put into it, debugged over decades, where every use case has been meticulously considered, or 2) a shitty script written by an overworked web developer?

Re:China’s first ‘fully homegrown’ web browser found to be G... by mbrumlow on Thursday August 16, 2018 @12:10PM (#17775882)
And am sure this will happen. At some point websites will start shipping rendering with webasm. I am it keen on the details but a well done one could use a canvas to do the rendering.

As a anadotal. We can already fo to websites that run vms and emulate old operating systems. I dont this it is far fetched to run a web browser in a web browser.

Re:China’s first ‘fully homegrown’ web browser found to be G... by wvenable on Thursday August 16, 2018 @12:41PM (#17776228)
Unfortunately that destroys accessibility. If you want to support accessibility, then you need a more complicated rendering target than something like a canvas.
Re:China’s first ‘fully homegrown’ web browser found to be G... by orbitur on Friday August 17, 2018 @06:24AM (#17781663)
It will for a bit. The people who build UI frameworks in wasm will either make it a priority or they'll add it later.

It sucks but this is the way we're heading. I'm not sure web devs will even be writing HTML in 5 years beyond adding a canvas tag.

Re:China’s first ‘fully homegrown’ web browser found to be G... by amelius on Thursday August 16, 2018 @12:45PM (#17776285)
With modern ML, that is not true. For example, a browser could easily run OCR on the frame-buffer and read it out loud.

In fact, the approach would be more general, since a lot of text is already embedded in images on a lot of websites (think also about ads).

Re:China’s first ‘fully homegrown’ web browser found to be G... by Anarch157a on Thursday August 16, 2018 @02:36PM (#17777378)
In other words: "Print the file, send the printed sheets by fax to the remote office, once received, OCR them and save to a file"

Not to mention that there's no such thing as "Easily run OCR", considering how many weird fonts there are, and that they could be rendered in such small size as to make it difficult even for humans to tell them apart.

Re:China’s first ‘fully homegrown’ web browser found to be G... by realityking on Thursday August 16, 2018 @01:28PM (#17776716)
If you look at any platforms accessibility APIs, there’s a lot more to it than just exposing text.

The simplest example: how do you indicate a graphic or piece of text is a button or link? How do I set the alternate text if it’s a graphical button.

Re:China’s first ‘fully homegrown’ web browser found to be G... by amelius on Thursday August 16, 2018 @02:29PM (#17777315)
The render engine still has to do that. But that isn't much different from how it works now, where the website has to provide the necessary information.

Besides, nobody says we can't have a protocol for some additional accessibility information.

Re:China’s first ‘fully homegrown’ web browser found to be G... by ljm on Thursday August 16, 2018 @03:23PM (#17777722)
And then somebody says "how about we abstract this into some kind of markup language?" and we've come full circle.
Re:China’s first ‘fully homegrown’ web browser found to be G... by amelius on Thursday August 16, 2018 @05:21PM (#17778511)
A common markup language would be great! As long as we use it in a way that keeps us far away from compatibility problems.
Re:China’s first ‘fully homegrown’ web browser found to be G... by wvenable on Thursday August 16, 2018 @06:32PM (#17778951)
But you have to make it extendable because you can't predict every possible use-case. So some kind of Extensible Markup Language, perhaps.
Re:China’s first ‘fully homegrown’ web browser found to be G... by ljm on Sunday August 19, 2018 @03:58PM (#17795887)
Maybe we make a sort of 'hyper' extension that comes with all kinds of baked in behaviours, so that we don't have to implement that behaviour ourselves when we deserialise it.
Re:China’s first ‘fully homegrown’ web browser found to be G... by wvenable on Sunday August 19, 2018 @04:51PM (#17796113)
That's a good idea. Maybe we need a series of standards but all based on some kind of Standard Generalized markup.
Re:China’s first ‘fully homegrown’ web browser found to be G... by jononor on Thursday August 16, 2018 @06:15PM (#17778856)
You only get away from compatibility problems if either:

1. No-one uses it

2. There is only 1 implementation, and it is never updated

Re:China’s first ‘fully homegrown’ web browser found to be G... by geezerjay on Thursday August 16, 2018 @01:50PM (#17776970)
> For example, a browser could easily run OCR on the frame-buffer and read it out loud.

And then we wonder where all the software bloat comes from.

Re:China’s first ‘fully homegrown’ web browser found to be G... by zackbrown on Thursday August 16, 2018 @02:44PM (#17777445)
This can already be done today through canvas & webgl, or through clever combinations of DOM + JS + CSS. You can control every pixel that's rendered to the screen through the browser.

So why doesn't everyone roll their own? Some issues:

  - footprint - that whole runtime has to come across the wire just to render "hello world"
  - javascript's single-threaded tendencies make perf a big challenge
  - text rendering [this happens to be the thing the document-focused Web really excels at]
  - text semantics [SEO]
  - gigantic implementation effort [custom engines RARELY make sense even for the demands/budgets/returns of AAA games; how many websites justify this kind of investment?]
Re:China’s first ‘fully homegrown’ web browser found to be G... by TomMarius on Thursday August 16, 2018 @02:56PM (#17777530)
Yeah, that's because it's not really supposed to be used for that. Every single one of these is solvable if they wanted to support this use case. Ad footprint and implementation effort - of course there'd be just a few major ones that'd be cached at client side. Ad2 implementation effort, we can simply compile Qt or Gtk to WASM; it even works today, it's just slow because of platform limitations. This'd be used for applications primarily, document-oriented pages could stay HTML/CSS and HTML/CSS could be simplified thanks to complex web apps turning to other means.
Re:China’s first ‘fully homegrown’ web browser found to be G... by tokyodude on Thursday August 16, 2018 @12:51PM (#17776354)
That is a horrible idea. How many of them are going support Chinese, Korean, Thai, Japanese, and Arabic? If all you're supporting is English it's easy. As soon as you go international it's extremely hard to handle all the stuff you're unfamiliar with and shutting out people because their names isn't ASCII is not very inclusive.
Re:China’s first ‘fully homegrown’ web browser found to be G... by TomMarius on Thursday August 16, 2018 @02:59PM (#17777549)
So Gtk, Qt, Cocoa, Winforms, all of these are too hard to do? We can literally reuse (some of) these, all it takes is compiling them to WASM, it was already tried and it works, it's just slow due to current platform limitations.
Re:China’s first ‘fully homegrown’ web browser found to be G... by gaius on Thursday August 16, 2018 @04:31PM (#17778198)
There’s actually no reason the web couldn’t have been made of hyper-PostScript. Imagine how slick that would be.
Re:China’s first ‘fully homegrown’ web browser found to be G... by intrasight on Thursday August 16, 2018 @01:45PM (#17776913)
This approach has a long history. Of course the rendering engine was running server-side.