News for hackers. Stuff that matters.
Re:Announcing BuckleScript 1.0 by danielmason on Wednesday August 31, 2016 @03:54PM (#12401002)
Reason describes itself as "a meta language toolchain to build systems rapidly", which seems a little vague to me. Am I understanding correctly that Reason is both a (kind of) alternative compiler for OCaml's build toolchain, and a dialect of OCaml in its own right?

To tie this back to Bucklescript, does this loosely describe the process of using Reason syntax to author Javascript? Reason file -> (Reason) -> OCaml executable code -> (Bucklescript) -> Javascript

Re:Announcing BuckleScript 1.0 by sgrove on Wednesday August 31, 2016 @04:04PM (#12401080)
If you'll forgive the shameless plug, I talked a bit about ReasonML here, hopefully it helps clear things up https://youtu.be/QWfHrbSqnB0?t=29m34s

Basically, just a new syntax and a blessed-stack approach that really, really emphasizes developer experience. Which is to say, ReasonML is merely a cosmetic and DX change, it remains compatible and is not a fork of OCaml at all.

Re:Announcing BuckleScript 1.0 by danielmason on Wednesday August 31, 2016 @05:00PM (#12401437)
Thanks, that's very helpful!
Re:Announcing BuckleScript 1.0 by chenglou on Wednesday August 31, 2016 @04:17PM (#12401166)
Think Elixir for Erlang.

Currently it's a syntax on top of OCaml. But we'd like to polish the OCaml ecosystem tooling too; we're calling the umbrella project "Reason".

Re:Announcing BuckleScript 1.0 by swuecho on Wednesday August 31, 2016 @05:37PM (#12401697)
That will be great. Ocaml is great language, but not that user friendly.

Elixir is pretty mature nowadays. Reason still have a long way to go. Hope that will happen.

Re:Announcing BuckleScript 1.0 by jonahx on Wednesday August 31, 2016 @06:45PM (#12402039)
> Currently it's a syntax on top of OCaml.

Does this just mean it compiles to OCaml?

Re:Announcing BuckleScript 1.0 by chenglou on Wednesday August 31, 2016 @08:12PM (#12402380)
There's a crucial distinction! OCaml's compilation command takes in a `-pp` flag (preprocessor), which accepts a command that takes in a file and outputs an OCaml AST tree. We're basically using that. In that sense, the official OCaml syntax is really just that: another syntax like Reason, but official, and goes back two decades.

Because of the clean mapping from one syntax to another, you can toggle between the two fairly easily: https://github.com/facebook/reason/wiki/Newcomer-Tips-&-Tric...

Re:Announcing BuckleScript 1.0 by jonahx on Thursday September 01, 2016 @01:03AM (#12403205)
Interesting. Thanks for explaining that.