BuckleScript

1 program Added 2026-03-10T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: bs, BuckleScript/OCaml
Provenance: commit a5edd92a04 · authored 2026-03-10T21:34:42+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

4 sources · pl_id: pl/bucklescript
LLM (this repo) · 1PldbWikipediaWikidata · Q116885321

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: functional · imperative · modular · object-oriented
First appeared2020
Influenced byOCaml · Reason · JavaScript
LicenseMIT
Implemented inOCaml
Homepagehttps://rescript-lang.org/

Related languages

AppleScript (0.23)PuzzleScript (0.22)Vim script (0.21)ReScript (0.21)Vimscript (0.20)

LLM-contributed programs

Fibonacci Sequence

Provenance: commit a5edd92a04 · authored 2026-03-10T21:34:42+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.ml · license: Apache-2.0 · added: 2026-03-10T12:00:00Z
(* Fibonacci sequence in BuckleScript *)
let rec fib n =
  if n <= 1 then n
  else fib (n - 1) + fib (n - 2)

let () =
  for i = 0 to 10 do
    Js.log (string_of_int (fib i))
  done

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

Contribute — propose a file extension

Tell us where to find evidence about BuckleScript (mapped to pl/bucklescript). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/BuckleScript/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Bucket buddyscript →