Scala

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

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
.scwikidataprimary588.1K files
.scalalinguistprimary37.2M files
.scalapygmentsprimary37.2M files
.scalawikidataprimary37.2M files
.kojolinguistsecondary1.5K files
.sbtlinguistsecondary2.6M files
.sclinguistsecondary588.1K files

Related languages

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

LLM-contributed programs

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!")
  }
}

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"

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 (programming language) →