Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What language is Scala written in, and where can the source be found? [closed]

Tags:

scala

What language is Scala written in?

Where does one get the source code of Scala? i'm looking for the Scala source itself, not a project written in Scala.

Note: I've seen https://stackoverflow.com/questions/2135966/where-do-i-find-an-open-source-project-written-in-scala among some other discussions here.

like image 608
Roam Avatar asked Oct 25 '13 02:10

Roam


People also ask

Is Scala open source?

The Scala programming language is an open source project with a very diverse community, where people from all over the world contribute their work, with everyone benefiting from friendly help and advice, and kindly helping others in return.

Is Scala part of Java?

Scala is a statically typed language that is based on Java. Thus, anyone who's well-versed with Java's syntax will find it pretty easy to learn Scala.

What does Scala run on?

Scala runs on the Java Virtual Machine Scala is compiled into Java Byte Code which is executed by the Java Virtual Machine (JVM). This means that Scala and Java have a common runtime platform.


1 Answers

Scala is [now] written in Scala. This process (of creating a language/compiler that can be used to build itself) is known as "bootstrapping".

The scalac source code can be found on GitHub scala/scala:

[GitHub scala] is the repository for the Scala Programming Language.

For the "compiler guts", start looking in nsc - New Scala Compiler.

Also see the Scala Developer Documentation "portal" which briefly hints how newer Scala/scalac versions are layered on top of previous builds.

like image 88
user2864740 Avatar answered Oct 13 '22 06:10

user2864740