Re: Groovy 3 lambda, method reference, default methods
That answers the 2.6 question, thank you Daniil :-)mg Ursprüngliche Nachricht Von: Daniil Ovchinnikov Datum: 22.03.18 13:59 (GMT+01:00) An: users@groovy.apache.org Betreff: Re: Groovy 3 lambda, method reference, default methods It will be deduced it from library with a single switch to use Parrot in 2.6.There is no other reason not to use library version, since Groovy can’t cross compile classes to run with old Groovy versions. — Daniil Ovchinnikov Software Developer JetBrains jetbrains.com “Drive to develop” On 22 Mar 2018, at 15:42, mg wrote: Will Groovy 3.0 feature support be configurable (as for Java), or will it be deduced from Groovy libs used, ... ? Ursprüngliche Nachricht Von: Daniil Ovchinnikov Datum: 22.03.18 12:41 (GMT+01:00) An: users@groovy.apache.org Betreff: Re: Groovy 3 lambda, method reference, default methods IntelliJ will support Groovy 3 but with own parser. - using the parser provided by Groovy library restricts support to that library version; - compiler parsers are usually non-recoverable, but in IntelliJ we want to provide ability to work with broken code as much as possible, so we have own parsers for (almost) each language. — Daniil Ovchinnikov Software Developer JetBrains jetbrains.com “Drive to develop” > On 21 Mar 2018, at 22:30, mg wrote: > > I guess the Groovy 3.0/3.0-- (aka 2.6) syntax elements support will be > switchable in IntelliJ, anything else would make little sense to me. > But we have the expert on this mailing list, who should be able to tell us... > :-) > mg > > Ursprüngliche Nachricht > Von: "Daniel.Sun" > Datum: 21.03.18 17:10 (GMT+01:00) > An: us...@groovy.incubator.apache.org > Betreff: RE: Groovy 3 lambda, method reference, default methods > > You can write Java8 style code(e.g. lambda, method/constructor reference, > etc.) when Parrot parser is enabled :-) > See https://github.com/danielsun1106/groovy-parser > > > > Is there then a major difference in language between 2.6+Parrot and 3.0? > > 3.0 enables Parrot parser by default, so no differences. > > > > I wonder if the IntelliJ support ticket should be updated to say support > > new language features in Groovy 2.6 as well? > > I see the title contains "Groovy 3", so I am not sure if it will support 2.6 > > > Cheers, > Daniel.Sun > > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Groovy 3 lambda, method reference, default methods
Currently, you can switch off the Antlr parser in Groovy 3.0 by setting the antlr4 switch to false. We might deem that an implementation detail rather than a supported feature. In any case, we will likely drop that fairly soon, e.g. Groovy 3.1 (unplanned version number but assuming that's the next version). On Thu, Mar 22, 2018 at 10:59 PM, Daniil Ovchinnikov < daniil.ovchinni...@jetbrains.com> wrote: > It will be deduced it from library with a single switch to use Parrot in > 2.6. > There is no other reason not to use library version, since Groovy can’t > cross compile classes to run with old Groovy versions. > > — > > Daniil Ovchinnikov > Software Developer > JetBrains > jetbrains.com > “Drive to develop” > > > > On 22 Mar 2018, at 15:42, mg wrote: > > Will Groovy 3.0 feature support be configurable (as for Java), or will it > be deduced from Groovy libs used, ... ? > > Ursprüngliche Nachricht > Von: Daniil Ovchinnikov > Datum: 22.03.18 12:41 (GMT+01:00) > An: users@groovy.apache.org > Betreff: Re: Groovy 3 lambda, method reference, default methods > > IntelliJ will support Groovy 3 but with own parser. > > - using the parser provided by Groovy library restricts support to that > library version; > - compiler parsers are usually non-recoverable, but in IntelliJ we want to > provide ability to work with broken code as much as possible, so we have > own parsers for (almost) each language. > > — > > Daniil Ovchinnikov > Software Developer > JetBrains > jetbrains.com > “Drive to develop” > > > > > On 21 Mar 2018, at 22:30, mg wrote: > > > > I guess the Groovy 3.0/3.0-- (aka 2.6) syntax elements support will be > switchable in IntelliJ, anything else would make little sense to me. > > But we have the expert on this mailing list, who should be able to tell > us... :-) > > mg > > > > ---- Ursprüngliche Nachricht > > Von: "Daniel.Sun" > > Datum: 21.03.18 17:10 (GMT+01:00) > > An: us...@groovy.incubator.apache.org > > Betreff: RE: Groovy 3 lambda, method reference, default methods > > > > You can write Java8 style code(e.g. lambda, method/constructor reference, > > etc.) when Parrot parser is enabled :-) > > See https://github.com/danielsun1106/groovy-parser > > > > > > > Is there then a major difference in language between 2.6+Parrot and > 3.0? > > > > 3.0 enables Parrot parser by default, so no differences. > > > > > > > I wonder if the IntelliJ support ticket should be updated to say > support > > > new language features in Groovy 2.6 as well? > > > > I see the title contains "Groovy 3", so I am not sure if it will support > 2.6 > > > > > > Cheers, > > Daniel.Sun > > > > > > > > > > -- > > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html > > >
Re: Groovy 3 lambda, method reference, default methods
It will be deduced it from library with a single switch to use Parrot in 2.6. There is no other reason not to use library version, since Groovy can’t cross compile classes to run with old Groovy versions. — Daniil Ovchinnikov Software Developer JetBrains jetbrains.com “Drive to develop” > On 22 Mar 2018, at 15:42, mg wrote: > > Will Groovy 3.0 feature support be configurable (as for Java), or will it be > deduced from Groovy libs used, ... ? > > Ursprüngliche Nachricht > Von: Daniil Ovchinnikov > Datum: 22.03.18 12:41 (GMT+01:00) > An: users@groovy.apache.org > Betreff: Re: Groovy 3 lambda, method reference, default methods > > IntelliJ will support Groovy 3 but with own parser. > > - using the parser provided by Groovy library restricts support to that > library version; > - compiler parsers are usually non-recoverable, but in IntelliJ we want to > provide ability to work with broken code as much as possible, so we have own > parsers for (almost) each language. > > — > > Daniil Ovchinnikov > Software Developer > JetBrains > jetbrains.com > “Drive to develop” > > > > > On 21 Mar 2018, at 22:30, mg wrote: > > > > I guess the Groovy 3.0/3.0-- (aka 2.6) syntax elements support will be > > switchable in IntelliJ, anything else would make little sense to me. > > But we have the expert on this mailing list, who should be able to tell > > us... :-) > > mg > > > > Ursprüngliche Nachricht -------- > > Von: "Daniel.Sun" > > Datum: 21.03.18 17:10 (GMT+01:00) > > An: us...@groovy.incubator.apache.org > > Betreff: RE: Groovy 3 lambda, method reference, default methods > > > > You can write Java8 style code(e.g. lambda, method/constructor reference, > > etc.) when Parrot parser is enabled :-) > > See https://github.com/danielsun1106/groovy-parser > > > > > > > Is there then a major difference in language between 2.6+Parrot and 3.0? > > > > 3.0 enables Parrot parser by default, so no differences. > > > > > > > I wonder if the IntelliJ support ticket should be updated to say support > > > new language features in Groovy 2.6 as well? > > > > I see the title contains "Groovy 3", so I am not sure if it will support 2.6 > > > > > > Cheers, > > Daniel.Sun > > > > > > > > > > -- > > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html >
Re: Groovy 3 lambda, method reference, default methods
Will Groovy 3.0 feature support be configurable (as for Java), or will it be deduced from Groovy libs used, ... ? Ursprüngliche Nachricht Von: Daniil Ovchinnikov Datum: 22.03.18 12:41 (GMT+01:00) An: users@groovy.apache.org Betreff: Re: Groovy 3 lambda, method reference, default methods IntelliJ will support Groovy 3 but with own parser. - using the parser provided by Groovy library restricts support to that library version; - compiler parsers are usually non-recoverable, but in IntelliJ we want to provide ability to work with broken code as much as possible, so we have own parsers for (almost) each language. — Daniil Ovchinnikov Software Developer JetBrains jetbrains.com “Drive to develop” > On 21 Mar 2018, at 22:30, mg wrote: > > I guess the Groovy 3.0/3.0-- (aka 2.6) syntax elements support will be > switchable in IntelliJ, anything else would make little sense to me. > But we have the expert on this mailing list, who should be able to tell us... > :-) > mg > > Ursprüngliche Nachricht > Von: "Daniel.Sun" > Datum: 21.03.18 17:10 (GMT+01:00) > An: us...@groovy.incubator.apache.org > Betreff: RE: Groovy 3 lambda, method reference, default methods > > You can write Java8 style code(e.g. lambda, method/constructor reference, > etc.) when Parrot parser is enabled :-) > See https://github.com/danielsun1106/groovy-parser > > > > Is there then a major difference in language between 2.6+Parrot and 3.0? > > 3.0 enables Parrot parser by default, so no differences. > > > > I wonder if the IntelliJ support ticket should be updated to say support > > new language features in Groovy 2.6 as well? > > I see the title contains "Groovy 3", so I am not sure if it will support 2.6 > > > Cheers, > Daniel.Sun > > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Groovy 3 lambda, method reference, default methods
IntelliJ will support Groovy 3 but with own parser. - using the parser provided by Groovy library restricts support to that library version; - compiler parsers are usually non-recoverable, but in IntelliJ we want to provide ability to work with broken code as much as possible, so we have own parsers for (almost) each language. — Daniil Ovchinnikov Software Developer JetBrains jetbrains.com “Drive to develop” > On 21 Mar 2018, at 22:30, mg wrote: > > I guess the Groovy 3.0/3.0-- (aka 2.6) syntax elements support will be > switchable in IntelliJ, anything else would make little sense to me. > But we have the expert on this mailing list, who should be able to tell us... > :-) > mg > > Ursprüngliche Nachricht > Von: "Daniel.Sun" > Datum: 21.03.18 17:10 (GMT+01:00) > An: us...@groovy.incubator.apache.org > Betreff: RE: Groovy 3 lambda, method reference, default methods > > You can write Java8 style code(e.g. lambda, method/constructor reference, > etc.) when Parrot parser is enabled :-) > See https://github.com/danielsun1106/groovy-parser > > > > Is there then a major difference in language between 2.6+Parrot and 3.0? > > 3.0 enables Parrot parser by default, so no differences. > > > > I wonder if the IntelliJ support ticket should be updated to say support > > new language features in Groovy 2.6 as well? > > I see the title contains "Groovy 3", so I am not sure if it will support 2.6 > > > Cheers, > Daniel.Sun > > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
RE: Groovy 3 lambda, method reference, default methods
I guess the Groovy 3.0/3.0-- (aka 2.6) syntax elements support will be switchable in IntelliJ, anything else would make little sense to me.But we have the expert on this mailing list, who should be able to tell us... :-)mg Ursprüngliche Nachricht Von: "Daniel.Sun" Datum: 21.03.18 17:10 (GMT+01:00) An: us...@groovy.incubator.apache.org Betreff: RE: Groovy 3 lambda, method reference, default methods You can write Java8 style code(e.g. lambda, method/constructor reference, etc.) when Parrot parser is enabled :-) See https://github.com/danielsun1106/groovy-parser > Is there then a major difference in language between 2.6+Parrot and 3.0? 3.0 enables Parrot parser by default, so no differences. > I wonder if the IntelliJ support ticket should be updated to say support > new language features in Groovy 2.6 as well? I see the title contains "Groovy 3", so I am not sure if it will support 2.6 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
RE: Groovy 3 lambda, method reference, default methods
I guess the Groovy 3.0/3.0-- (aka 2.6) syntax elements support will be switchable in IntelliJ, anything else would make little sense to me.But we have the expert on this mailing list, who should be able to tell us... :-)mg Ursprüngliche Nachricht Von: "Daniel.Sun" Datum: 21.03.18 17:10 (GMT+01:00) An: us...@groovy.incubator.apache.org Betreff: RE: Groovy 3 lambda, method reference, default methods You can write Java8 style code(e.g. lambda, method/constructor reference, etc.) when Parrot parser is enabled :-) See https://github.com/danielsun1106/groovy-parser > Is there then a major difference in language between 2.6+Parrot and 3.0? 3.0 enables Parrot parser by default, so no differences. > I wonder if the IntelliJ support ticket should be updated to say support > new language features in Groovy 2.6 as well? I see the title contains "Groovy 3", so I am not sure if it will support 2.6 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
RE: Groovy 3 lambda, method reference, default methods
That's cool that it's basically a separate project. I wonder if IntelliJ itself can use the Parrot parser then to parse Groovy code, in that case it would always be guaranteed to be 100% "compatible", at least from a syntax perspective. I bet same concept could apply to code analysis tools. Jason -Original Message- From: Daniel.Sun [mailto:sun...@apache.org] Sent: Wednesday, March 21, 2018 12:11 PM To: us...@groovy.incubator.apache.org Subject: RE: Groovy 3 lambda, method reference, default methods You can write Java8 style code(e.g. lambda, method/constructor reference, etc.) when Parrot parser is enabled :-) See https://github.com/danielsun1106/groovy-parser > Is there then a major difference in language between 2.6+Parrot and 3.0? 3.0 enables Parrot parser by default, so no differences. > I wonder if the IntelliJ support ticket should be updated to say > support new language features in Groovy 2.6 as well? I see the title contains "Groovy 3", so I am not sure if it will support 2.6 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html This email message and any attachments are for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message and any attachments.
RE: Groovy 3 lambda, method reference, default methods
You can write Java8 style code(e.g. lambda, method/constructor reference, etc.) when Parrot parser is enabled :-) See https://github.com/danielsun1106/groovy-parser > Is there then a major difference in language between 2.6+Parrot and 3.0? 3.0 enables Parrot parser by default, so no differences. > I wonder if the IntelliJ support ticket should be updated to say support > new language features in Groovy 2.6 as well? I see the title contains "Groovy 3", so I am not sure if it will support 2.6 Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
RE: Groovy 3 lambda, method reference, default methods
This is major news, if the performance is comparable to Java. So with 2.6.0-alpha-3, Parrot, and JDK8+ you can use lambda expressions in static groovy and have them compiled to native lambda, or is it using closure syntax? Is there then a major difference in language between 2.6+Parrot and 3.0? I wonder if the IntelliJ support ticket should be updated to say support new language features in Groovy 2.6 as well? Jason -Original Message- From: Daniel.Sun [mailto:sun...@apache.org] Sent: Wednesday, March 21, 2018 11:50 AM To: us...@groovy.incubator.apache.org Subject: Re: Groovy 3 lambda, method reference, default methods Up to now native lambda is available under compile static mode in 3.0.0-alpha-2(will be released soon) and 2.6.0-alpha-3(Parrot parser is required enabled and using Java8+). Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html This email message and any attachments are for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message and any attachments.
Re: Groovy 3 lambda, method reference, default methods
Up to now native lambda is available under compile static mode in 3.0.0-alpha-2(will be released soon) and 2.6.0-alpha-3(Parrot parser is required enabled and using Java8+). Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html