ReScript
1 program
Added 2025-10-28T06:38:48Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: —
Provenance: commit fe3e3ac922 · authored 2025-10-28T07:38:49+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
6 sources · pl_id:
pl/rescriptWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: functional · imperative · modular · object-oriented |
|---|---|
| First appeared | 2020 |
| Influenced by | OCaml · Reason · JavaScript |
| License | MIT |
| Implemented in | OCaml |
| Homepage | https://rescript-lang.org/ |
Extensions claimed by this language
4 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.res | linguist | primary | 2.2M files |
.res | wikidata | primary | 2.2M files |
.resi | wikidata | primary | 5.0K files |
.resi | linguist | secondary | 5.0K files |
Related languages
LLM-contributed programs
React Reducer Counter Example
Provenance: commit fe3e3ac922 · authored 2025-10-28T07:38:49+01:00 · model google/gemini-2.5-pro · Temp 0.4
type state = {count: int}
type action =
| Click
| Reset
let initialState = {count: 0}
let reducer = (state, action) =>
switch action {
| Click => {count: state.count + 1}
| Reset => {count: 0}
}
@react.component
let make = () => {
let (state, dispatch) = React.useReducer(reducer, initialState)
let message = "You've clicked " ++ state.count->Int.toString ++ " times"
<div>
<button onClick={_ => dispatch(Click)}> {React.string(message)} </button>
<button onClick={_ => dispatch(Reset)}> {React.string("Reset")} </button>
</div>
}
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.res/0 | .res | predicates | [{"kind": "any", "regexes": ["^\\s*(let|module|type)\\s+\\w*\\s+=\\s+", "^\\s*(?:include|open)\\s+\\w+\\s*$"]}] |