ocamljava icon indicating copy to clipboard operation
ocamljava copied to clipboard

Support for Facebook's Reason source format

Open talios opened this issue 8 years ago • 3 comments

Can OCaml-Java be used with Reasons new source format at all?

Native support for Reason, plus OCaml-Java would be a compelling language shift for existing JVM developers I think.

ps: is this project still alive?

talios avatar Jun 24 '16 22:06 talios

The project is still alive (although seemingly hibernating),

I did not know Reason, but it appears to be essentially a preprocessor to OCaml. As such, OCaml-Java and Reason can probably used together (maybe after an update of OCaml-Java to 4.03).

xclerc avatar Jun 29 '16 12:06 xclerc

Nice - from my understanding ( just watching on the side lines ) Reason doesn't current support 4.03, so it looks like there's commits/PRs there to bring that into the code base.

(I'm coming mostly from the Java side so my OCaml knowledge is very light), there were two syntaxes for OCaml - the original and a more modern flavour, both of which emit a "core language", and reason is yet another syntax that generates this core. So yes, for all intent and purpose, a pre-processor - but at much lower level in the compiler chain.

talios avatar Jun 29 '16 12:06 talios

We are moving Reason to 4.04 soon. Eventually we would like to have a conversion tool which will downgrade the AST representation to any previous version of the compiler, even if Reason itself supports 4.06 version of the AST for example at parse time.

I would definitely like to see a 4.04 version of ocamljava, and @xclerc: I would love to get in touch.

jordwalke avatar Dec 14 '16 01:12 jordwalke