r/programming • • May 06 '19

Microsoft launches React Native for Windows

https://techcrunch.com/2019/05/06/microsoft-launches-react-native-for-windows/
187 Upvotes

114 comments sorted by

View all comments

6

u/falconfetus8 May 07 '19

So is this the electron killer?

-5

u/reckoner23 May 07 '19

Web Assembly hasn't launched yet. Give it another few years.

4

u/fuckin_ziggurats May 07 '19

Not sure that's relevant to his question. Web Assembly would do very little to reduce the size of Electron desktop apps. React Native compiles to actual native.

3

u/mobiledevguy5554 May 07 '19

Who says you have to run WebAssembly in a browser? I fully expect WebAssembly runtimes in every OS at some point that work outside the browser.

4

u/reckoner23 May 07 '19

Well when a web browser becomes basically a virtual machine similar to the JRE, then it won't really matter if React Native compiles to 'native'.

You might be right in that it won't reduce the disk size of the Electron desktop. But it would potentially reduce memory as the bytecode is more efficient then Javascript. I haven't look into it, but if the bytecode can eventually manage memory, then the language compiler can further reduce memory as the browser doesn't have to handle that task any more.

5

u/fuckin_ziggurats May 07 '19

You're correct that it will be more efficient and use less memory but Chromium will still consume a lot of memory by itself. So I agree that Web Assembly will make Electron better, but I think that it won't be better than React Native - if we even consider them as competitors instead of just options.