Hacker News new | ask | show | jobs
by masklinn 3660 days ago
MLs are fairly close I would think, Elm is syntactically very similar to Haskell but semantically it feels closer to SML or OCaml (without the O part)
2 comments

That was my first thought, too: Elm is quite similar to OCaml, so why not using OCaml in the backend? With all that server-side stuff around MirageOS, you can not only build a server app, but a full server VM within OCaml.

On the other hand, OCaml also targets JavaScript coding in the browser, via js_of_ocaml or the newer bucklescript.

I would be very interested in a comparison of client-side development with OCaml+js_of_ocaml (or OCaml+bucklescript) versus Elm.

Yes. SML really deserves a lot more love.