News for hackers. Stuff that matters.
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by lossolo on Thursday June 21, 2018 @01:01PM (#17366967)
> What are the remaining APIs that people need in Electron that are not available in the web browser?

https://nodejs.org/api/index.html

I don't think APIs like full access to filesystem will be available in browser because any malware could do anything it would like with your OS/files.

So in a lot of cases you can't really replace Electron with just normal webapp in browser.

Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by Asooka on Thursday June 21, 2018 @01:40PM (#17367415)
Or maybe some form of web archive format signed with a certificate? "Do you want to install Slack? It will have access to X, Y, Z"...

We already download programs off the internet and let them run with local privileges all the time, it should be possible to safely and securely extend the capability to programs delivered as html+css+js.

Also I don't see why Electron+node isn't installed system-wide like Java or .NET. Yes, I know it's because node is a server technology whose devs aren't interested in being Java, while the people shipping electron apps are just interested in the lowest friction to deploying native apps to customers, but it still seems like the kind of thing someone would have done already if only just to show off.

Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by greggman on Thursday June 21, 2018 @02:24PM (#17367939)
Microsoft had HTML apps as a standard feature of windows in the 90s iirc

https://en.m.wikipedia.org/wiki/HTML_Application

Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by pjmlp on Thursday June 21, 2018 @03:09PM (#17368345)
And they are first class citizen on UWP (aka WinRT), long before Electron was a thing.

https://msdn.microsoft.com/en-us/magazine/jj891058.aspx

Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by dvlsg on Thursday June 21, 2018 @04:26PM (#17368978)
To be fair, .NET has the capability to release applications with all the pieces required in a single exe. At least core does, anyways. That's a pretty big selling point for golang, as well, in my mind. Electron is the same thing in my mind, just on a much larger scale. Maybe it's too large to be sustainable in the long term, but there are definite benefits to having a single, self contained package.
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by voltagex_ on Thursday June 21, 2018 @07:04PM (#17369965)
They're still not there with the Golang-style single exe for .NET Core. The default behaviour of the dotnet build tool seems to be to build a .dll file (!)
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by pjmlp on Friday June 22, 2018 @01:40AM (#17371637)
Have you looked into "Self-contained deployments"?

https://docs.microsoft.com/en-us/dotnet/core/deploying/

On the Windows side, .NET Native does static linking.

Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by eberkund on Thursday June 21, 2018 @01:06PM (#17367035)
No, but you can use an extension/native helper and talk to it from the web app using network calls.
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by d4l3k on Thursday June 21, 2018 @01:07PM (#17367052)
Might as well just use electron at that point since it's easier on the developer side.
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by untog on Thursday June 21, 2018 @01:37PM (#17367383)
Uh, aren't users the most important factor here, not developers?
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by always_good on Thursday June 21, 2018 @01:48PM (#17367523)
Sure, such that in my experience users prefer dedicated apps most of the time.

For example, Postman (browser-based HTTP client) has some of the worst UX because it's a Chrome app and not stand-alone. Can't event alt-tab to it. I have to alt-tab to Chrome and then find the Postman window.

Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by TeMPOraL on Thursday June 21, 2018 @02:12PM (#17367796)
Users also prefer to be able to use more than one program at a time on their computer, so please, if you have to use Electron, keep an eye on performance characteristics of your application.
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by seanjs on Thursday June 21, 2018 @05:59PM (#17369633)
I'm not a heavy user of Postman so I can't say if the UX was improved by it, but Postman actually moved to Electron last year: http://blog.getpostman.com/2017/03/14/going-native/
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by jhasse on Thursday June 21, 2018 @02:59PM (#17368249)
Only to a certain degree.
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by solarkraft on Thursday June 21, 2018 @01:12PM (#17367106)
But even worse for the user than a web browser already is.

Can we, instead of combining the worst of native apps, web apps and containerizaton, maybe work towards removing SOME of the terrible aspects for users? If developer comfort is the highest priority you might as well skip making the interface look nice/useable.

Electron really is an extension of Chrome and it'd be damn nice if it could be shipped as one.

Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by lossolo on Thursday June 21, 2018 @01:12PM (#17367101)
As market shows it's not about what you can do but what is the easiest and fastest way to make a product.

I've created Electron application also, not because it's the best solution on the market but because it was fast and easy way to get my app to the users.

If I had time and resources I would probably just use Qt or created native app for each platform.

Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by xpaulbettsx on Thursday June 21, 2018 @07:22PM (#17370033)
Can you name even a single app that _actually does this_
Re:Electron 3.0.0-beta.1 – Chrome 66 and Node 10 by hanniabu on Thursday June 21, 2018 @03:34PM (#17368539)
Can't there be separate contained instances?