Scala

1 program Added 2025-10-22T09:33:06Z Model: openai/gpt-4o-miniTemp: 0.4 Evidence Report issue View issues
Aliases: Scalable Language, Scala (programming language), scala
Provenance: commit 72e8da6e0c · authored 2025-10-22T11:33:06+02:00 · model openai/gpt-4o-mini

Merged records (3)

Sources describe this language in separate records, kept as they are. They were joined by explicit decisions in data/curated/pl_links.csv (concept concept/repo/Scala); names of merged pages are listed as aliases above.

Sources mentioning this language

8 sources · pl_id: pl/scala
LLM (this repo) · 1PldbLinguistPygmentsWikipediaHyperpolyglotRosettacodeWikidata · Q460584

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: concurrent · functional · imperative · object-oriented
Typinginferred, static, strong, structural
Designed byProgramming Methods Laboratory of École Polytechnique Fédérale de Lausanne · Martin Odersky
First appeared2004
Influenced byCommon Lisp · Eiffel · Erlang · Haskell · Java · OCaml · Oz · Pizza · Scheme · Smalltalk · Standard ML
LicenseApache 2.0
Implemented inScala
Homepagehttp://www.scala-lang.org

Extensions claimed by this language

7 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.scwikidataprimary704.0K files
.scalalinguistprimary44.1M files
.scalapygmentsprimary44.1M files
.scalawikidataprimary44.1M files
.kojolinguistsecondary2.0K files
.sbtlinguistsecondary3.0M files
.sclinguistsecondary704.0K files

Related languages

Eve (0.38)Lime (0.38)Shen (0.37)Io (0.35)Xi (0.35)

Real programs from Software Heritage

1 sample mined from derived_datasets/<date>/contents/*.parquet, byte-verified against the SWH archive. Citation-grade qualified SWHIDs preserved.
version.sbt · 41 B · ext .sbt · seen 109× in SWH
via fallback
swh:1:cnt:7238dbfa882214eec7d40aa5d41ce94fceca6ffb;origin=https://github.com/rtyley/bfg-repo-cleaner;anchor=swh:1:rev:1bd9715198dd53cdffa6512a5f3af3f04f82b803;path=/version.sbt
Open in SWH · Raw bytes (SWH) · GitHub raw
Show source
ThisBuild / version := "1.15.1-SNAPSHOT"

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.

Scala Hello World

Provenance: commit 72e8da6e0c · authored 2025-10-22T11:33:06+02:00 · model openai/gpt-4o-mini · Temp 0.4
code.scala · license: Apache-2.0 · added: 2025-10-22T09:33:06Z
object HelloWorld {
  def main(args: Array[String]): Unit = {
    println("Hello, world!")
  }
}

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.sc/1.scpredicates[{"kind": "any", "regexes": ["(^\\s*import (scala|java)\\.|^\\s*class\\b)"]}]

Contribute — propose a file extension

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