Document your code
Every project on GitHub comes with a version-controlled wiki to give your documentation the high level of care it deserves. It’s easy to create well-maintained, Markdown or rich text documentation alongside your code.
Sign up for free See pricing for teams and enterprisesGetting Started
Documentation
Besides this wiki, the docs/ directory and the code itself, here are some useful resources:
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]
To get started:
Requirements
Make sure that you are using Java 8 or later, the output of java -version
should contain 1.8
.
Compiling and running code
git clone https://github.com/lampepfl/dotty.git
cd dotty
# Clone dotty-compatible stdlib. Needed for running the test suite.
git clone -b dotty-library https://github.com/DarkDimius/scala.git scala-scala
# Compile code using Dotty
./bin/dotc tests/pos/HelloWorld.scala
# Run it with the proper classpath
./bin/dotr HelloWorld
Starting a REPL
./bin/dotr