5 ms·
I’d be more interested in knowing if someone had ported the ideas behind react in a cross platform language, rather than shipping a JavaScript engine with all y
by d--b 8y ago
I’d be more interested in knowing if someone had ported the ideas behind react in a cross platform language, rather than shipping a JavaScript engine with all your apps. Or maybe there should a JavaScript virtual machine in the OS itself.
- pavlov 8y agoThere is a fast JavaScript VM included in Apple's iOS + macOS (JavaScriptCore/Nitro) as well as Windows (Chakra), and they come with a public API.
- Touche 8y agoThe ideas behind react predate react by decades, so yes, people have...
- d--b 8y agobut cross-platform?
- frostymarvelous 8y agoI think flutter fills that space. Apart from lacking proper background task support, it's a good offering. As a very adopter of react, flutter tickles me the same way.
- ducaale 8y agohttps://github.com/pojala/electrino https://github.com/pojala/electrino is electron alternative that uses the system's own web browser engine.
- sdegutis 8y agoI had the same idea: a lightweight variant of Electron, that just uses WKWebView for the GUI and JavaScriptCore for the core functionality, passing messages between them (serializing via JSON). I have a proof of concept already, but it's not cross-platform so that's a major downside, and I don't think many people need the combination of (1) Mac-only, (2) lightweight, (3) using JS for the core logic, (4) using web views for the GUI. I just don't think there's a market for that.
- cxvlkjdoijg 8y agoYour idea is not bad. In fact it has been done multiple times already. https://github.com/zserge/webview https://github.com/zserge/webview https://github.com/Boscop/web-view https://github.com/Boscop/web-view and so on
- true_religion 8y agoJavascript is implemented on every major platform. And I do not really see download size as an issue. Many people play games, and the textures used for even a simple RPG take up more space than a javascript engine. If people are willing to download that much for an entertainment product, then it should be no surprise they are willing to put up with javascript in their work and personal productivity apps.
- david-cako 8y agoI think they take issue with the bridge aspect of react-native and with shipping a node binary instead of using the platform's built-in javascript engine (a-la react-native). For instance, <View> would create either an NSView or System.Windows.Controls.Grid using a yet non-existent JS api on each platform, instead of having a bridge that talks back and forth with the platform-native language.
- deathtrader666 8y agoReasonML can build for the web as well as native. ReasonReact is slowly gaining steam.