You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@groovy.apache.org by Russel Winder <ru...@winder.org.uk> on 2017/05/28 07:46:21 UTC

Indy vs default build

In Groovy 3.0 there is still the default build and the indy artefacts
build – which I am guessing no-one uses because they are not the
default. Isn't 3.0 the time to get rid of this double build and just
have one build?

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Re: Indy vs default build

Posted by Cédric Champeau <ce...@gmail.com>.
Right, I realize that it's not as easy as "remove" either, because
otherwise you just break the ability to use libraries compiled with older
versions of Groovy (which would be a pity). So if we go with indy "by
default", we have to think what it means in terms of deliverables (a
`-legacy` jar?) and what it means for consumers of those artifacts (imagine
the number of projects which depend on `groovy-all` today).

2017-05-29 14:56 GMT+02:00 Paul King <pa...@asert.com.au>:

> Master is already at Java 8 and will be the basis for Groovy 3 (or
> possibly 4 if we bump the 2_6 branch to be Groovy 3). So I think it's safe
> to target master for indy only. But agree we need to assess performance
> regressions.
>
>
> On 29 May 2017 9:21 am, "Cédric Champeau" <ce...@gmail.com>
> wrote:
>
>> "Indy by default" doesn't mean anything. It's either "get rid of old call
>> site caching/only keep indy" or, "keep as is".
>>
>> Last time we tentatively started a discussion on what should be in Groovy
>> 3 or not, we talked about upgrading to Java 8 minimally. If this happens,
>> then we can use indy only and get rid of the "old" call site caching. But I
>> also mentioned back then that we MUST perform benchmarks to make sure the
>> performance of this version is as good as the previous one. Especially, I
>> recall there were performance regressions in some areas (primitive
>> handling, for example).
>>
>> Also, bumping to Java 8 only may be an issue for some. At least, it would
>> prevent Gradle from upgrading to Groovy 3. Which may, or may not be an
>> issue.
>>
>>
>> 2017-05-29 8:20 GMT+02:00 Mario Garcia <ma...@gmail.com>:
>>
>>> +1 Indy by default
>>>
>>> Cheers
>>> Mario
>>>
>>> 2017-05-28 14:43 GMT+02:00 Jennifer Strater <je...@gmail.com>:
>>>
>>>> +1
>>>>
>>>> Regards,
>>>> Jenn
>>>>
>>>> On Sun, May 28, 2017 at 2:22 PM, Daniel Sun <re...@hotmail.com>
>>>> wrote:
>>>>
>>>>> +1 for setting indy by default.
>>>>>
>>>>> Cheers,
>>>>> Daniel.Sun
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://groovy.329449.n5.nabble
>>>>> .com/Indy-vs-default-build-tp5741393p5741394.html
>>>>> Sent from the Groovy Dev mailing list archive at Nabble.com.
>>>>>
>>>>
>>>>
>>>
>>

Re: Indy vs default build

Posted by Paul King <pa...@asert.com.au>.
Master is already at Java 8 and will be the basis for Groovy 3 (or possibly
4 if we bump the 2_6 branch to be Groovy 3). So I think it's safe to target
master for indy only. But agree we need to assess performance regressions.


On 29 May 2017 9:21 am, "Cédric Champeau" <ce...@gmail.com> wrote:

> "Indy by default" doesn't mean anything. It's either "get rid of old call
> site caching/only keep indy" or, "keep as is".
>
> Last time we tentatively started a discussion on what should be in Groovy
> 3 or not, we talked about upgrading to Java 8 minimally. If this happens,
> then we can use indy only and get rid of the "old" call site caching. But I
> also mentioned back then that we MUST perform benchmarks to make sure the
> performance of this version is as good as the previous one. Especially, I
> recall there were performance regressions in some areas (primitive
> handling, for example).
>
> Also, bumping to Java 8 only may be an issue for some. At least, it would
> prevent Gradle from upgrading to Groovy 3. Which may, or may not be an
> issue.
>
>
> 2017-05-29 8:20 GMT+02:00 Mario Garcia <ma...@gmail.com>:
>
>> +1 Indy by default
>>
>> Cheers
>> Mario
>>
>> 2017-05-28 14:43 GMT+02:00 Jennifer Strater <je...@gmail.com>:
>>
>>> +1
>>>
>>> Regards,
>>> Jenn
>>>
>>> On Sun, May 28, 2017 at 2:22 PM, Daniel Sun <re...@hotmail.com>
>>> wrote:
>>>
>>>> +1 for setting indy by default.
>>>>
>>>> Cheers,
>>>> Daniel.Sun
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context: http://groovy.329449.n5.nabble
>>>> .com/Indy-vs-default-build-tp5741393p5741394.html
>>>> Sent from the Groovy Dev mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>
>

Re: Indy vs default build

Posted by John Wagenleitner <jo...@gmail.com>.
Does indy by default mean

1.  only generate one set of groovy-* artifacts where any .groovy source
files in the Groovy source itself are compiled using indy (no more separate
indy jars)

or

