What is ReScript written in?

Programming language that compiles to JavaScript.

Programming language Year 2020 Paradigm functional Typing static
The ReScript compiler is written in OCaml (documented).

Quick Facts

Developer
Bloomberg L.P.
First released
2020
Typing
static
License
GNU Lesser General Public License, version 3.0 or later and MIT License
Filename extension
.res, .resi

About ReScript

ReScript is a Programming language that compiles to JavaScript. It is a statically typed and garbage-collected language that compiles (transpiles) into another language to run. It supports functional programming. Transpiling means the compiler emits source in another high-level language rather than machine code, so the output then runs on that language's runtime.

ReScript first appeared in 2020. Development is led by Bloomberg L.P.. ReScript is now used mainly in specialized niches and by dedicated communities.

How ReScript is implemented

In the Language Lineage dataset, its compiler is written in OCaml.

ReScript in the language family tree

ReScript drew on ideas from OCaml and ReasonML.

Sources: Wikipedia · Wikidata · Official site

Relationship Graph

All directly connected languages. Click any node to navigate to its page.

Compiler Implementation

LanguageConfidenceNotesSource
OCaml 90% The ReScript compiler is based on OCaml. Source

Transpilation

LanguageConfidenceNotesSource
JavaScript 98% ReScript compiles to JavaScript. Source

Influenced By

Frequently Asked Questions

What language is ReScript written in?
ReScript is primarily implemented in OCaml. See the implementation section above for details and source references.
What languages influenced ReScript?
ReScript was influenced by OCaml, ReasonML among others. See the influence section above for the full list.
When was ReScript first released?
ReScript was first released in 2020.

Evidence Sources

Discover More

Explore ReScript in Graph →