开发者

scala: anything like python/ruby development mode?

What I mean by the title is, whether there's开发者_JAVA百科 a free framework/tool that allows me to write .scala files and have them reloaded & compiled automatically by the (web) server without the need to compile, package and deploy.

Probably javarebel can be used here, but it is not free.


JRebel, which is the new name for JavaRebel, has a free license for Scala use.

Other alternatives include using Maven's scala:cc target, which keeps compiling on the background, triggered by changes, and, in particular, the Play framework is almost perfect in this regard.


Scala has an interpreter (scala.tools.nsc.Interpreter.) that can be embedded. The infrastructure to load changed files should not be to hard to implement. The interesting question is how do you handle instances of older class versions? The easiest approach is to throw away the instances and the classloader.

I do vaguely remember that JRebel is free for scala development. Not sure if this was only for open-source scala projects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