News for hackers. Stuff that matters.
Re:Scala, Functional Programming and Play 2.0 by dkhenry on Sunday July 01, 2012 @08:06PM (#4186590)
Scala really makes Play2 shine. We really need a good example of using Play2 with ZMQ.
Re:Scala, Functional Programming and Play 2.0 by mark242 on Sunday July 01, 2012 @09:26PM (#4186797)
Why?!? Play2 is essentially a collection of specialized Akka actors. When you run Play, you get Akka integration for free. Having an architecture where your Play actions send Akka messages to a cluster of computational nodes/actors requires about 3 lines of code and 5 lines of config. Ridiculously scalable.
Re:Scala, Functional Programming and Play 2.0 by heretohelp on Sunday July 01, 2012 @09:47PM (#4186865)
>Having an architecture where your Play actions send Akka messages to a cluster of computational nodes/actors requires about 3 lines of code and 5 lines of config. Ridiculously scalable.

Scale what?

Re:Scala, Functional Programming and Play 2.0 by eta_carinae on Sunday July 01, 2012 @11:19PM (#4187143)
> Scala really makes Play2 shine.

Not really. Scala has a lot of good points but it's very ill-suited to web development because of compilation times.

Play1 could compile templates in a few tenths of a second while it takes 7-10 seconds for each template in Play 2, which is unacceptable when you do this all day long.

I predict Play 2 will not be around in a year from now for this reason, there are just better and faster ways to do this.

Re:Scala, Functional Programming and Play 2.0 by dkhenry on Monday July 02, 2012 @07:31AM (#4188398)
When you make changes to a template it takes a few seconds to recompile the template (once ) then after that it load much faster since it doesn't need to compile a second time. In addition the resultant code is rendered much faster the then old Groovy templates ( in my experience ). Is this more of a development time issue for you or are you noticing issues in a deployed system ?
Re:Scala, Functional Programming and Play 2.0 by meddlepal on Monday July 02, 2012 @01:26AM (#4187466)
The Play team or someone else could just re-implement the template layer as Groovy once again.

Scala has a lot of nice things going for it, but using it for the Play2 template language was stupid - the benefits do not outweigh the drawbacks at all.

Re:Scala, Functional Programming and Play 2.0 by soc88 on Monday July 02, 2012 @10:07AM (#4188908)
Weren't there quite some different templating choices (including Groovy) available from the beginning?

Independently from that, the compilation times will automatically improve when they update a) their SBT version and b) their Scala version. Additionally, Play developers can also refine their own code.