我偶然发现了 ScalaCL 项目及其编译器插件,该插件具有出色的循环优化器。
这让我想知道:
哪些编译器插件可用于 scala?
插件不必是性能改进插件;而是可以的。任何类型的插件都符合此列表的条件。
(我已经进行了 Google 搜索,但此查询的 SNR 很低。)
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.)
发布评论
评论(4)
此线程链接了一些插件< /a> 在邮件列表上 (自动代理,浏览,增强型字符串,avro)。
Scala 团队提供了现有的 分隔延续 插件,并且当前正在努力实现效果系统插件。
有关编写插件的文档位于此处。
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.
scalaz 中还存在一个用于生成函数式镜头的编译器插件: https://github.com/gseitz/Lensed 有关更多详细信息,请参阅此处:http://groups.google.com/group/scalaz/browse_thread/thread/a9334c5741b67d55
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
还有用于优化泛型的 miniboxing 插件:scala-miniboxing.org。
There's also the miniboxing plugin, for optimizing generics: scala-miniboxing.org.
这是由 Eiríkr Åsheim 编写的插件,用于优化通用数字代码(运行时 + 编译器插件):
https://github.com/azavea/numeric
Here's a plugin written by Eiríkr Åsheim that optimizes generic numeric code (runtime + compiler plugin) :
https://github.com/azavea/numeric