OCaml Syntax Sucks

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. reason

    Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems

    Fortunately, the OCaml compiler is very modular, and there have been efforts to make things more... reasonable.

    - Reason, a different syntactic frontend for regular OCaml: https://reasonml.github.io/

    - ReScript, a language with OCaml semantics that compiles into: JS https://rescript-lang.org/ (I suppose it's a reincarnation of js-of-ocaml).

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. rescript

    ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript.

    Fortunately, the OCaml compiler is very modular, and there have been efforts to make things more... reasonable.

    - Reason, a different syntactic frontend for regular OCaml: https://reasonml.github.io/

    - ReScript, a language with OCaml semantics that compiles into: JS https://rescript-lang.org/ (I suppose it's a reincarnation of js-of-ocaml).

  4. core.async

    Facilities for async programming and communication in Clojure

    As the other commenter pointed out, this isn't restricted to strongly-typed functional languages.

    Clojure has core.async, which implements "goroutines" without any special support from the language. In fact, the `go` macro[1] is a compiler in disguise: transforming code into SSA form then constructing a state machine to deal with the "yield" points of async code. [2]

    core.async runs on both Clojure and ClojureScript (i.e. both JVM and JavaScript). So in some sense, ClojureScript had something like Golang's concurrency well before ES6.

    [1] https://github.com/clojure/core.async/blob/master/src/main/c...

    [2] https://github.com/clojure/core.async/blob/master/src/main/c...

  5. melange

    A mixture of tooling combined to produce JavaScript from OCaml & Reason

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • ReScript: Rust like features for JavaScript

    2 projects | dev.to | 18 Jan 2024
  • Ask HN: Learning Functional Programming in 2022?

    2 projects | news.ycombinator.com | 3 Aug 2022
  • Editor Support for ReasonML in VSCode with Melange

    3 projects | dev.to | 31 May 2022
  • How long did it take you to get good at React?

    2 projects | /r/reactjs | 21 Aug 2021
  • Is OCaml the "Go" of Functional Programming Languages?

    4 projects | /r/ocaml | 29 Apr 2022