News for hackers. Stuff that matters.
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by viach on Friday August 28, 2020 @04:45AM (#24302709)
The code is there, but not all of it, as I understood - except the "Proprietary GPU Renderer". And yes - "Ultralight is free for non-commercial use and free for commercial use by companies with less than $100K gross annual revenue"
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by Rochus on Friday August 28, 2020 @08:48AM (#24304200)
Not all code is there. The website https://ultralig.ht/ says "No source code for proprietary modules" for the free version. If you want to use the technology in your free application then you tnerefore have to depend on a proprietary closed-source library. And as it seems only to save a bit of RAM. Better use Qt.
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by genocidicbunny on Friday August 28, 2020 @12:34PM (#24306872)
To be fair, Ultralight supports the console platforms, which it cannot do with open source code (not allowed by the developer agreements.) As such, it would already have to have a way to deal with non-public binaries or sources in the tree. In addition, a GPU renderer that plays nice as an embedded library, and is performant and can properly render html is not a small feat of engineering. I cannot entirely blame the author(s) for keeping that part proprietary. I just question the wisdom of it in the face of free competition like WebKit, CEF, Sciter or Qt.
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by adamjs on Friday August 28, 2020 @01:13PM (#24307382)
Yep, we maintain an Xbox port and are porting to PS4, PS5, and Switch next.

Yes, the GPU renderer (and CPU renderer) took about 4 years of R&D alone to get to a usable state (we started on GPU rasterization long before WebRender was even around).

FWIW, a large number of our customers need commercial support and have complex integration concerns that go significantly beyond what those offerings provide (just in the past week, we've been doing custom development for several game studios to get our renderer working in their engine on their platforms).

Also we fully intend to stay current with WebKit trunk (we use a fork of their WebCore/JavaScriptCore modules) since a number of our users need to support modern HTML/JS/CSS (latest build supports ES6 modules, WebAssembly, and more).

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by Rochus on Friday August 28, 2020 @01:08PM (#24307317)
> Ultralight supports the console platforms

I don't understand that. The readme says "Ultralight is a lightweight, cross-platform, HTML rendering engine for desktop apps and games." How does this fit with your argument?

> which it cannot do with open source code (not allowed by the developer agreements.)

Why not?

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by genocidicbunny on Friday August 28, 2020 @01:12PM (#24307369)
Consoles, as in PS4, XB1, soon PS5..etc. Elsewhere in the thread the author said that some of these are already supported, and others are coming soon. Access to the SDKs for those, which you would need to run something like UL, is governed by contracts that you as a developer sign with the platform owner -- Sony, Microsoft, Nintendo, etc.

These agreements very rarely (read: never) allow publishing of the SDK sources in any fashion. Even simply exposing code that calls into SDK functions would be in violation.

You don't get access to the SDK unless you sign the contract, and if you sign the contract and breach it, they have legal cause against you. Usually if you want to use third-rdparty software for these closed platforms, the third-party and you must both have developer agreements with the platform owner. This of course excludes software that you as a developer ported to the platform on your own.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by Rochus on Friday August 28, 2020 @02:14PM (#24308190)
Ok, I see, you're talking about home video game consoles, not command-line interfaces. I'm not home console developer (nor user); one reason is that it ties one too closely to the proprietary technology of individual manufacturers. But I see your point. Your arguments do not contradict my statements. I only stated that not all source code are available in the free version and therefore it is not an open source product.
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by saagarjha on Friday August 28, 2020 @04:52AM (#24302760)
GitHub says the project is 100% CMake, and I didn’t see anything to make it ignore the large amount of C++ that I would expect to underlie this project. Do you know where I could find the parts you’re talking about?

Edit: I found it, it’s in another repository at https://github.com/ultralight-ux/WebCore.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by austincheney on Friday August 28, 2020 @04:56AM (#24302791)
You didn't look very hard. The commit message on the cMake.txt says:

> Pruned repo history to get rid of 200MB of stale binaries. Repo has now been restructured to pull binaries in from S3 buckets during CMake build.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by saagarjha on Friday August 28, 2020 @04:59AM (#24302812)
Those would be binaries, which I am not interested in. However, I did find the source I was looking for.
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by monadic2 on Friday August 28, 2020 @05:22AM (#24302937)
> GPU Renderer

That seems rather important.