Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which scala compiler plugins are available?

Tags:

I stumbled across the ScalaCL project and its compiler plugin that has an awesome loop optimizer.

This made me wonder:

Which compiler plugins are available for scala?

Plugins need not be performance improving plugins; any type of plugin is eligible for this list.

(I have done Google searches but the SNR is low for this query.)

like image 446
HRJ Avatar asked Sep 04 '11 04:09

HRJ


People also ask

What is plugin in Scala?

Introduction. A compiler plugin is a compiler component that lives in a separate JAR file from the main compiler. The compiler can then load that plugin and gain extra functionality. This tutorial briefly walks you through writing a plugin for the Scala compiler.

What is Scalacoptions?

The Scala compiler scalac offers various compiler options, or flags, that change the compiler's default behavior. Some options just generate more compiler output in the form of diagnostics or warnings, while others change the result of compilation.


1 Answers

A few plugins are linked from this thread on the mailing list (autoproxy, browse, enhanced strings, avro).

From the Scala team, there is the existing delimited continuations plugin, and a current effort toward an effect system plugin.

Documentation on writing a plugin is here.

like image 174
Kipton Barros Avatar answered Sep 22 '22 02:09

Kipton Barros