News for hackers. Stuff that matters.
Re:Ask HN: Is a React Native like approach to desktop apps b... by chrisco255 on Saturday May 05, 2018 @09:05AM (#17001646)
No, the React process and JS engine run on a separate thread from the main UI thread. The JS thread just passes messages to functions defined natively on the main thread. A lot of this is abstracted away in the components themselves.
Re:Ask HN: Is a React Native like approach to desktop apps b... by hungerstrike on Saturday May 05, 2018 @08:01PM (#17004571)
Yes different threads, same process.

If you wanted to use React to render a view for a Golang controller, you’d have to embed a JavaScript engine in your Go process or vice-versa. That’s why I like the idea of a multi process desktop UI kit that coordinates with the renderer via pipes. You could actually use React to do the rendering in this case as well.

Re:Ask HN: Is a React Native like approach to desktop apps b... by lilactown on Wednesday May 09, 2018 @07:59PM (#17035376)
Yeah, I think the React Native implementations being intra-process has only been a function of mobile OS's sandboxing requirements. A macOS / Windows / Linux application can feel free to separate the processes, which I agree does sound nicer on the surface.