News for hackers. Stuff that matters.
Re:Revery – Native, high-performance, cross-platform desktop... by continuations on Friday January 25, 2019 @01:52AM (#18996071)
If I built a web app with Reason can I reuse the code and turn it into a desktop app using Revery?
Re:Revery – Native, high-performance, cross-platform desktop... by ohadrau on Friday January 25, 2019 @11:40AM (#18999639)
Unfortunately, we aren't compiling pure React code to native -- for something like that Electron is probably the go-to solution for now. However, the reverse is true. Revery apps can be compiled into a web app without you needing to do anything (assuming you aren't using any native-only libraries with it). So all our example code is automatically able to be compiled to a JS web app.
Re:Revery – Native, high-performance, cross-platform desktop... by lasagnaphil on Friday January 25, 2019 @02:41AM (#18996244)
Probably if you only use the React/Redux libraries and nothing else. It seems the project doesn't use any Javascript, and uses the OCaml compiler to produce native binaries for each platform.
Re:Revery – Native, high-performance, cross-platform desktop... by k__ on Friday January 25, 2019 @09:50AM (#18998331)
As far as I can tell it would be the other way around.

You create a Revery app and can build a macOS, Linux, Windows and Web version of it.