Re:Deploying a ReasonML React app with Docker
by cwyers on Tuesday February 06, 2018 @12:32PM
(#16317790)
ReasonML has two compilers -- a compiler that goes to JavaScript, and a compiler that goes to native code (the OCaml compiler, since Reason and OCaml share an AST/etc.) So if you want to use ReasonML with a web server, you have two options:
1) A native web server, or 2) NodeJS.
Because Reason can compile to JS, you can use with Node just like any other compiles-to-JS language. The claim here (which I have no opinion on either way) is that using a particular native OCaml web server with ReasonML is faster than compiling ReasonML to JS and using it with Node.
Re:Deploying a ReasonML React app with Docker
by cies on Tuesday February 06, 2018 @02:43PM
(#16318912)
> that using a particular native OCaml web server with ReasonML is faster than compiling ReasonML to JS and using it with Node.
Faster considering the resources used (mem/cpu). Yups. Exactly that was my claim. Cohttp cannot beat Node, while a natively compiled OCaml server should be able to beat node.
"my language can beat up your language" is like "my dad can beat up your dad."