News for hackers. Stuff that matters.
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by zelly on Friday August 28, 2020 @04:33AM (#24302623)
Seems kind of misleading to post a github link that contains no code and it's actually nonfree software
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by saagarjha on Friday August 28, 2020 @04:44AM (#24302700)
This seems like it’s based on WebKit, parts of which are LGPL. Did they not modify it at all? (If so, why should I use this?) If they did, where is the code?

Edit: I think it’s at https://github.com/ultralight-ux/WebCore.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by adamjs on Friday August 28, 2020 @11:21AM (#24305923)
UL uses a fork of WebCore/JavaScriptCore (the layout engine and JavaScript engine from WebKit). It is indeed modified (been working on it 7 years) and released open-source on GitHub.
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by genocidicbunny on Friday August 28, 2020 @12:36PM (#24306890)
I noticed that the old Awesomium domains now redirect to the UL page. Is UL an evolution of Awesomium, or did you sort of start anew?
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by adamjs on Friday August 28, 2020 @12:53PM (#24307100)
Yep, We hit a wall when developing Awesomium-- long story short, the vision for Chromium long-term didn't match with our design goals so we announced to the community that we're starting over with something new (which turned out to be a minimal WebKit-port, eg. Ultralight).

From a business standpoint, we were offering paid commercial support for not just Awesomium but all the Chromium-related parts and that surface area had grown to be way too large to be maintainable. For the product to succeed we had to refocus efforts on building a solution we could fully own and met the requirements of our core market-- and that took about 6 years of R&D.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by adamjs on Friday August 28, 2020 @11:38AM (#24306123)
Hi there, lead dev of UL here (we didn't post the link, HN just found our beta :)).

That top-level repo is just our packager/samples, 90% of our code is open-source and available on GitHub (released under LGPL), see our WebCore [1] and AppCore [2] modules.

The product as a whole contains two proprietary modules which are indeed non-free but allow free use in non-commercial and commercial projects up to $100K in gross revenue.

* [1] https://github.com/ultralight-ux/WebCore

* [2] https://github.com/ultralight-ux/AppCore

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by Rochus on Friday August 28, 2020 @08:46AM (#24304188)
The website https://ultralig.ht/ says "No source code for proprietary modules." for the free version. So it's technically not an open source project and therefore not a suitable candidate for my projects.

Anyway the sole core benefit proposition compared to chrome seems to be less memory use.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by michannne on Friday August 28, 2020 @04:52AM (#24302759)
Especially ridiculous considering they have a site, a very professional one, at that
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by kristopolous on Friday August 28, 2020 @07:38AM (#24303689)
It's a shameless and transparent marketing play.

People will click on a GitHub link.

This is manufactured hn clickbait. I've never flagged before but this one deserves it

I wish them well and the technology may be great, but trying to play hn like that is not welcome.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by adamjs on Friday August 28, 2020 @11:42AM (#24306187)
Lead dev of UL here, we didn't post the link, and our GitHub repo is def not clickbait (the top-level repo is just the packager and samples), 90% of our code is open-source under LGPL and available on GitHub [1], [2]. The product as a whole is under a proprietary, non-free license with provisions for usage in free software [3].

* [1] https://github.com/ultralight-ux/WebCore

* [2] https://github.com/ultralight-ux/AppCore

* [3] https://ultralig.ht

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by michannne on Friday August 28, 2020 @01:19PM (#24307450)
Thanks for the clarification!
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by adamjs on Friday August 28, 2020 @12:43PM (#24306968)
Somebody just posted our top-level packager GitHub repo to HN instead of our website. (And hey thanks! I wrote that by hand a few months ago :))
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by bioipbiop on Friday August 28, 2020 @04:57AM (#24302800)
The code is available under other repos on their account.
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.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by ecmascript on Friday August 28, 2020 @05:22AM (#24302940)
Altough, their pricing is very fair imo.

Free for non-commercial use.

Free* for use by companies with less than $100K annual gross revenue.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by andi999 on Friday August 28, 2020 @05:27AM (#24302971)
So how high is the pricing?
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by mijoharas on Friday August 28, 2020 @07:31AM (#24303643)
I'm guessing the parent comment is saying that the free tier is fair.