SML/NJ

1 program Added 2026-02-12T11:11:29Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Standard ML of New Jersey, SML-NJ, SMLNJ
Provenance: commit fe75201f6a · authored 2026-02-12T12:12:16+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/standard-ml-of-new-jersey
LLM (this repo) · 1WikipediaWikidata · Q239406

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
Typingstrong, static, inferred
Designed byBell Laboratories · Princeton University Lucent Technologies · Yale University (FLINT Project) · AT&T Research
First appeared1988
Influenced byStandard ML
LicenseBSD-like
Implemented inStandard ML · C
Homepagehttp://www.smlnj.org

Related languages

SML (0.33)Standard ML (0.33)Standard Lisp (0.19)SGML (0.15)Standard Pascal (0.15)

LLM-contributed programs

Quicksort Implementation

Provenance: commit fe75201f6a · authored 2026-02-12T12:12:16+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.sml · added: 2026-02-12T11:11:29Z
(* Quicksort implementation in Standard ML *)
fun quicksort [] = []
  | quicksort (pivot::rest) =
    let
      val (less, greater) = List.partition (fn x => x < pivot) rest
    in
      quicksort less @ [pivot] @ quicksort greater
    end;

(* Test the quicksort function *)
val test_list = [3, 7, 1, 9, 2, 8, 4, 6, 5];
val sorted = quicksort test_list;

print "Original list: ";
print (String.concatWith ", " (map Int.toString test_list));
print "\n";
print "Sorted list: ";
print (String.concatWith ", " (map Int.toString sorted));
print "\n";

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 SML/NJ (mapped to pl/standard-ml-of-new-jersey). 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/SML-NJ/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← SML# smoke →