Re: Groovy AOT compilation

2017-05-08 Thread Cédric Champeau
I'll let Jochen answer that, I don't recall the reasons why it was a breaking change. I think part of the answer is that Groovy classes implement GroovyObject, but I miss the details, I'm no dynamic expert ;) 2017-05-09 8:34 GMT+02:00 Graeme Rocher : > Would it make sense to have the metaClass fi

Re: Groovy AOT compilation

2017-05-08 Thread Graeme Rocher
Would it make sense to have the metaClass field of GroovyObject initialise lazily? In what circumstance would that be a breaking change? Concurrency? On Tue, May 9, 2017 at 8:25 AM, Cédric Champeau wrote: > The reason is that even with static compilation, constructors include > metaclass initiali

Re: Groovy AOT compilation

2017-05-08 Thread Cédric Champeau
The reason is that even with static compilation, constructors include metaclass initialization. This is something that have been bothering me for a long time, and I wish we could rework that, but it's a behavioral breaking change (however, really unlikely to break things in real world). 2017-05-09

Re: Groovy AOT compilation

2017-05-08 Thread Sergei Egorov
Dear Paolo, Could you please share an example project? I would like to play with it :) Best Regards, Sergei On Tue, May 9, 2017 at 1:04 AM Paolo Di Tommaso wrote: > That would make sense. However apart of that there's still a lot of > reflection behind the scene even when using StaticCompile.

Re: [ANNOUNCE] Groovy 2.4.11 Windows Installer Released

2017-05-08 Thread Paul King
Thanks Keegan! On Tue, May 9, 2017 at 11:02 AM, Keegan Witt wrote: > The Windows installer for Groovy 2.4.11 is available from the usual place: > https://bintray.com/groovy/Distributions/download_ > file?file_path=groovy-2.4.11-installer.exe. > > -Keegan >

Re: Java 8 Date/Time API Extension Methods

2017-05-08 Thread Joe Wolf
Thanks Søren and Guillaume. I'm glad to finally contribute something to the Groovy community! On Sun, May 7, 2017 at 4:14 PM, Guillaume Laforge wrote: > This is indeed cool, and I'm wondering if it shouldn't be part of Groovy > itself directly :-) > > On Sun, May 7, 2017 at 10:09 PM, Søren Berg

[ANNOUNCE] Groovy 2.5.0-alpha-1 Windows Installer Released

2017-05-08 Thread Keegan Witt
The Windows installer for Groovy 2.5.0-alpha-1 is available from the usual place: https://bintray.com/groovy/Distributions/download_file?file_path=groovy-2.5.0-alpha-1-installer.exe . -Keegan

[ANNOUNCE] Groovy 2.4.11 Windows Installer Released

2017-05-08 Thread Keegan Witt
The Windows installer for Groovy 2.4.11 is available from the usual place: https://bintray.com/groovy/Distributions/download_file?file_path=groovy-2.4.11-installer.exe . -Keegan

Re: Groovy AOT compilation

2017-05-08 Thread Paolo Di Tommaso
That would make sense. However apart of that there's still a lot of reflection behind the scene even when using StaticCompile. For example just replacing the println statement with a `new Hello()` in the previous snippet, I'm getting the following errors when trying to compile with the AOT compiler

Re: Groovy AOT compilation

2017-05-08 Thread Paul King
That line was added to break a hard-dependency on the groovy-xml module by the core groovy module. With Java 9's "real" modules, we'd potentially want to rework that. I haven't really thought about what we might do instead but welcome to suggestions/ideas/PRs. Cheers, Paul. On Tue, May 9, 2017 a

Re: Groovy AOT compilation

2017-05-08 Thread Paolo Di Tommaso
Good question. I leave the answer to Groovy core developers, however as far as I've understood even when the code is statically compiled, Groovy still uses reflection in runtime helper methods. For example one of the first issue I've encountered it's raised by the following line in the InvokeHelper

RE: Groovy AOT compilation

2017-05-08 Thread Winnebeck, Jason
I think a biggest question than AOT compatibility is why does compile static still need to do reflection? I thought that was the point was to disable it, especially for Android support…? Unless the issue is the metaclass generation, does compile static still generate metaclasses? Jason From: P

Groovy AOT compilation

2017-05-08 Thread Paolo Di Tommaso
Dear all, I just want to share with you my experience with the Java AOT compiler a came across a few days ago. Although they said clearly that it still an experimental project and it does not support dynamic cl

Emacs Groovy Mode

2017-05-08 Thread Russel Winder
Anyone using the Emacs Groovy Mode from https://github.com/Groovy-Emacs -Modes/groovy-emacs-modes or MELPA almost certainly needs to take note, as I have likely broken your setup. First apologies for doing this, but there had to be a breaking change in order to get progress on all the things that