TemplateEngines and Out of Memory

2016-06-24 Thread t.schoellhorn
Hi, we are using Groovy in our web-application. There we create a "lot" of dynamic String and are handling that with the TemplateEngine as we need more complex expressions there. Now we noticed that we are running into a kind of weird OOM situation. I could narrow the problem down to a quite simple

GenericsVisitor change for Groovy 2.5.0

2016-06-24 Thread Paul King
Hi everyone, I moved the GenericsVisitor earlier in the compilation process. This means that errors involving class usage but supplying an incorrect number of type parameters, e.g. List or HashMap or invalid Diamond operator usage will now be flagged earlier. This is nice because we had other part

Re: Is it possible to enable CompileStatic for an entire project

2016-06-24 Thread Jochen Theodorou
On 24.06.2016 18:12, Mr Andersson wrote: [...] static Groovy is on par most of the time, dynamic Groovy depends, but I think it is more in the range of being 2.5 times java (100ms runtime becomes 250ms). I think that is close enough and there is still some potential But a Java fork would be

Re: Integrating Groovy with a Java EE application and Maven

2016-06-24 Thread Jochen Theodorou
On 24.06.2016 17:41, Mr Andersson wrote: [...] If you want to convince me of switching, i am still looking/waiting for someone to offer cyclic dependency support between modules, since without it, my code is getting more complex than need be. then you probably do not want modules, but just mult

Re: @compileStatic and groovy.sql

2016-06-24 Thread Wilson MacGyver
I've been playing around with sql2o actually. http://www.sql2o.org/ it has very good performance for read. https://github.com/aaberg/sql2o and 99% of my SQL needs are read only. On Fri, Jun 24, 2016 at 9:34 AM, Cédric Champeau wrote: > For type safe sql those days I would recommend to use jO

Re: Is it possible to enable CompileStatic for an entire project

2016-06-24 Thread Mr Andersson
On 06/22/2016 07:45 PM, Jochen Theodorou wrote: On 22.06.2016 18:55, Mr Andersson wrote: [...] We, at our company can only ship groovy if it is fully static, no way to manipulate. It's difficult to hammer it through otherwise. Big enterprise JEE companies don't take risks, especially when the

Re: Integrating Groovy with a Java EE application and Maven

2016-06-24 Thread Mr Andersson
On 06/22/2016 10:30 AM, Cédric Champeau wrote: You should really give Gradle a try. It's pretty straightforward. I have tried it, i found it "too dirty", too groovy, too dynamic, although I know it's an excellent tool for building and hooking into the build process. I also found there w

Re: @compileStatic and groovy.sql

2016-06-24 Thread Cédric Champeau
For type safe sql those days I would recommend to use jOOQ. Le 23 juin 2016 06:58, "Wilson MacGyver" a écrit : > Ouch I will continue to embrace dynamic then :) > > On Wed, Jun 22, 2016 at 1:56 PM Guillaume Laforge > wrote: > >> Perhaps a custom type checker extension could be fed with the j