2.  continue to have two sets of artifacts where the indy set would go in
lib/ by default and -noindy jars would exist that could replace them if old
callsite code is desired

I took Russel's original suggestion to mean #1 and I would be in favor of
that for 3.0. I think any performance concern would largely be confined to
some of the sub-projects in the Groovy codebase since most of core is
written in Java.

The other consideration in making indy default is whether indy will be
enabled by default for compiling user supplied source and this is what I
think most are referring to in the replies.  This is where I agree that
there is no rush to remove the callsite code and it would be good to have a
--no-indy option for the next several major versions after that change is
made.

John


On Tue, May 30, 2017 at 4:29 PM, Jochen Theodorou <bl...@gmx.org> wrote:

> in my opinion if JDK8 is the minimum requirement we can switch to indy as
> default, while keeping the old call site caching as is.
>
> It is more that in the long term we want to get rid of code that has no
> future and all that. But I see no hard requirement to do those things just
> because of indy beig the default
>
> bye Jochen
>
> On 30.05.2017 23:48, Mario Garcia wrote:
>
>> If I didn't get it wrong, there is a possibility to have indy as a
>> default only if:
>>
>>  1. Callsite caching is rewritten to work with indy/no indy
>>  2. We keep binary compatibility Groovy 3 / JDK7 until Gradle moves to
>>     Groovy 3
>>  3. Then we will be able to move to Groovy with JDK8 and set Indy by
>> default
>>
>> Is that correct ?
>> Mario
>>
>> 2017-05-30 17:24 GMT+02:00 Daniel Sun <realbluesun@hotmail.com
>> <ma...@hotmail.com>>:
>>
>>     > I don't think it would be good if gradle stayed on Groovy 2.x. That
>> would
>>     counter the acceptance of Groovy 3
>>
>>     Agreed.
>>
>>     Cheers,
>>     Daniel.Sun
>>
>>
>>
>>
>>     --
>>     View this message in context:
>>     http://groovy.329449.n5.nabble.com/Indy-vs-default-build-
>> tp5741393p5741420.html
>>     <http://groovy.329449.n5.nabble.com/Indy-vs-default-build-
>> tp5741393p5741420.html>
>>     Sent from the Groovy Dev mailing list archive at Nabble.com.
>>
>>
>>

Re: Indy vs default build

Posted by Jochen Theodorou <bl...@gmx.org>.
in my opinion if JDK8 is the minimum requirement we can switch to indy 
as default, while keeping the old call site caching as is.

It is more that in the long term we want to get rid of code that has no 
future and all that. But I see no hard requirement to do those things 
just because of indy beig the default

bye Jochen

On 30.05.2017 23:48, Mario Garcia wrote:
> If I didn't get it wrong, there is a possibility to have indy as a
> default only if:
>
>  1. Callsite caching is rewritten to work with indy/no indy
>  2. We keep binary compatibility Groovy 3 / JDK7 until Gradle moves to
>     Groovy 3
>  3. Then we will be able to move to Groovy with JDK8 and set Indy by default
>
> Is that correct ?
> Mario
>
> 2017-05-30 17:24 GMT+02:00 Daniel Sun <realbluesun@hotmail.com
> <ma...@hotmail.com>>:
>
>     > I don't think it would be good if gradle stayed on Groovy 2.x. That would
>     counter the acceptance of Groovy 3
>
>     Agreed.
>
>     Cheers,
>     Daniel.Sun
>
>
>
>
>     --
>     View this message in context:
>     http://groovy.329449.n5.nabble.com/Indy-vs-default-build-tp5741393p5741420.html
>     <http://groovy.329449.n5.nabble.com/Indy-vs-default-build-tp5741393p5741420.html>
>     Sent from the Groovy Dev mailing list archive at Nabble.com.
>
>

Re: Indy vs default build

Posted by Mario Garcia <ma...@gmail.com>.
If I didn't get it wrong, there is a possibility to have indy as a default
only if:

   1. Callsite caching is rewritten to work with indy/no indy
   2. We keep binary compatibility Groovy 3 / JDK7 until Gradle moves to
   Groovy 3
   3. Then we will be able to move to Groovy with JDK8 and set Indy by
   default

Is that correct ?
Mario

2017-05-30 17:24 GMT+02:00 Daniel Sun <re...@hotmail.com>:

> > I don't think it would be good if gradle stayed on Groovy 2.x. That would
> counter the acceptance of Groovy 3
>
> Agreed.
>
> Cheers,
> Daniel.Sun
>
>
>
>
> --
> View this message in context: http://groovy.329449.n5.
> nabble.com/Indy-vs-default-build-tp5741393p5741420.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.
>

Re: Indy vs default build

Posted by Daniel Sun <re...@hotmail.com>.
> I don't think it would be good if gradle stayed on Groovy 2.x. That would
counter the acceptance of Groovy 3

Agreed.

Cheers,
Daniel.Sun




--
View this message in context: http://groovy.329449.n5.nabble.com/Indy-vs-default-build-tp5741393p5741420.html
Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: Indy vs default build

