The ReasonML runtime.
- Most Reason code will work.
- Accepts a single file or a directory containing
.re
files. - Native ES imports/exports are used for modules.
- Most of BuckleScript's
stdlib
should work (including Belt!) - though some JS stuff likeJs.log
is still a WIP. - Shebang support! See the shebang example.
Since Js.log
isn't implemented yet, you can use [@bs.scope "V8Worker2"] [@bs.val] external print : string => unit = "print";
to get access to the print
method in v8worker2.
This repo contains a pre-built binary for macOS. You can use it like:
> ./reasonable examples/fizzbuzz/Fizzbuzz.re
Or on a directory of files:
> ./reasonable examples/dependencies/
- Go
- v8worker2
- BuckleScript (self-hosted version)
- Flatbuffers
- Topo.js
MPL 2.0