r/programming • • Jun 25 '15

Atom 1.0

http://blog.atom.io/2015/06/25/atom-1-0.html
1.1k Upvotes

632 comments sorted by

View all comments

Show parent comment

1

u/balefrost Jun 25 '15

Wait, I didn't think NodeJS had thread support (I didn't even think it supported WebWorkers). Does Electron add threading? Have they added it in their custom NodeJS distribution? Or is it all done with cooperative threading (i.e. explicit yields)?

3

u/bittered Jun 25 '15

No, Chromium is the UI (frontend) and NodeJS is the service-layer (backend) for Atom.

The UI and service layer are completely different processes and do not block eachother, they communicate using IPC. Effectively, this means that Atom does the heavy-lifting in Node and doesn't run in the UI thread or block the UI in any way.

1

u/balefrost Jun 26 '15

Ah, I see. Thanks for explaining.

(I still think my comment was an accurate clarification of /u/pakoito's comment; it sounds like he or she is just as wrong as I was.)