Posted by Jochen Theodorou <bl...@gmx.org>.

On 29.05.2017 18:50, Cédric Champeau wrote:
> [...]  Or, if not, we could decide to stay on Groovy 2.x, since
> Gradle Script Kotlin is supposed to be the default in the future.

I don't think it would be good if gradle stayed on Groovy 2.x. That 
would counter the acceptance of Groovy 3

bye Jochen

Re: Indy vs default build

Posted by Cédric Champeau <ce...@gmail.com>.
>
>
>>
> If it is a big binary breaking version this Gradle will not adapt that
> Groovy version anytime anyway. Right?
>
> It needs to be binary compatible (so that precompiled plugins still work)
*and* compatible with JDK 7 (which is the minimal runtime for Gradle). When
I say this may or may not be an issue, it's because by the time Groovy 3 is
released, maybe Gradle would require Java 8, I really don't know. Or, if
not, we could decide to stay on Groovy 2.x, since Gradle Script Kotlin is
supposed to be the default in the future.

Re: Indy vs default build

Posted by Jochen Theodorou <bl...@gmx.org>.

On 29.05.2017 09:21, Cédric Champeau wrote:
> "Indy by default" doesn't mean anything. It's either "get rid of old
> call site caching/only keep indy" or, "keep as is".

Completely ripping out the old callsite caching means old code will no 
longer work. Having both, but using indy as default will not be a 
breaking change for binary compatibility. And the old callsite caching 
could be rewritten to use indy as well. We would still get rid of most 
of the callsite caching code then. This means we can make this a two 
step approach. First have both, but let the old code use indy. And then 
get rid of the old part completely ind the big breaking change version

[...]
> Also, bumping to Java 8 only may be an issue for some. At least, it
> would prevent Gradle from upgrading to Groovy 3. Which may, or may not
> be an issue.

If it is a big binary breaking version this Gradle will not adapt that 
Groovy version anytime anyway. Right?

bye Jochen

Re: Indy vs default build

Posted by Cédric Champeau <ce...@gmail.com>.
"Indy by default" doesn't mean anything. It's either "get rid of old call
site caching/only keep indy" or, "keep as is".

Last time we tentatively started a discussion on what should be in Groovy 3
or not, we talked about upgrading to Java 8 minimally. If this happens,
then we can use indy only and get rid of the "old" call site caching. But I
also mentioned back then that we MUST perform benchmarks to make sure the
performance of this version is as good as the previous one. Especially, I
recall there were performance regressions in some areas (primitive
handling, for example).

Also, bumping to Java 8 only may be an issue for some. At least, it would
prevent Gradle from upgrading to Groovy 3. Which may, or may not be an
issue.


2017-05-29 8:20 GMT+02:00 Mario Garcia <ma...@gmail.com>:

> +1 Indy by default
>
> Cheers
> Mario
>
> 2017-05-28 14:43 GMT+02:00 Jennifer Strater <je...@gmail.com>:
>
>> +1
>>
>> Regards,
>> Jenn
>>
>> On Sun, May 28, 2017 at 2:22 PM, Daniel Sun <re...@hotmail.com>
>> wrote:
>>
>>> +1 for setting indy by default.
>>>
>>> Cheers,
>>> Daniel.Sun
>>>
>>>
>>>
>>> --
>>> View this message in context: http://groovy.329449.n5.nabble
>>> .com/Indy-vs-default-build-tp5741393p5741394.html
>>> Sent from the Groovy Dev mailing list archive at Nabble.com.
>>>
>>
>>
>

Re: Indy vs default build

Posted by Mario Garcia <ma...@gmail.com>.
+1 Indy by default

Cheers
Mario

2017-05-28 14:43 GMT+02:00 Jennifer Strater <je...@gmail.com>:

> +1
>
> Regards,
> Jenn
>
> On Sun, May 28, 2017 at 2:22 PM, Daniel Sun <re...@hotmail.com>
> wrote:
>
>> +1 for setting indy by default.
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>> --
>> View this message in context: http://groovy.329449.n5.nabble
>> .com/Indy-vs-default-build-tp5741393p5741394.html
>> Sent from the Groovy Dev mailing list archive at Nabble.com.
>>
>
>

Re: Indy vs default build

Posted by Jennifer Strater <je...@gmail.com>.
+1

Regards,
Jenn

On Sun, May 28, 2017 at 2:22 PM, Daniel Sun <re...@hotmail.com> wrote:

> +1 for setting indy by default.
>
> Cheers,
> Daniel.Sun
>
>
>
> --
> View this message in context: http://groovy.329449.n5.
> nabble.com/Indy-vs-default-build-tp5741393p5741394.html
> Sent from the Groovy Dev mailing list archive at Nabble.com.
>

Re: Indy vs default build

Posted by Daniel Sun <re...@hotmail.com>.
+1 for setting indy by default.

Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/Indy-vs-default-build-tp5741393p5741394.html
Sent from the Groovy Dev mailing list archive at Nabble.com.