melange VS rescript

Compare melange vs rescript and see what are their differences.

melange

A mixture of tooling combined to produce JavaScript from OCaml & Reason (by melange-re)

rescript

ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript. (by rescript-lang)
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
melange rescript
15 103
872 6,824
2.3% 0.9%
9.4 9.8
3 days ago 3 days ago
OCaml ReScript
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

melange

Posts with mentions or reviews of melange. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-24.
  • OCaml Syntax Sucks
    5 projects | news.ycombinator.com | 24 Nov 2024
  • Melange for React devs book, alpha release
    2 projects | news.ycombinator.com | 27 Feb 2024
    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 uses Reason syntax to implement React components using ReasonReact components. You can read more about both in:

    https://reasonml.github.io/

  • Reason and React Meta-Frameworks
    5 projects | dev.to | 17 Oct 2023
    In my previous post on trying to use the NextJS App Router and Reason I described some of the problems and limitations of their compatibility with one another. With the release of Melange 2 I decided to see if the new features of Melange 2 could help to increase the compatibility of Reason and the NextJS App Router. I have also documented some of the things learnt after trying Melange (v1) with Astro and Remix.
  • GitHub - melange-re/melange: A mixture of tooling combined to produce JavaScript from OCaml & Reason
    1 project | /r/programming | 16 Jun 2022
  • OCaml 5.0 Alpha Release
    5 projects | news.ycombinator.com | 15 Jun 2022
    So it's Reason, not ReasonML which the umbrella project's name, and Rescript is a imcompatible syntax split from the Bucklescript team (that previously transpiled Reason to JS). Bucklescript's new name is... Rescript.

    But not everyone agrees with the split and work is being done on Melange to replace Bucklescript : https://github.com/melange-re/melange

    Ultimately JsOfOcaml can directly transpile Ocaml to JS.

  • Question about the Reason project in general
    3 projects | /r/rescript | 4 Feb 2022
    In reality, most folks that developed BuckleScript frontends with ReasonML switched to ReScript syntax and are happy with it. Some felt more friction because of their reliance on PPXes or FP-heavy libraries (like Relude) and those people tend to use the Melange fork of BuckleScript or they switched to js_of_ocaml.
  • From TypeScript to ReScript
    12 projects | news.ycombinator.com | 12 Jan 2022
    There is a fork of ReScript that supports ReasonML syntax and with the goal of maintaining Ocaml compatibility: https://github.com/melange-re/melange.
  • From object-oriented JS to functional ReScript
    1 project | /r/javascript | 4 Dec 2021
    There's also a fork of BuckleScript/ReScript called Melange that guts its build system so that instead of using ninja, it works with more standard tools for the ecosystem, specifically dune and esy. In doing so they managed to also finally get the compiler off of OCaml 4.06: now it can use a newer OCaml compiler and take advantage of four years worth of language and compiler improvements.
  • Are Dynamic Languages Going to Replace Static Languages? (2003)
    7 projects | news.ycombinator.com | 4 Aug 2021
  • Writing custom VSCode extensions in ReasonML
    2 projects | /r/reasonml | 21 Jul 2021
    For OCaml and ReasonML your options are js_of_ocaml (mentioned here in ReasonML docs) or a fairly new fork of BuckleScript called melange. They differ in implementation and output, with JSOO taking intermediate bytecode generated by ocamlc and turning it into unreadable JS, vs Melange being a patched compiler that builds more human-readable JS.

rescript

Posts with mentions or reviews of rescript. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-30.
  • If Not React, Then What?
    16 projects | news.ycombinator.com | 30 Nov 2024
  • OCaml Syntax Sucks
    5 projects | news.ycombinator.com | 24 Nov 2024
    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).

  • TypeScript's Lack of Naming Types and Type Conversion in Angular
    6 projects | dev.to | 17 Oct 2024
    Elm, ReScript, F#, Ocaml, Scala… it’s just normal to name your types, then use them places. In fact, you’ll often create the types _before_ the code, even if you’re not really practicing DDD (Domain Driven Design). Yes, you’ll do many after the fact when doing functions, or you start testing things and decide to change your design, and make new types. Either way, it’s just “the norm”. You then do the other norms like “name your function” and “name your variables”. I’m a bit confused why it’s only 2 out of 3 (variables and functions, not types) in this TypeScript Angular project. I’ll have to look at other internal Angular projects and see if it’s common there as well.
  • How I host Elm web applications with GitHub Pages
    15 projects | dev.to | 17 Oct 2024
    A web application makes use of these same ingredients, i.e. HTML, CSS, and JavaScript, but it uses significantly more JavaScript. As the JavaScript powering your web application grows in size it can bring with it a variety of problems that a few languages, like TypeScript, ReScript, PureScript, and Elm, have attempted to solve. Each of the aforementioned compile to JavaScript languages have their pros and cons but it is beyond the scope of this article to get into those details. Suffice it to say, my preference is Elm. It is also not the goal of this article to convince you to use Elm but only to show you how Elm fits into the flow of creating a web application and hosting it on GitHub Pages. So let's continue by adding Elm to our project.
  • Node.js adds experimental support for TypeScript
    20 projects | news.ycombinator.com | 24 Jul 2024
  • Dealing with Unicode string, done right and better.
    8 projects | dev.to | 15 Jun 2024
    Since JavaScript doesn't have a pattern-matching like Rust, it could be hard to replicate the same logic. I used the ReScript compiler to maintain the original logic as much as possible. It made me able to port it confidently. Specifically check_pair function can be converted into this.
  • ReScript: Fast, Simple Typed JavaScript from the Future
    1 project | news.ycombinator.com | 28 May 2024
  • ReScript has come a long way, maybe it's time to switch from TypeScript?
    4 projects | dev.to | 28 May 2024
    ReScript, the "Fast, Simple, Fully Typed JavaScript from the Future", has been around for awhile now. The name "ReScript" came into existence in 2020, but the project has a history going back to 2016 under the combo of Reason and BuckleScript. The name change came about as the goal of BuckleScript shifted to try and create a language that was a part of the JavaScript ecosystem; JavaScript is the only build target, support for all of the features JavaScript devs expect to have like async/await syntax, and an easy to use standard library for JavaScript's built in functions.
  • Borgo is a statically typed language that compiles to Go
    21 projects | news.ycombinator.com | 30 Apr 2024
  • Tired of Typescript? Check out ReScript!
    3 projects | dev.to | 19 Apr 2024
    ReScript is a fully typed language with an easy to understand JS like syntax, blazing fast compiler, that compiles to JavaScript. You can easily drop it into an existing project, and there is even a way to generate TypeScript types if you want to add it to a TypeScript project!

What are some alternatives?

When comparing melange and rescript you can also consider the following projects:

js_of_ocaml - Compiler from OCaml to Javascript.

Fable: F# |> BABEL - F# to JavaScript, TypeScript, Python, Rust and Dart Compiler

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

purescript - A strongly-typed language that compiles to JavaScript

ocaml - The core OCaml system: compilers, runtime system, base libraries

TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

haxe - Haxe - The Cross-Platform Toolkit

genType - Auto generation of idiomatic bindings between Reason and JavaScript: either vanilla or typed with TypeScript/FlowType.

svelte-wasm

dune - A composable build system for OCaml.

Elm - Compiler for Elm, a functional language for reliable webapps.

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