News for hackers. Stuff that matters.
Re:Qt Quick WebGL Streaming by mumphster on Monday February 27, 2017 @12:01PM (#13745659)
Except for the millions of people using apps such as Slack or Discord or people using the new Keybase desktop offerings, or people using Atom, or VSCode.

Electron (sadly imo) is being used in plenty of newly developed cross platform applications, a lot having users that have no clue what hackernews is.

Re:Qt Quick WebGL Streaming by problems on Monday February 27, 2017 @12:09PM (#13745746)
None of these apps feel quite right though. Even Atom still doesn't do DPI scaling properly. VSCode does, but opening 2 panes sometimes causes it to break.

Sample problem (left pane blurry, right pane sharp - view at 1:1 scale on ~100dpi screen to notice it easiest, but it's quite visible to me with scaling even): https://i.imgur.com/Ju0UK2K.png

Re:Qt Quick WebGL Streaming by zer0t3ch on Monday February 27, 2017 @08:53PM (#13750470)
I've never had any issue with Discord feeling "not quite right".
Re:Qt Quick WebGL Streaming by mememachine on Monday February 27, 2017 @09:28PM (#13750631)
You dont know what he means? They dont feel like native, they feel like web apps.
Re:Qt Quick WebGL Streaming by zer0t3ch on Monday February 27, 2017 @10:19PM (#13750858)
I have noticed that with some Electron apps in the past, but I had actually never noticed that with Discord. I thought it was native for the first 4 months I was using it because it was just done so well, no lag and such. The one thing that usually gives away electron apps is their lack of custom right-click handling, meaning a right-click will give you the generic context menu you would normally see in a browser. Discord seems to handle all right-clicks with their own context menus which is why I never caught onto it at first.
Re:Qt Quick WebGL Streaming by problems on Tuesday February 28, 2017 @12:23AM (#13751472)
Sample weird behavior from Discord:

Make the window too small and the buttons overlap in the titlebar. I didn't even pick an extremely small size or anything, this was about half my screen width on my Macbook. But this is the kind of thing that making a proper native app forces you to think about, but that making an Electron app often doesn't.

http://i.imgur.com/MOaESLC.png

I can pretty much tell within a minute of starting an Electron app because things just don't feel right no matter what the app is. Sibling mememachine is also pretty accurate - Discord is very oversized like many other Electron apps.

Not using native platform widgets is also incredibly noticable. Every time you're not using native platform buttons or menus it's so easy to tell, it feels weirdly slow, has excessive gaudy animations, the spacing is wrong, text size is wrong, etc. That's not to say that it can't be done right just that you're on an existing platform and that consistency is key.

Re:Qt Quick WebGL Streaming by zer0t3ch on Wednesday March 01, 2017 @02:31AM (#13762016)
While you do raise some valid points, and some that I disagree with, I've grown to appreciate such apps as of late. There was a time not long ago where half the shit on my computer was Java because that was the only practical way to make a decent cross-platform application without having to relearn different things for each platform. Yeah, the whole "apps built on web-technology" movement could use some refinement to reduce bloat and such, but when done correctly, it seems to work out pretty well for the most part.
Re:Qt Quick WebGL Streaming by mememachine on Monday February 27, 2017 @10:29PM (#13750905)
What gives away electron to me is the really giant non-native UI elements. Its like everything is as bloated as the underlying system!
Re:Qt Quick WebGL Streaming by zer0t3ch on Wednesday March 01, 2017 @02:32AM (#13762019)
> really giant non-native UI elements

You act like this is a problem exclusive to Electron apps. People have been doing shit like that forever.

Re:Qt Quick WebGL Streaming by sho_hn on Monday February 27, 2017 @12:07PM (#13745727)
Is Electron newsworthy? Sure. At the same time there's vastly more paid Qt devs than Electron devs at this time, and more apps by orders of magnitude, including many with millions of users, and big new ones every week. Along with many application domains Electron isn't even an option in. But you wouldn't know it from HN coverage.
Re:Qt Quick WebGL Streaming by baldfat on Monday February 27, 2017 @12:35PM (#13746008)
I use RStudio on a daily bases and it works amazingly well. VS Code has become my daily driver on Linux and Windows. I think there are plenty of good examples of electron apps and bad electron apps.

Qt is great but electron has certainly been getting better and better.

Re:Qt Quick WebGL Streaming by santaclaus on Monday February 27, 2017 @12:59PM (#13746247)
Those load times on Electron apps, though... I'm a big fan of VS Code but 30 second reload times when updating extensions are a real PITA.
Re:Qt Quick WebGL Streaming by baldfat on Monday February 27, 2017 @02:18PM (#13747008)
I have a 8 year old Dell running OpenSUSE. I counted 9 seconds to open the app. It was 6 seconds to reload after updating 5 extensions.
Re:Qt Quick WebGL Streaming by CJefferson on Monday February 27, 2017 @02:02PM (#13746826)
There is I think something up with your computer, or your VS Code.

I have a 4 year old mac and VS Code goes from closed to a file opened in about 4 seconds. Still a stupid amount of time for a text editor, but no-where near 30.