Which scala compiler plugins are available?
Asked Answered
W

4

22

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.)

Washbasin answered 4/9, 2011 at 4:11 Comment(0)
N
12

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.

Nancienancy answered 4/9, 2011 at 5:45 Comment(0)
T
3

There also exists a compiler plugin for generation functional lenses in scalaz: https://github.com/gseitz/Lensed for more details see here: http://groups.google.com/group/scalaz/browse_thread/thread/a9334c5741b67d55

Terchie answered 4/9, 2011 at 20:20 Comment(1)
I had read about the lenses plugin but forgotten about it. Thanks for mentioning it.Washbasin
N
2

There's also the miniboxing plugin, for optimizing generics: scala-miniboxing.org.

Nelan answered 19/8, 2015 at 23:25 Comment(0)
C
1

Here's a plugin written by Eiríkr Åsheim that optimizes generic numeric code (runtime + compiler plugin) : https://github.com/azavea/numeric

Cowshed answered 14/9, 2011 at 11:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.