Scala in a Nutshell
click the boxes below to see Scala in action!
Run Scala in your browser
Scastie is Scala + sbt in your browser! You can use any version of Scala, or even alternate backends such as Dotty, Scala.js, Scala Native, and Typelevel Scala. You can use any published library. You can save and share Scala programs/builds with anybody.
BLOGMonday, June 29, 2020
Installing Scala has always been a task more challenging than necessary, with the potential to drive away beginners. Should I install Scala itself? sbt? Some other build tools? What about a better REPL like Ammonite? Oh and before all that I need to install Java?
To solve this problem, the Scala Center contracted Alexandre Archambault in January 2020 to add a one-click install of Scala through coursier. For example, on Linux, all we now need is:
$ curl -Lo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs setup
You can find the instructions for Mac OS and Windows in the Coursier documentation.
The command shown above will install all the following software, if not yet installed:
- a JDK
- the build tools sbt and mill
- the Ammonite enhanced REPL
- scalafmt, the Scala formatter
- the coursier CLI, to install further Scala-based applications
With all those installed, we are ready to go!
cs update can be used to update the installation.
For power users, the
cs setup command offers more configuration options, such as a non-interactive mode.
With this new simple, all-encompassing installer, we at the Scala Center hope to significantly reduce the burden of getting started with Scala.
Scala 2.13.3 is now available!
- Thursday, June 25, 2020
Scala 2.13.3 is now available! This is primarily a bugfix release. It also includes: improvements to warnings and linting experim...
The Scala Center stands with Black Lives Matter
- Monday, June 22, 2020
- The Scala Center team
Black Lives Matter. Systemic racial discrimination and state-supported brutality is unacceptable. The Scala Center team (further: we) re...
Import Suggestions in Scala 3
- Tuesday, May 5, 2020
- Julien Richard-Foy, Scala Center
Implicits let the compiler “write” significant parts of a program for you. For instance, the compiler can summon JSON serializers and des...
Talk to us!
for general Scala questions, discussion and library announcements.
for Scala contributions, language evolution discussions, standard library, Scala platform evolution discussions and more.
More chat rooms are listed on the Community page
See more tweets, orFollow Scala on twitter