Getting Started
Talks on Dotty
- Scala's Road Ahead by Martin Odersky [slides]
- Compilers are Databases by Martin Odersky [slides]
- Dotty: Exploring the future of Scala by Dmitry Petrashko [slides]. This talk includes details about the design of mini-phases and denotations.
- Making your Scala applications smaller and faster with the Dotty linker by Dmitry Petrashko [slides]
- Dotty: what is it and how it works by Guillaume Martres [slides]
- Hacking on Dotty: A live demo by Guillaume Martres [slides]
- AutoSpecialization in Dotty by Dmitry Petrashko [slides]
- Dotty and types: the story so far by Guillaume Martres [slides]
Requirements
Make sure that you are using Java 8 or later, the output of java -version
should contain 1.8
.
Compiling and Running
Start by cloning the repository:
$ git clone https://github.com/lampepfl/dotty.git
$ cd dotty
Dotty provides a standard sbt build: compiling, running and starting a repl can all be done from within sbt using
$ sbt
> dotc tests/pos/HelloWorld.scala
> dotr HelloWorld
hello world
there is also a bash script that can be used in the same way:
# Compile code using Dotty
./bin/dotc tests/pos/HelloWorld.scala
# Run it with the proper classpath
./bin/dotr HelloWorld
Starting a REPL
$ sbt
> repl
Welcome to Scala.next (pre-alpha) (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_101).
Type in expressions to have them evaluated.
Type :help for more information.
scala>
or via bash:
$ ./bin/dotr