Green Scala Initiative

Le Centre de la Scala Centrée is pleased to announce the fruits of a collaboration with the EU Commission on Reduction of Emissions (EUCRE).

A board of environmental scientists calculate that Scala compilations across the region account for approximately 0.1 degree Celsius of climate warming. It is estimated that Swiss glaciers have shrunk an additional 5% since the introduction of Scala 2.

The centre has committed to reducing the fossil fuels required for compilation by half before 2025, and to be carbon-neutral by 2030.

This will be accomplished primarily through a new build tool to be developed by the Scala Spree, to be called sbt or “Spree Built This”.

Its core innovation is that distributed builds will share partial compilation results around the world using blockchain technology.

Active builds will run only where there is sufficient local wind or solar energy to run compilation until refchecks. (93% of the energy requirements of a compilation run are incurred by typer and patmat.)

These build servers will employ optimisation techniques recently developed at EPFL. For example, instead of performing laborious implicit resolution or, which is laboriouser, overload resolution, a server may apply a stochastic algorithm, since only one build of a given code unit is required to succeed at any time across the globe. Client compilers need only retrieve that successful build.

As an additional green feature, on cloudy, windless days, servers will automatically disable -Xlint. In that mode, client compilers will encourage coders to remain alert using the same technology deployed in Tesla cars. (Users are required to keep their hands on the keyboard.)

The compiler tokenizer will produce crypto tokens called “frankencents”, and results published to clients will represent both a compilation unit and the monetary and environmental cost of producing the token.

In an interview, Dr Martin Odersky acknowledged that he always wanted to get into cryptocurrency and that this was a great way to finally monetise Scala.

Strategically located datacenters will be dedicated to processing student assignments for Coursera.

You can help this effort!

Your purchase of a “Save the glaciers!” t-shirt at the Scala Store will help purchase a bag of ice from the machine at EPFL which student volunteers will carry to a glacier of your choice, where it will be deposited to restore the retreating flow or is it floe.

The centre recommends all users eliminate braces where possible to conserve energy and save the planet. We did it with semicolons, we can do it again with braces! If your compiler supports it, use -Yimports to eliminate redundant import statements. Visit le centre to learn other ways you can benefit all Scala users and have fun doing it.

17 Likes

This is a very timely announcement – quite of the moment. Thank you.

I fell like this is a real letdown from le Scala center. We had been told that Scala would be reverting to adopting Java 4’s type system and forgoing generics, as Java 4’s type system has been proven time and time again to be a lot more energy-efficient. What a shame!

Well, at least I’m happy we finally found a way to utilize this wonderful and environment-firendly blockchain technology I keep hearing about.

3 Likes

Yes, that will be supported under -Xjava. It’s so energy efficient that after compilation, it will briefly suspend the computer and allow the capacitors to discharge and return electricity to the grid, so you will actually earn money back every time you compile. That option will be aliased as -Ygo.

I think that is a beautiful system, but it’s recommended that you keep a napkin close by to scribble on. For some reason, one traditionally scribbles on the back of the napkin, but we expect that both sides will be required, so don’t put a glass of ice water on it. Also a pen, of course. You will need a pen.

3 Likes

I hope this new initiative fares better than Rob Norris’s “throw your laptops into the sea!” campaign, which aimed to reduce energy consumption, but had the unintended effect of causing sea levels to rise. (On the positive side, an endangered species of fish is reportedly using the massive reefs of discarded laptops for shelter from predators.)

6 Likes