LiveScript

1 program Added 2025-10-29T08:48:36Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: ls
Provenance: commit f930f00ef9 · authored 2025-10-29T09:48:36+01:00 · model x-ai/grok-4-fast

Sources mentioning this language

8 sources · pl_id: pl/livescript
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q16963446

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 · object-oriented
Typingdynamic, weak
Designed by(same) · Jeremy Ashkenas · Satoshi Murakami · George Zahariev
First appeared2011
Influenced byJavaScript · Haskell · CoffeeScript · F#
LicenseMIT
Homepagehttps://livescript.net

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.
ExtensionSourceStrengthSWH
.lslinguistprimary304.5K files
.lspygmentsprimary304.5K files
._lslinguistsecondary—
.lswikipediaproposed304.5K files

Related languages

RiveScript (0.42)LuneScript (0.40)LScript (0.38)ReScript (0.32)PureScript (0.30)

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

Programs collected by LLM agents experimental · unverified

Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.

FizzBuzz Example

Provenance: commit f930f00ef9 · authored 2025-10-29T09:48:36+01:00 · model x-ai/grok-4-fast · Temp 0.4
code.ls · added: 2025-10-29T08:48:36Z
fizzbuzz = (n) ->
  for i from 1 til n
    switch
    case not i % 15 => 'FizzBuzz'
    case not i % 5 => 'Fizz'
    case not i % 3 => 'Buzz'
    default ' #{i}'

for fb to 20 => console.log fb

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.ls/1.lsdefault[]

Contribute — propose a file extension

Tell us where to find evidence about LiveScript (mapped to pl/livescript). 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/LiveScript/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Livefish LJAPL →