News for hackers. Stuff that matters.
Re:Going native by paulddraper on Thursday March 23, 2017 @07:14PM (#13945211)
Right. It's Chromium + JS APIs + some packaging.

E.g. an API to write a file.

Re:Going native by JSDave on Thursday March 23, 2017 @07:46PM (#13945394)
Electron gives you a view process, background process, and a way for the 2 to communicate.

The view process is very limited, just standard web APIs.

The background process is basically a node process and can do anything you can in node.

Re:Going native by derefr on Thursday March 23, 2017 @07:57PM (#13945457)
Including, importantly, the ability to fork+exec other native processes. You can ship an Electron client app that spawns and then interacts with a native C background service, if you like. (I believe that's how Keybase's native client works, in fact.)
Re:Going native by yblu on Friday March 24, 2017 @01:38PM (#13950670)
> The view process is very limited, just standard web APIs.

Nitpicking here, but the view (rendering) process in Electron can actually use the Node API [1]. The difference in API access privilege between the two types of process is in what Electron API (not Node API) they can use. For example, main process can use native GUI API but renderers can't and must IPC to main if they need to, say, show a system dialog.

[1] https://github.com/electron/electron/blob/master/docs/glossa...

Re:Going native by Rapzid on Thursday March 23, 2017 @07:20PM (#13945249)
That's a bit too simplistic of an explanation IMHO. It's a mashup of chromium and nodejs; the entry point is a nodejs app.
Re:Going native by pininja on Thursday March 23, 2017 @07:24PM (#13945272)
Window, Menus, clipboard, etc.. (not just being able to write to a file) https://electron.atom.io/docs/api/
Re:Going native by pier25 on Thursday March 23, 2017 @07:34PM (#13945336)
All OS related functionality is through Node.