rescript-compiler
melange
Our great sponsors
rescript-compiler | melange | |
---|---|---|
69 | 12 | |
6,044 | 448 | |
1.2% | 4.0% | |
9.9 | 9.6 | |
about 17 hours ago | 9 days ago | |
OCaml | OCaml | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
rescript-compiler
-
The ultimate answer to Belt vs Js in ReScript
Probably every developer that comes to ReScript stumbles upon a dilemma about which module from the standard library they should use to work with JavaScript API.
-
[AskJS] We ditched TypeScript for Rescript for building an open-source Payments Switch
I wasn't familiar with this before. Thanks for being it to my attention! https://rescript-lang.org/
-
Is TypeScript actually worth It?
I find ReScript (https://rescript-lang.org/) fundamentally better than TypeScript. It has easy FFI and a sound typesystem. With Rescript you wont have any runtime errors, like you can with typescript. But compared to vanilla javascript typescript is a big improvement.
-
Why TypeScript and ReScript are Worth Considering: A Comprehensive Look at JavaScript Alternatives
Overall, both TypeScript and ReScript have several advantages over JavaScript, and which one you choose will depend on your specific needs and preferences. TypeScript is a good choice if you want to take advantage of static typing and strong integration with popular front-end frameworks, while ReScript is a good choice if you want a simple and easy-to-learn language with a focus on readability and performance. Regardless of which language you choose, all three are powerful tools that can help you build high-quality web applications.
- Rewriting TypeScript in Rust? You'D have to be
-
TypeScript Enum's vs Discriminated Unions
I’ve recently been ripped from doing Functional Programming in Elm on the front-end and ReScript on the back-end in a Serverless Environment into Object Oriented Programming using Angular & TypeScript on the front-end and TypeScript on the back-end in a server full environment. It’s been quite a shock to go back to what I moved on from 7 years ago. Thankfully TypeScript has started to incorporate some Functional Programming constructs so I can keep my sanity (or at least try).
-
Roc Lang for Advent of Code 2022
This year, I chose Roc. It’s a strictly typed functional language. As someone who loves Elm, a strictly typed functional language for front-end web development, I was lacking a language for everything else (server, cli, etc). ReScript has been my stand in for various reasons. I was excited to try Roc lang for last year’s Advent of Code, but my youngest daughter convinced me to use Lua for Roblox. I figured after a whole year, things would be much more stable now.
-
Is there any reason not to use typescript?
Because you use rescript
-
Ensure you never forget a case in a switch
The correct answer is actually rescript
-
Speeding up ReScript compilation using interface files
ReScript compilation speeds are really fast out of the box. But, sometimes editing certain files can take longer to compile than you'd expect it to.
melange
-
OCaml 5.0 Alpha Release
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
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
There is a fork of ReScript that supports ReasonML syntax and with the goal of maintaining Ocaml compatibility: https://github.com/melange-re/melange.
- Are Dynamic Languages Going to Replace Static Languages? (2003)
-
Writing custom VSCode extensions in ReasonML
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.
- Using `let.opt` in Rescript with latest Reason/OCaml
-
Is there a statically typed functional programming language that doesn't take purity so seriously?
TL;DR: Reason is, and always has been, independent of ReScript (formerly BuckleScript) and is still actively maintained. If you want to use Reason or OCaml to make native code you can. If you want to compile JS from OCaml or Reason you also still can, but you'll want to use either js_of_ocaml or a BuckleScript fork named Melange that was made in response to the BuckleScript/ReScript people's shenanigans. And if you only care about JS-like syntax and JS output, you can use ReScript.
-
JavaScript file watching with Reason & Rescript in Dune
While banging my head against the wall trying to understand the Dune build system used with OCaml and the Melange project I came across these great simple videos by @TheEduardoRFS.
What are some alternatives?
svelte-wasm
Elm - Compiler for Elm, a functional language for reliable webapps.
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
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
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
tsdx - Zero-config CLI for TypeScript package development
js_of_ocaml - Compiler from OCaml to Javascript.
ocaml - The core OCaml system: compilers, runtime system, base libraries
Cypress - Fast, easy and reliable testing for anything that runs in a browser.