phated / reasonable

(Just an experiment) The ReasonML runtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reasonable

The ReasonML runtime.

Status

  • 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 like Js.log is still a WIP.
  • Shebang support! See the shebang example.

Notes

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.

Usage

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/

Technologies

  • Go
  • v8worker2
  • BuckleScript (self-hosted version)
  • Flatbuffers
  • Topo.js

License

MPL 2.0

About

(Just an experiment) The ReasonML runtime.

License:Mozilla Public License 2.0


Languages

Language:JavaScript 99.8%Language:Go 0.2%Language:Makefile 0.0%Language:Shell 0.0%