tags:

views:

106

answers:

2

What I mean by the title is, whether there's 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.

+4  A: 

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.

Daniel
yes, seems like play has solved this for java, and are aiming for full scala support
IttayD
+1  A: 

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.

Thomas Jung