ReScript 10.0

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. genType

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

    They discuss this in their docs.

    https://rescript-lang.org/docs/manual/latest/introduction#di...

    Seems like a type system for Javascript, built with a differing set of opinions than Typescript.

    Looks like they also offer some form of TS interop:

    https://rescript-lang.org/docs/gentype/latest/introduction

  2. SaaSHub

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

    SaaSHub logo
  3. reason

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

    IT's a META project based/fork of ReasonML (https://reasonml.github.io/). They are ocalm dialects thats compile to Javascript. Advantage vs Typescript is a strict type system.

  4. proposal-type-annotations

    ECMAScript proposal for type syntax that is erased - Stage 1

    > I even don't understand why browser don't start to work on supporting it directly

    https://github.com/tc39/proposal-type-annotations

  5. nanoid

    A tiny (124 bytes), secure, URL-friendly, unique string ID generator for JavaScript

    I don't understand why ReScript is trying to sell itself as a language for React. React is already "kind of" functional, has a rich JS/TS ecosystem and there are fantastic alternatives such as Elm.

    I think this would have huge potential in the backend space if it had good interop with Node.js and TS, with perhaps a functional framework similar to Elixir's Phoenix. Elixir proved it can have fantastic integration with Erlang.

    * More robust applications with the Result type

    * An actual integer type (for 64-bit database keys, Prisma uses BigInt)

    * Finite state machines for stateful logic, games, websockets (enums and a sound type system)

    * Benefit from the JS-centric serverless ecosystem

    We've already been "compiling" or "transpiling" JS for years, most website JS is unreadable.

    In its current state, I don't even want to imagine what it would be like to set this up alongside ESM, TS, Prettier, ESLint, Jest, Storybook, ESBuild, Vite, (insert cool tool here). I've already spent literal days trying to setup a "modern" Node.js project, only to give up and go back to CJS for simplicity and import older non-ESM versions of packages[1], wish I wasn't using Node.js, then remember how many things I miss from JS when trialing another language.

    [1]: https://github.com/ai/nanoid/issues/365

  6. Scala.js

    Scala.js, the Scala to JavaScript compiler

    I don't see anything in ReScript that hasn't been already covered by https://www.scala-js.org

    Am I missing something?

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