A next-generation compiler for Scala

(scroll down for more info)

Try Dotty

If you are a Mac user, you can install Dotty with brew:

brew install lampepfl/brew/dotty

If you are a Linux or Windows user, download the latest release. Optionally add path of the folder bin/ to the system environment variable PATH.

Now you can compile Scala source code:

scalac hello.scala

To start the REPL, run: scala.

Or, you can try Dotty in your browser with Scastie.

Create a Dotty Project

The fastest way to create a new project in Dotty is using sbt (1.1.4+).

Create a Dotty project:

sbt new lampepfl/dotty.g8

Or a Dotty project that cross compiles with Scala 2:

sbt new lampepfl/dotty-cross.g8

For documentation see the Dotty Example Project.