Hacker News new | ask | show | jobs
by specializeded 2868 days ago
Oooooooh, have you heard of Reason[1]? It’s an algol-ish interface for OCaml, supported and used by FB as well!

Also interops with JS (and has superb bindings for React) so immediate results/learning are very easy to get.

[1] - https://reasonml.github.io

2 comments

It doesn't have bindings for redux. I really wanted to like it but without redux, it's not practical enough with so few bindings.

The messenger people don't know what to do about that either, really.

I really like the language though so it's a shame.

Have you taken a look at Fable? There's a React-Redux sample here: http://fable.io/samples-browser/

But the real zen of Fable is using fable-elmish, which is a UI library that (like Elm) focuses on message passing. It's super elegant.

Good sample app doing nontrivial stuff: https://github.com/SAFE-Stack/SAFE-Chat

(Bonus is that it's full-stack F# :))

What is it about Redux that you need?
I need a store layer which scales. Mobx could work too, but reason would work more naturally with redux.
I have! Sadly it’s native compilation story was pretty poor last I checked. Mostly it seemed like the primary target was bucklescript. There were other issues as well.