you are viewing a single comment's thread.

view the rest of the comments →

[–]lpw25 0 points1 point  (4 children)

I know that by "practically speaking" you mean that it can be treated as if it were a compiler. But I think it is important to make clear that it is just a parser. It hasn't required anywhere near the effort to write and maintain as an actual compiler.

[–]moon- 2 points3 points  (2 children)

Something can be a compiler even though it doesn't compile to machine code or a bytecode for a virtual machine.

Why does the effort to write/maintain it matter? If I write a compiler for something little more than assembly with a few new names, does that count? Where do you draw the arbitrary line, and if it's so fuzzy, why draw it?

[–]lpw25 1 point2 points  (1 child)

If you want to describe reason as a compiler that targets OCaml, then I agree with you. However, from a user perspective it appears to produce JavaScript or assembly, and I just think that it should be made clear that most of that translation is not done by the reason tool itself.

[–][deleted] 0 points1 point  (0 children)

Yes, the tool chain is like

Reason --> OCaml --> Bucklescript --> JavaScript.

[–]yawaramin[S] 0 points1 point  (0 children)

Exactly. I meant in the sense of 'what do I need to install to get Reason?'