News for hackers. Stuff that matters.
Re:Nuclear – Popcorn Time for music by snorremd on Wednesday January 16, 2019 @11:57AM (#18922450)
Considering all the Electron criticism that permeates every single "show hn" thread about apps written with Electron I have to symphatize with the author's remark.

There are legitimate technical grievances with Electron, but how many time must those be expressed? If we data mined every Hacker News comment for negative comments about Electron would it be considered big data? I just don't think the persistent Electron criticism for each and every Electron app is very productive.

As other commenters have expressed. If someone could provide an example of an alternative to Electron that provided the same affordances (multi-platform, open source, permissive license, proper web view support), then by all means.

Not everyone is Spotify and can invest the technical know how to make things with Chromium Embedded Framework. To this day the Linux client for Spotify is not an officially supported client. It is something the Spotify developers maintain of their own volition.

And QT, a popular window toolkit, is quite expensive unless you release your software under GPL (at which point you can use QT for free under the GPL license).

Also, a single maintainer does not have time to work on three or more window toolkits for their app (Windows Forms, Cocoa, and GTK).

Re:Nuclear – Popcorn Time for music by pdkl95 on Wednesday January 16, 2019 @02:50PM (#18924346)
> multi-platform, open source, permissive license

https://wxwidgets.org/about/

> web view

https://docs.wxwidgets.org/3.0/page_class_cat.html#page_clas...

However, a "web" view could be interpreted in many ways; are you just looking for an easy way to layout formatted text/images/etc? Many toolkits (including wx) have lightweight HTML widgets.

If your app doesn't actually need a "web view" (many don't), Tk is easy to use[1], has strong cross platform support, is BSD licensed, and bindings are available in many languages.

[1] https://tkdocs.com/tutorial/intro.html

Re:Nuclear – Popcorn Time for music by loeg on Wednesday January 16, 2019 @03:03PM (#18924485)
Or Qt, or Gtk... all are cross platform, free, straightforward to use, and have web views.
Re:Nuclear – Popcorn Time for music by saagarjha on Wednesday January 16, 2019 @01:09PM (#18923256)
One of the major issues with Electron is that it encourages users to rely on very specific versions that their Electron/Node runtime supports, which prevents the "solution" of wrapping a website in a web view and calling it an app, which, while still not great, is much better than bundling the same resource hog with each individual app.
Re:Nuclear – Popcorn Time for music by bluedino on Wednesday January 16, 2019 @02:04PM (#18923852)
What's funny is people won't tolerate these platform-independent frameworks on their mobile devices, but eat it up on their PC's.
Re:Nuclear – Popcorn Time for music by TeMPOraL on Wednesday January 16, 2019 @02:22PM (#18924057)
Nah, I think people complaining about those mobile frameworks are the same group as people complaining about Electron. I'm definitely in both groups, and mostly for the same reasons: bloat, bad performance, and being inconsistent and not interoperable with everything else running on the machine.
Re:Nuclear – Popcorn Time for music by detaro on Wednesday January 16, 2019 @03:14PM (#18924609)
> And QT, a popular window toolkit, is quite expensive unless you release your software under GPL (at which point you can use QT for free under the GPL license).

WHY do people keep repeating that?! Qt is NOT under GPL, you do NOT need to release your software under GPL to use it!

Re:Nuclear – Popcorn Time for music by snorremd on Wednesday January 16, 2019 @03:33PM (#18924827)
They use a dual licensing model, one copy-left and one commercial. To be specific they use LGPL, not GPL. http://doc.qt.io/qt-5/opensourcelicense.html

If you don't want to abide by the LGPL requirements you will have to fork out 459 USD a month. For an established development company this is not a big deal, but for a side project?

Re:Nuclear – Popcorn Time for music by detaro on Wednesday January 16, 2019 @03:40PM (#18924920)
If you know the difference, then why did you claim it requires you to license your code under GPL? You can use Qt and other LGPL libraries from a proprietary, closed-source code base if you wish, no license fee required. LGPL is a lot less onerous than GPL.

LGPL is mostly a problem on iOS, since as far as I know it collides with App Store licensing rules, but not that big a deal on desktop platforms.

Re:Nuclear – Popcorn Time for music by snorremd on Wednesday January 16, 2019 @04:37PM (#18925580)
Yeah, my mistake. From what I gather after reading more about it one only has to take care to dynamically link the qt parts when compiling a binary.
Re:Nuclear – Popcorn Time for music by zeveb on Wednesday January 16, 2019 @12:29PM (#18922805)
> There are legitimate technical grievances with Electron, but how many time must those be expressed?

Every time until it's no longer used. JavaScript delenda est:

https://news.ycombinator.com/item?id=11447851

> And QT, a popular window toolkit, is quite expensive unless you release your software under GPL

'Doc, it hurts unless I do this.'

Then do that! Don't be a software hoarder.

> Also, a single maintainer does not have time to work on three or more window toolkits for their app (Windows Forms, Cocoa, and GTK).

As I mentioned elsethread, X11 & POSIX are supported on Windows, macOS, Linux & the BSDs. Just write against that, and you're done.

Re:Nuclear – Popcorn Time for music by the_trapper on Wednesday January 16, 2019 @02:24PM (#18924085)
I'll take an Electron app on Windows any day over one that has to utilize an X11/POSIX layer to run. In fact I'm not aware of any widely utilized software on Windows that relies on the stack you're advocating for.
Re:Nuclear – Popcorn Time for music by loeg on Wednesday January 16, 2019 @03:05PM (#18924501)
I don't believe Qt on Windows uses or requires X11 in any way; grandfather commenter is just confused.
Re:Nuclear – Popcorn Time for music by CamperBob2 on Wednesday January 16, 2019 @03:13PM (#18924596)
It also isn't GPL-encumbered.