Lurker News

Comments (170) 40 threads

Earlier comments
arciini#
One interesting Google project which I think shares a similar goal (but is not quite so easy to port yet) is Cobalt.

It strips down a subset of HTML that can then be used to render UI across different base platforms. I feel like it could be a good starting point as well
https://cobalt.foo/
I believe it's currently used by Youtube to render its HTML5 app on many set-top box devices

ddevault1 reply#
This is proprietary, so it's a non-starter.
mherrmann2 replies#
Care to elaborate why? I'm not affiliated with the project in any way. But if it works well and the documentation/support are there, why is it as completely unusable as you seem to claim? Your comment sounds like you're just fighting the holy FOSS war.
ddevault1 reply#
Because I see every piece of software like this as something I will inevitably have to dig deep into the internals of to fix bugs and send patches for if I were to adopt it. So should you.
mherrmann7 replies#
By being so religious about the open source aspect only, you are blind to the many potential other benefits a project may have. But to each their own.

Continue this thread — 7 replies

pknopf#
For me, I work on embedded systems, and every binary that goes on my devices have to be compiled with very specific toolchains/libs.
lx34596834 replies#
Now someone please explain why this isn't the electron-killer to save us all.
supermdguy3 replies#
- This sort of thing has existed for a while, and people still use electron [0], [1]

- It doesn't come with a DOM implementation, so most existing js libraries won't work. EDIT: actually it does have a DOM implementation, which is awesome
- Its API is in C++
- People are lazy
[0]: https://github.com/zserge/webview
[1]: https://bitbucket.org/chromiumembedded/cef

adamjs1 reply#
This thing HAS existed for a while (CEF/Electron, Awesomium, QtWebKit, GTKWebKit, etc.) but the size, memory usage, and flexibility has always been prohibitive.

Ultralight addresses all of those through a new, lightweight WebKit fork geared specifically for embedding in other apps. This is a major rewrite and has taken 4+ years to complete. I am the former creator of Awesomium and decided to tackle this issue myself.
Also, the library does come with a DOM implementation and most existing JS libraries work just fine.

supermdguy#
Wow, that's awesome that it supports DOM.
rapsey2 replies#
- Being a fresh C++ codebase, god knows what security vulnerabilities and stability issues it has.

- D3D 11 and metal required. Most likely huge compatibility/stability/rendering issues across different graphic cards and driver versions.
- Barrier to entry is one of the most important factors in a framework/library's success. You can't beat the Electron ecosystem where any idiot can make a cross platform app. This is really only useful for C++ developers.

adamjs3 replies#
- The beta is definitely not rock-solid stable yet but reasonably runs a majority of major websites. The current branch of Ultralight is based off of a stable branch of Safari/WebKit.

- The Ultralight library itself has no dependencies on D3D11 or Metal. The renderer emits virtual GPU driver commands that are consumed by the user (see GPUDriver.h). We ship a few stock implementations of GPUDriver for major platforms but users can undoubtedly write their own.

Continue this thread — 3 replies

iffycan2 replies#
> You can't beat the Electron ecosystem where any idiot can make a cross platform app.

As an idiot, I can attest to this. I'm constantly looking for lighter weight alternatives, but nothing so far has been nearly as simple as Electron. Here's the list of options I maintain: https://docs.google.com/spreadsheets/d/1dTZIp6z2J1IL7YgBlHG_...

Continue this thread — 2 replies

kodablah#
> - This sort of thing has existed for a while, and people still use electron [0], [1]

For reference, CEF is not much more lightweight than Electron. It still inherits Chrome's bloat and multiprocess weight. Also, webview only supports IE on Windows which is missing a lot of features.

flohofwoe1 reply#
It's "just" a renderer for a subset of HTML/CSS. Things like this existed for a long time, and even smaller (e.g. https://github.com/libRocket/libRocket).

Electron on the other hand is a full browser runtime, for better or worse. It probably would make more sense to create a cross-platform application packager which embeds the operating system's web-renderer into a window. But I think one of the main selling points of Electron is that you're guaranteed a specific version of the browser runtime, so your app suddenly won't stop working with a browser update.

adamjs1 reply#
It's not a subset, it's the full WebKit layout engine underneath and supports most modern HTML5/CSS/JS.

Ultralight can render full websites just fine and is also a full browser runtime, the SDK ships with a Browser sample on macOS and Windows.
With that said, Ultralight is indeed somewhere between libRocket and Electron in terms of size and support. We won't support things that are unrelated to HTML UI (for example WebGL) and are able to reduce our dependencies/size/complexity by limiting said support.

infogulch1 reply#
> engine ... supports most

That's what subset means.

Continue this thread — 1 reply

kodablah#
Openness. Electron succeeds because of dev friendliness.
dmoreno#
License.

Electron is MIT. Ultralight is proprietary. Electron always free to use even on comercial, ultralight only for small projects.

46844994 replies#
Electron is bloated indeed, but it's open source.
applecrazy3 replies#
Sure, it's not open source, but their licensing terms are quite generous. It's free for noncommercial use and for independent development (<$100k per year)[1].

Compare this to something like Qt, which is open source. But (as I understand it) it's LGPL licensed, meaning it can't be used commercially without paying the developer for a commercial license or releasing all the source code.
Of course, take this advice with a grain of salt. I've not really worked with Qt or Ultralight before, but I've been exploring my options for a project for a school club.
[1]: https://discuss.ultralig.ht/d/6-ultralight-0-9-beta-now-avai...
Edit: added source

detaro1 reply#
That's not what LGPL means, no. It's not GPL.

Continue this thread — 3 replies

dragonwriter#
> Sure, it's not open source, but their licensing terms are quite generous.

That's nice, but not being open source means it will never have the breadth of players who both use it and contribute back that Electron does, which is why it won't beat Electron on the long term, even if it had some intriguing advantages.

4684499#
Funny you didn't mention sciter. Sciter is also free for noncommecial use. In terms of memory usage, binary size, sciter is good enough. The downside of sciter is its script engine isn't javascript, and it's closed source too.

Edit: When I say open source, I didn't mean it has to be free of charge.

ognarb#
And support linux
mherrmann1 reply#
Tell that to the users who have to wait ages for "Electron" to start, and then gives their system resources the hug of death. Life is way more nuanced than "FOSS is good, everything else is bad".
ziftface2 replies#
Maybe, but for projects like this, it's as simple as "FOSS is a prerequisite", for me at least.
mherrmann#
Suit yourself. It's just a shame for the users who have to suffer a worse product because of your dogmatism.
the_duke#
Sometimes you wish copyleft licenses were still popular...

Load more comments