Re:Making a cross-platform mobile game in Reason/OCaml
by niilohlin on Saturday January 13, 2018 @05:32PM
(#16141774)
Very cool. Hot reloading in iOS would be extreamly useful. I remember that I used a plugin that was called injectionforxcode but it was not working very well.
[ Parent
| on HN ]
Re:Making a cross-platform mobile game in Reason/OCaml
by drdiablo on Tuesday January 16, 2018 @07:17PM
(#16164252)
I have yet to find a reason to support iOS hot reloading in this context to be perfectly honest. I use the desktop bytecode hot reloading (implemented inside Reprocessing so everyone can benefit from it), and it works wonderfully well. It's faster than anything you've seen before. And given that you probably want to be coding in Reason and not objc, it doesn't really matter what your render target is while you're iterating and being creative.
I'm all ears if you can think of something though.
Re:Making a cross-platform mobile game in Reason/OCaml
by gman83 on Saturday January 13, 2018 @07:31PM
(#16142223)
Flutter has a nice hot reloading feature: https://flutter.io/hot-reload/
Re:Making a cross-platform mobile game in Reason/OCaml
by mixedCase on Saturday January 13, 2018 @08:27PM
(#16142351)
Yeah, but then you have to use Dart.
Re:Making a cross-platform mobile game in Reason/OCaml
by arranf on Sunday January 14, 2018 @04:06AM
(#16143419)
That's actually a plus
Re:Making a cross-platform mobile game in Reason/OCaml
by Cyph0n on Saturday January 13, 2018 @09:53PM
(#16142572)
Dart seemed pretty cool last time I checked it out.
Re:Making a cross-platform mobile game in Reason/OCaml
by xfer on Saturday January 13, 2018 @07:05PM
(#16142114)
There is no hot reloading in the toolchain, but the compiler is very fast. I am not sure what you mean by xcode plugin, this is a js application, Reason is syntax for ocaml using bucklescript backend.
Re:Making a cross-platform mobile game in Reason/OCaml
by thangngoc89 on Saturday January 13, 2018 @07:10PM
(#16142133)
This is both a native (as in binary) and js application. It compiles down to binary and uses OpenGL for native targets and WebGL for the web
Re:Making a cross-platform mobile game in Reason/OCaml
by michaelsbradley on Saturday January 13, 2018 @08:18PM
(#16142327)
Reason code can indeed be compiled to JavaScript using the Bucklescript backend (as can regular OCaml), but it can also be compiled to native since it's just a dialect of OCaml. In the latter case, the programmer would need to avoid JS interop or employ conditional compilation.