News for hackers. Stuff that matters.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by pritambarhate on Friday August 10, 2018 @12:13PM (#17734620)
>> We needed something in between a huge, all-in-one browser toolkit and a bare-bones HTML UI renderer that only supports a tiny subset of HTML/CSS spec.

>> We started over with WebKit, stripped it to the bare-minimum, then rebuilt it from scratch with an eye towards embedding.

This is very similar to the origin story of Flutter. [1] In the end Flutter team just abandoned the HTML based UI idea and went with their own component system. As per the podcast, the core team doesn't have any plans to bring Flutter to the desktop development. I wish they would do it, that way we can get a performant alternative to Electron.

[1] https://softwareengineeringdaily.com/wp-content/uploads/2018...

Edit: Found the actual quote from the podcast:

>> We allowed ourselves, I think it was a week or two and we just tore Chrome apart and see how fast we could move on our benchmarks. Allowing ourselves to break compatibility to the web. The end result was we were 20 times faster on some of the benchmarks that we cared about and obviously, the end product wasn’t the web, it didn’t render all web pages, but it taught us that there was a lot of potential to do things better, faster, if we worked on something that was beyond the web.

Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by adamjs on Friday August 10, 2018 @01:05PM (#17735034)
That's really interesting! Thanks for sharing.

There's actually been several HTML UI projects that "break compatibility with the web" in varying degrees, with some breaking almost completely (eg, Sciter and libRocket) for the sake of simplicity and performance.

The goal of Ultralight was to see if we could strike a balance between modern HTML5 compatibility (eg, actually being able to render the Alexa Top 50) and reducing size and complexity for use in an embedded use-case.

I think we've struck a good balance so far but can go much farther. We plan to support much more of the web platform while still remaining small by use of shared modules (eg, for WebAudio/Video) so users can pick and choose how big of a distributable they want based on feature support.

As an aside, I took 2 years off just to explore if this was possible, partly funded by my previous work on Awesomium. This project is the result of that research and development.

Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by tomp on Friday August 10, 2018 @02:31PM (#17735701)
Do you support JavaScript? I always got the impression that that’s one of the most resource-heavy parts of the modern web, but at the same time it’s hard to render many modern webpages (webapps?) without it..
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by adamjs on Friday August 10, 2018 @02:33PM (#17735717)
Yep! In fact we expose JavaScriptCore API directly to users so your native code can call directly into the VM. Check the samples in the SDK.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by sdegutis on Saturday August 11, 2018 @01:39AM (#17738542)
I hope you add https://codesandbox.io/ to the list of websites that you aim to explicitly support! They use VS Code's editor (Monaco) internally, which does not work in WKWebView on macOS.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by jcelerier on Friday August 10, 2018 @03:57PM (#17736289)
> I wish they would do it, that way we can get a performant alternative to Electron.

Qt / QML is an existing performant alternative to Electron.

Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by pknopf on Friday August 10, 2018 @07:30PM (#17737425)
...and if you don't like C++

https://github.com/pauldotknopf/Qml.Net

Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by cheapsteak on Friday August 10, 2018 @04:12PM (#17736388)
How are their licensing terms?
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by ahartmetz on Friday August 10, 2018 @04:59PM (#17736696)
GPL, LGPLv3 or commercial.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by solarkraft on Friday August 10, 2018 @12:39PM (#17734813)
I love Flutter. It's super dumb that they are not pushing hard to every platform (you could render to the web and basically get the desktop for free!). I would love to use it for a desktop app, or maybe on the web.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by fit2rule on Monday August 13, 2018 @11:26AM (#17750812)
I love Flutter, too.

There are other ways to get the same juice, though.

I love MOAI, for the same reasons as I love Flutter. Except MOAI has a better license .. even if the responsibilities for using it as a non-Game GUI are pretty high. You can do it, but you've gotta have Lua-foo.

In my case, I'm going to glom Ultralig.ht onto MOAI some day soon, and see if it makes the Flutter desktop problem irrelevant...

Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by skybrian on Friday August 10, 2018 @01:03PM (#17735022)
Someone else could do it. After all, Electron wasn't started by Google.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by adamjs on Friday August 10, 2018 @02:01PM (#17735487)
Not to dismiss work done by the Electron team but Electron essentially wraps Chromium via CEF, so, tangentially it was made possible by Google.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by bluejekyll on Friday August 10, 2018 @02:14PM (#17735601)
And Chromium came from -> WebKit (Apple) which came from -> Konqueror/KHTML (KDE)
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by adamjs on Friday August 10, 2018 @03:08PM (#17735979)
Haha, I totally wrote that up but deleted it at the risk of sounding too fastidious.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by DC-3 on Friday August 10, 2018 @04:18PM (#17736440)
You probably mean pedantic. 'Fastidious' concerns attention to detail, not level of detail.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by FigmentEngine on Friday August 10, 2018 @05:16PM (#17736808)
no, pedantant is what you are doing: correcting above comms
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by adamjs on Friday August 10, 2018 @06:52PM (#17737273)
We've reached peak Hacker News.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by buchanae on Saturday August 11, 2018 @12:31AM (#17738356)
I wonder if there's a limit to thread depth.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by clamshell on Saturday August 11, 2018 @01:38AM (#17738540)
homie electron doesn't use CEF in any way
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by pjmlp on Saturday August 11, 2018 @07:30AM (#17739270)
Not only Flutter, that is how XAML and WPF came to be.

The team was lead by IE devs, which were trying to create a design how would it look like if the browser was actually designed for applications and not documents.

Also for those that aren't aware the initial design of CSS grid was based on how XAML grid layouts work.

Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by CraftThatBlock on Friday August 10, 2018 @03:53PM (#17736275)
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by baybal2 on Friday August 10, 2018 @02:04PM (#17735511)
My criticism of webkit is that it fails hard on separating concerns in code. The way JS is superglued into code base is prime example of it.

Netsurf is on other hand is an opposite:

Css parsing - separate lib

Html/xhtml parsing - separate libs

Network - fully based on external libs

Js execution - separate lib

Dom - separate lib

Layouting - separate lib

Final renderer - separate lib

It has a lot of promise

Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by kccqzy on Friday August 10, 2018 @07:05PM (#17737323)
What? WebKit doesn't contain any JavaScript implementation, certainly not glued in. Apple uses JavaScriptCore (Nitro) which wasn't even open source; before Google forked Blink, they were using WebKit with their own JS engine, V8.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by TheAccount on Friday August 10, 2018 @06:03PM (#17737054)
How spec compliant is Netsurf? JavaScript is "superglued" into the code base in all 3 major open source browser engines, mostly because it's also superglued into the specs.
Re:Show HN: Ultralight – Lightweight, Pure-GPU HTML UI Rende... by byproxy on Friday August 10, 2018 @12:44PM (#17734863)
I thought they were using Flutter in desktop development by way of the Fuchsia operating system.