talira

Expressive, scalable, safe

open sourceApache-2.0self-hostablefree

Scala is a high-level, statically typed programming language that fuses functional and object-oriented programming, with type inference that makes it feel dynamic. It runs on the JVM with access to Java's libraries, in the browser and on Node.js through Scala.js, and as native executables through Scala Native, and its rich type system and metaprogramming let libraries derive code from types. It's used for high-throughput servers, concurrent and distributed systems with libraries such as Cats Effect, http4s and Akka, and data processing. Scala 3 ships as two lines, Scala Next and Scala LTS (advised for publishing libraries), follows semantic versioning with backward compatible minor releases, and its libraries are published to Maven Central and indexed on Scaladex. It's maintained by the Scala Center at EPFL and VirtusLab under the Apache-2.0 licence.

Libraries for Java and Kotlin

View 40 more

Browse all of them: 106 libraries, 27 frameworks, 153 APIs.

Problems it solves

  • a statically typed language that lets me write functional code but still use Java libraries
  • which language should I use for a high-throughput concurrent backend on the JVM
  • Java feels too verbose and I want something more expressive on the same platform
  • model my domain with a strong type system that catches bugs before the program runs
  • share code between a JVM backend and a browser frontend
  • write a quick script with dependencies without setting up a build
  • build distributed data processing jobs in a typed language

Features

  • static typing with type inference
  • fuses functional and object-oriented programming
  • runs on the JVM with Java interop
  • Scala.js for the browser and Node.js
  • Scala Native and GraalVM for native executables
  • metaprogramming and type class derivation
  • Scala Next and Scala LTS release lines
  • semantic versioning with backward compatible minor releases
  • Scala CLI for scripts and packaging

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Scala does.

  1. Apache Groovy A flexible and extensible Java-like language for the JVM
  2. F# F# empowers everyone to write succinct, robust and performant code
  3. Unison A friendly programming language from the future
  4. OCaml An industrial-strength functional programming language with an emphasis on expressiveness and safety
  5. Kotlin Concise. Multiplatform. Fun.
  6. Gleam A friendly language for building type-safe systems that scale

Compare Scala with the top 3