Live data from Hacker News

Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

github.com

101–110 of 281 posts

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#101
post #61

Maintainer here – Happy to answer any questions!

Does this use the native OS’s current default browser renderer? If so is windows using edge or chromium under the hood?

There's no browser component. Qt (https://www.qt.io/) is the granddaddy of native cross-platform GUI.

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#102

Earlier quoted context omitted.

I know QT is dual licensed for application development. How's the licensing here?

From Qt's page https://www.qt.io/licensing/open-source-lgpl-obligations : "In case of dynamic linking, it is possible, but not mandatory, to keep application source code proprietary as long as it is “work that uses the library” – typically achieved via dynamic linking of the library."

Also, Chromium's Blink renderer has a lot of LGPLv2 source files that date back to the KDE KHTML days[1] and as you can see by the numerous proprietary applications that use Electron and Chromium Embedded Framework, that this doesn't hinder companies from using LGPL libraries as long as they abide by the license.

However, one thing to note: the OSS version of Qt uses the LGPLv3 license, which has additional restrictions (like the "Anti-Tivoization" clause) which make it incompatible with the iOS AppStore thus forcing you to use the commercial version of Qt in those situations. Not sure about the Mac and Windows 10 app stores, I am curious if anyone knows/has experience with LGPLv3 and those stores?

[1] https://github.com/chromium/chromium/search?q=%22kde.org%22

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#103
post #66

Looks really good! At first glance, this seems like probably the best Electron alternative I've seen posted on HN. Apart from the consistent GUI layer, I think an underrated reason that many teams stick with Electron is the mature tooling for cross-platform builds and upgrades. It's pretty painful to DIY. It looks like NodeGUI doesn't currently support cross-compilation--is that something that's on the roadmap? How a…

Strongly agree. Hello World apps are great but it would be even better to see a Hello World tutorial that can actually be distributed to customers. You probably also need auto-update, native installers, code signing (notarization on Mac) and the ability to build native modules cross-platform. This is a super-interesting project though.

Sure, would be great if everything had everything we need at creation. But this is first a Show HN from a user here and secondly open source software, so I think you need to adjust your expectations a bit.

Agree with your final part, very exciting and gonna be interesting to see where nodegui goes, especially security wise.

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#104
post #93

Earlier quoted context omitted.

What does Electron offer in terms of portability that SDL2 doesn't have?

The larger point is ease of use

Fine, "What does Electron offer in terms of easy portability that SDL2 doesn't have?"

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#105
post #73

I'm seeing a lot of Qt vs. Chromium in this thread. Here's your mindblown.gif of the day: Chromium is based off Webkit which is based off KDE which is based off Qt. https://en.wikipedia.org/wiki/KHTML

Agree, there is a linage. But to say they are similar because of that is like saying Fortan and Ruby is similar because of the shared heritage. Still useful to compare them if you have to.

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#106
post #50

Earlier quoted context omitted.

It’s unfortunate but the component library situation is really Svelte’s weak point currently. At Monitoro[0] we bit the bullet and implemented the vast majority of our components from scratch. Apart from the obvious time to develop and test, and the trailing bugs that are hard to solve for small closed source projects, the experience wasn’t that bad. Ultimately what helped us the most is writing our components using…

Word, thanks! I think it's interesting because Svelte community support is pretty big. The repo's consistently been on Github's Trending repos for the past 2.5 years and it has an impressive number of stars

> been on Github's Trending repos for the past 2.5 years and it has an impressive number of stars

Wow, must mean the project is real important. I agree that svelte is interesting, but focusing on metrics and popularity is the wrong approach to new technology.

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#107
post #24
post #14

This looks nice ! However... "Low CPU and memory footprint (...) memory usage is under 20 MB for a Hello World program" : I am the only one who still thinks this is huge ? (-> https://tonsky.me/blog/disenchantment )

That blog post does speak to me, but 20MB for a program with a truly functional, modern UI doesn't outrage me that much. IMO there's a tradeoff: we could be writing all our programs in C, still. But it would be enormously difficult and there'd be way more bugs. On the other end of the spectrum we can be lazy, use web tech everywhere and never optimise our ballooning JS codebases. This feels like it's at least somewhe…

> It's doing autocomplete suggestions, linting code as I type

Even so, shouldn’t it be able to do that in 16ms?

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#108
post #14

This looks nice ! However... "Low CPU and memory footprint (...) memory usage is under 20 MB for a Hello World program" : I am the only one who still thinks this is huge ? (-> https://tonsky.me/blog/disenchantment )

I’m less concerned about the footprint and more about security. It can be assumed that anything running on the desktop has or will have vulnerabilities. The rise of web applications has been partially due to the assumption of great sandboxing. I look forward to this project doing well, but it’s not the first time I’ve seen an electron competitor on HN promoting it being Node-based. Node isn’t sandboxed by default.

Another commenter brought up the idea of porting it to Deno – I’m not sure how inter-compatible the two are, but it provides a hopeful future direction to facilitate sandboxing.

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#109
post #73

I'm seeing a lot of Qt vs. Chromium in this thread. Here's your mindblown.gif of the day: Chromium is based off Webkit which is based off KDE which is based off Qt. https://en.wikipedia.org/wiki/KHTML

Agree, there is a linage. But to say they are similar because of that is like saying Fortan and Ruby is similar because of the shared heritage. Still useful to compare them if you have to.

Ruby isn't a fork of FORTRAN and Ruby isn't written in FORTRAN. The lineage from Qt to Chrome is both those things. It's more than heritage it's an origin story.

Re: Show HN: Svelte NodeGUI, a lightweight Electron alternative with native UI

#110
post #97
post #89

How do you deal with zero day vulnerabilities? To me the biggest concern using browser-as-a-desktop solution is that there will be quite a lag between when Chrome patches zero days vs when it gets released. ex) nw.js, electron.

What sort of vulnerabilities are you worried about? You're running trusted code, connecting to a trusted service via https. Not browsing arbitrary websites. I doubt many vulnerabilities would affect this.

> trusted service via https

you think that would stop a zero day vulnerability? if you have browser that won't be updated for a long time and its connected to the internet, it is a huge attack surface.

Unless you were running local static file without ever talking to the internet.

Post reply on HN