News for hackers. Stuff that matters.
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by KenanSulayman on Friday August 28, 2020 @07:19AM (#24303567)
1. Valid point.

2. ?

3. Chrome (or more specifically CEF -- Chromium Embedded Framework, the one used by Spotify et al.) is significantly more heavy than UL. Memory use is massive. Google doesn't care about API stability and ABI breakage is so common you'll have to keep up with all API changes (the ones published and documented anyway...) to get anything done. Good luck embedding Servo!

4. ARM support is coming.

---

> the others are 'community maintained'. Whatever that means.

I maintain the Rust binding to Ultralight [0] via the CAPI to provide an ergonomic way for people to work with it. Adam is busy improving Ultralight itself, so I find it worthwhile to maintain it. That's what it means.

[0] https://github.com/psychonautwiki/rust-ul

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by OskarS on Friday August 28, 2020 @07:47AM (#24303742)
> Good luck embedding Servo!

You know, it doesn't really seem that hard to embed Servo in a Rust application [0]. It's a pretty interesting read.

Anyone know how stable Servo is for this kind of thing? It's not uninteresting as a cross-platform GUI solution or as more lightweight alternative to CEF (assuming it is more lightweight, I haven't done the science on it or anything). Given that you have total control over everything it renders, it's not massively important if it's not 100% HTML compliant or whatever.

Interesting space to watch for the future. Hopefully the Mozilla layoffs don't doom Servo.

[0]: https://github.com/paulrouget/servo-embedding-example

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by KenanSulayman on Friday August 28, 2020 @08:46AM (#24304189)
That's a great repository, thanks.

However, Servo just isn't ready yet. There are just so many rendering issues that it's worth waiting for it to become more mature. (If you don't believe me, open https://psychonautwiki.org with Servo..)

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by rozab on Friday August 28, 2020 @08:18AM (#24303959)
Ok, ok, hold the phone. Why does the psychonaut wiki maintain the rust bindings?
Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by KenanSulayman on Friday August 28, 2020 @08:42AM (#24304152)
I'm using headless UL to statically render articles on-demand so that CDN caches can be warmed up at each PoP so that people from less fortunate areas (middle-africa, southern americas, researchers in either pole of the earth -- yes we had them, former soviet countries, ..) can access the wiki just like any other user would. It strips out the unneccessary bells and whistles.

Also I think Adam is a great person and I think it's worthwhile to support his project.

Re:C++ Lightweight, cross-platform, HTML rendering engine fo... by adamjs on Friday August 28, 2020 @11:47AM (#24306250)
Thank you!