>> 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.
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.
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...
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.
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..
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
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.
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.
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.
WebKit is the only open source project I've ever needed to dig into which immediately signaled onerous complexity, and did not disappoint on that instinct until I gave up. You, too, can have this experience, if you really want. Take a weekend, if you've been programming for a couple decades -- more, way more, if you haven't -- and just try to build WebKit. Go to the repository, follow the instructions, and just try to build the project.
That anybody would -- or could -- dig in, tear it apart, and try to make something better... That is impressive and I salute you. Edited to add: I am however only interested in using open source applications on Linux, so I'm out on this one, unfortunately. That's not strictly true -- for example, I use ST3 as my daily driver -- but I've got to see a substantial value proposition to weight my decision towards becoming a user. Still, impressive nonetheless, and best of luck to you in this endeavor!
Haha, at ease sergeant, thank you! Building WebKit from scratch was, shall I say, an exquisite learning experience. My first change was re-writing part of the CMake scripts to make it more elegant.
Did you get deep enough into WebKit to see that the namespace for the utility functions is called WTF? :)
I also like how there are at least five string classes (to be fair, there are good reasons for most of them): String, AtomicString, StringImpl, CString, WebString. Edit: If you're feeling particularly brave, look up some of the text-run and unicode bidi algorithm related code. I don't remember how old that code is, but some of the darker corners of WebKit go back literally decades.
Q: Who is behind Ultralight?
A: Hi, I'm Adam Simmons...
YES that is what I am talking about! I hate it when people try to hide behind a company name. When they try to make it out like they're some big "proper" business. Just tell me who you are, and I'll trust you much more. Just like this. Thank you very much Adam!
- What does it do to be better
(smaller, more memory-efficient) than a browser engine? Which features does one lose? - When will Linux support ship? (Edit: I see it's planned, this was just an assumption before) - There could be bindings to other languages in the future, right? (Edit: I see .NET compatibility is planned) Edit:
- Where's the source? Yes, this is a rethorical question; What is the motivation to keep it closed? This will probably hinder adoption (unless support is damn good). - Could you upload the files to GitHub (or some other, similar place)? It's probably less intimidating than "Get SDK" and a lot nicer to browse through samples on my phone (Chrome doesn't seem to forward zips to apps at all, I don't really have a good text/code viewer installed etc).
Pros (Ultralight is...) - Smaller distributable (25% the size of Electron/CEF or smaller). - Simpler and easier to build (fewer dependencies and smaller codebase). - More configurable (users can do custom handling of file system, fonts, GPU rendering, clipboard, and more). - Potentially more performant (all rendering is done via GPU command buffers). - First-class support from an actual company. Cons: - No support for MathML, Geolocation, WebGL, IndexedDB, WebAudio/Video (for now) - Less mature and unstable. - Slower release cycle (might be a pro). Linux support is planned and will ship when it's ready, you can track its progress here: [1] Yes, we have plans to publish a C API interface to simplify bindings for other languages. The WebCore source is available here [2]. The rest of the source is kept closed for now to keep our licensing/support options open. There's a chance we will find a better funding model and will open-source the entire repo in the future. Yes, I agree the SDK packages should belong on GitHub, and will also be BSD'ing the framework/sample code so users can fork and hack on it at will. - [1]: https://github.com/ultralight-ux/ultralight/issues/4 - [2]: https://github.com/ultralight-ux/ultralight-webcore
Comments (170) 40 threads
>> 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.
Continue this thread — 7 replies
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...
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.
Continue this thread — 1 reply
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
Qt / QML is an existing performant alternative to Electron.
https://github.com/pauldotknopf/Qml.Net
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.
That anybody would -- or could -- dig in, tear it apart, and try to make something better... That is impressive and I salute you.
Edited to add: I am however only interested in using open source applications on Linux, so I'm out on this one, unfortunately. That's not strictly true -- for example, I use ST3 as my daily driver -- but I've got to see a substantial value proposition to weight my decision towards becoming a user. Still, impressive nonetheless, and best of luck to you in this endeavor!
I also like how there are at least five string classes (to be fair, there are good reasons for most of them): String, AtomicString, StringImpl, CString, WebString.
Edit: If you're feeling particularly brave, look up some of the text-run and unicode bidi algorithm related code. I don't remember how old that code is, but some of the darker corners of WebKit go back literally decades.
- What does it do to be better (smaller, more memory-efficient) than a browser engine? Which features does one lose?
- When will Linux support ship? (Edit: I see it's planned, this was just an assumption before)
- There could be bindings to other languages in the future, right? (Edit: I see .NET compatibility is planned)
Edit: - Where's the source? Yes, this is a rethorical question; What is the motivation to keep it closed? This will probably hinder adoption (unless support is damn good).
- Could you upload the files to GitHub (or some other, similar place)? It's probably less intimidating than "Get SDK" and a lot nicer to browse through samples on my phone (Chrome doesn't seem to forward zips to apps at all, I don't really have a good text/code viewer installed etc).
Pros (Ultralight is...)
- Smaller distributable (25% the size of Electron/CEF or smaller).
- Simpler and easier to build (fewer dependencies and smaller codebase).
- More configurable (users can do custom handling of file system, fonts, GPU rendering, clipboard, and more).
- Potentially more performant (all rendering is done via GPU command buffers).
- First-class support from an actual company.
Cons:
- No support for MathML, Geolocation, WebGL, IndexedDB, WebAudio/Video (for now)
- Less mature and unstable.
- Slower release cycle (might be a pro).
Linux support is planned and will ship when it's ready, you can track its progress here: [1]
Yes, we have plans to publish a C API interface to simplify bindings for other languages.
The WebCore source is available here [2]. The rest of the source is kept closed for now to keep our licensing/support options open. There's a chance we will find a better funding model and will open-source the entire repo in the future.
Yes, I agree the SDK packages should belong on GitHub, and will also be BSD'ing the framework/sample code so users can fork and hack on it at will.
- [1]: https://github.com/ultralight-ux/ultralight/issues/4
- [2]: https://github.com/ultralight-ux/ultralight-webcore
Slower deprecation cycle is a pro.
All comments shown.
Couldn't load more comments. Check your connection and try again.