Hey HN, at Ahrefs we have been working on an online book that hopefully helps React developers get up and running with Melange, an OCaml to JavaScript compiler. You can read more about Melange here: https://melange.re/. There are still a few chapters that we'd like to add before considering it "complete", but it might be already helpful for some folks out there, that's why we decided to publish it early. The book... - Source: Hacker News / 2 months ago
ReScript is "Fast, Simple, Fully Typed JavaScript from the Future". What that means is that ReScript has a lightning fast compiler, an easy to learn JS like syntax, strong static types, with amazing features like pattern matching and variant types. Until 2020 it was called "BuckleScript" and is closely related to ReasonML. - Source: dev.to / 3 months ago
- ReasonML - https://reasonml.github.io/ - essentially ocaml with nicer syntax. - Source: Hacker News / 4 months ago
This tracks with how I've seen "normal" languages converge on similar, flawed imitations of better type systems through tools and repurposed syntax. Thank you for confirming. Do you have any recommendations or warnings regarding general languages which reach in the opposite direction? Reason[1] and F#[2] are both examples: they attach pre-existing ecosystems and compile-for-$PLATFORM tools to OCaml-like typing.... - Source: Hacker News / 8 months ago
Why not use https://reasonml.github.io/ instead? Or just use Typescript? Source: 12 months ago
ReasonML and ReScript are a (more or less the same) new syntax on top of OCaml. ReScript only targets JS, while ReasonML targets both JS and the native archs OCaml supports. Facebook and Bloomberg are using ReScript internally, afaik. Messenger.com is written in it. Facebook also maintains React bindings to ReScript. https://rescript-lang.org/ https://reasonml.github.io/. - Source: Hacker News / about 1 year ago
There is also reasonml for Web development. Source: about 1 year ago
OCaml is probably the closest in performance, but the language is so idiosyncratic they had to invent a wrapper around the entire language https://reasonml.github.io/. Source: over 1 year ago
IT's a META project based/fork of ReasonML (https://reasonml.github.io/). They are ocalm dialects thats compile to Javascript. Advantage vs Typescript is a strict type system. - Source: Hacker News / over 1 year ago
Sounds like you are mostly frontend. I can highly recommend ReScript https://rescript-lang.org/ I learned a lot about functional programming from it. It is a more frontend focussed https://reasonml.github.io/ which is all based on OCaml. It has the same awesome type system and all the FP goodies while providing easy TS/JS interop and convenient escape hatches. It compiles (very fast) to highly efficient readable... - Source: Hacker News / over 1 year ago
Reason may be the nearest thing to what you are asking for: It is essentially OCaml, but it trades the traditional ML syntax for a JavaScript-inspired (aka C-like) syntax. Source: almost 2 years ago
Reason ML comes from folk in facebook who work with react too. It's mostly inspired by functional programming language OCaml. So you can actually do it properly. And let everyone else keep their opinions to themselves. Including your own objections. Source: almost 2 years ago
I have been trying for a long while now to work with ReasonML files in VSCode and get some syntax highlighting. This has been a problem since ReasonML on the frontend has moved on to Rescript. The solution would be using Melange but I could not get the editor highlighting to work. I have a bunch of old ReasonML projects that I still refer to so losing the editor support has been less than ideal. The code still... - Source: dev.to / almost 2 years ago
Just one tip: if you have any trouble with ocaml , the language has an alternative syntax made by Facebook called ReasonML that aims to make the language easier for people coming from other languages. This helped me a lot when I was learning ocaml. Source: about 2 years ago
I wish people will use Reason[1] more often and create a vibrant ecosystem with it. It’s the perfect language. Functional, ML but not so hard as Haskel. Very fast to learn and easy to use. And some powerful features like the switch couple with other types and structures. Also no null and undefined and stuff only one thing « None » which avoid many bugs. [1] https://reasonml.github.io/. - Source: Hacker News / about 2 years ago
ReasonML isn't listed as well [0], but I see that it was last updated on Mon Sep 7 17:22:16 PDT 2015 [0] https://reasonml.github.io/. - Source: Hacker News / about 2 years ago
If you want types, use [Reason](https://reasonml.github.io/). Source: about 2 years ago
Alternative to Elm can be PureScript, ClojureScript, ReasonML, ReScript, and other languages that compile to JavaScript. There are also newer and interesting languages that are still in an explorative state like Ren or Derw. - Source: dev.to / over 2 years ago
OCaml is pretty close already to what you're describing. The OCaml ecosystem fully embraces imperative programming. And if the syntax of OCaml is problematic, then perhaps ReasonML (https://reasonml.github.io/) is what you're looking for: a curly-braces syntax for OCaml. - Source: Hacker News / over 2 years ago
I've not looked at it much myself beyond listening to a talk but if you're interested in Functional+React you may want to look at ReasonML, which is a variant of OCaml. It's written by Jordan Walke, who wrote the first version of React, and has strong React support. Source: over 2 years ago
I found this closed-mindedness hard to understand -- I don't spend very much conscious thought on the syntax when programming at all -- but for people like you facebook made Reason ML https://reasonml.github.io/ Someone should port OCaml to the Go runtime with a good high-level FFI. It could really give the community a boost. - Source: Hacker News / over 2 years ago
Do you know an article comparing ReasonML to other products?
Suggest a link to a post with product alternatives.
This is an informative page about ReasonML. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.