Re: GDK retrofit for Java functional interfaces

2021-05-01 Thread Daniel Sun
Parrot has to trade off parsing performance against friendly error message... but we have been trying to tweak error messages. Cheers, Daniel Sun On 2021/04/29 15:55:52, OCsite wrote: > Christopher, > > > On 29 Apr 2021, at 16:57, Christopher Smith wrote: > > Parrot has reduced my frustration

Re: GDK retrofit for Java functional interfaces

2021-04-29 Thread Christopher Smith
Sure, there are some glitches still, but that's why I said that even so it's a net boost, and I have been using it exclusively since I had the choice. On Thu, Apr 29, 2021, 10:56 OCsite wrote: > Christopher, > > On 29 Apr 2021, at 16:57, Christopher Smith wrote: > Parrot has reduced my frustrat

Re: GDK retrofit for Java functional interfaces

2021-04-29 Thread Alessio Stalla
ANTLR provides reasonably good error messages most of the time, but sometimes you have to tweak error handling a bit (in this case, searching for some more meaningful context to report), and/or refactor the grammar in a way that causes error reports to be more accurate. On Thu, 29 Apr 2021 at 17:5

Re: GDK retrofit for Java functional interfaces

2021-04-29 Thread OCsite
Christopher, > On 29 Apr 2021, at 16:57, Christopher Smith wrote: > Parrot has reduced my frustration levels about 15% across the board did it indeed? Weird. In my case, the very opposite is true; compare please e.g. the problem outlined below (which applies in 3.0.8 just as well) — it makes f

Re: GDK retrofit for Java functional interfaces

2021-04-29 Thread Christopher Smith
gt; list.collect(this.&miltiplier.curry(2)) > > > -----Original Message----- > From: Milles, Eric (TR Technology) > Sent: Wednesday, April 28, 2021 12:07 PM > To: dev@groovy.apache.org > Subject: RE: GDK retrofit for Java functional interfaces > > It is best IMO to ope

RE: GDK retrofit for Java functional interfaces

2021-04-29 Thread Milles, Eric (TR Technology)
021 9:37 AM To: dev@groovy.apache.org Subject: Re: GDK retrofit for Java functional interfaces Yup, those workarounds are effective, but they essentially consist in wrapping the cheap functional interface into an expensive closure even when there's no value-add. The inverse approach of defini

Re: GDK retrofit for Java functional interfaces

2021-04-29 Thread Christopher Smith
t; Sent: Wednesday, April 28, 2021 12:07 PM > To: dev@groovy.apache.org > Subject: RE: GDK retrofit for Java functional interfaces > > It is best IMO to open a JIRA ticket first so that discussion and metadata > can be tracked. Beyond that, opening a pull request on github with a lin

RE: GDK retrofit for Java functional interfaces

2021-04-29 Thread Milles, Eric (TR Technology)
nal Message- From: Milles, Eric (TR Technology) Sent: Wednesday, April 28, 2021 12:07 PM To: dev@groovy.apache.org Subject: RE: GDK retrofit for Java functional interfaces It is best IMO to open a JIRA ticket first so that discussion and metadata can be tracked. Beyond that, opening a pull

RE: GDK retrofit for Java functional interfaces

2021-04-28 Thread Milles, Eric (TR Technology)
hange first. -Original Message- From: Christopher Smith Sent: Wednesday, April 28, 2021 11:36 AM To: dev@groovy.apache.org Subject: Re: GDK retrofit for Java functional interfaces My case for `with` and `tap` is that in both cases they're immensely useful as general pipeline operations,

Re: GDK retrofit for Java functional interfaces

2021-04-28 Thread Christopher Smith
t; I think it would probably be best to submit one JIRA ticket for each group of > methods. That is, one for "collect", one for "findAll", etc. So we can > break the problem down and test things a little at a time. > > > > From: Christopher Smith > Sent:

RE: GDK retrofit for Java functional interfaces

2021-04-28 Thread Milles, Eric (TR Technology)
or "findAll", etc. So we can break the problem down and test things a little at a time. From: Christopher Smith Sent: Wednesday, April 28, 2021 11:02 AM To: dev@groovy.apache.org Subject: Re: GDK retrofit for Java functional interfaces The "side by side" approach is my secon

Re: GDK retrofit for Java functional interfaces

2021-04-28 Thread Christopher Smith
to use Java streams if you want a > lambda/method reference friendly API. There is an ticket in JIRA about > making streams a bit more "groovy": > https://issues.apache.org/jira/browse/GROOVY-10026 > > > -Original Message- > From: Christopher Smith > Se

RE: GDK retrofit for Java functional interfaces

2021-04-28 Thread Milles, Eric (TR Technology)
JIRA about making streams a bit more "groovy": https://issues.apache.org/jira/browse/GROOVY-10026 -Original Message- From: Christopher Smith Sent: Tuesday, April 27, 2021 6:37 PM To: dev@groovy.apache.org Subject: GDK retrofit for Java functional interfaces Since Paul is now t

Re: GDK retrofit for Java functional interfaces

2021-04-28 Thread Jochen Theodorou
On 28.04.21 03:43, Christopher Smith wrote: This would be both expensive and problematic with static mode, which is what I use almost exclusively for production code. On Tue, Apr 27, 2021, 20:26 Remi Forax mailto:fo...@univ-mlv.fr>> wrote: [...] It may be simpler to have a conversion from

Re: GDK retrofit for Java functional interfaces

2021-04-27 Thread Christopher Smith
Mercredi 28 Avril 2021 01:37:14 > > Objet: GDK retrofit for Java functional interfaces > > > Since Paul is now threatening us with a 4.0 beta, I wanted to float an > > idea that I've been thinking over for a bit now that might be best to > > add there (though maybe it

Re: GDK retrofit for Java functional interfaces

2021-04-27 Thread Remi Forax
- Mail original - > De: "Christopher Smith" > À: "dev" > Envoyé: Mercredi 28 Avril 2021 01:37:14 > Objet: GDK retrofit for Java functional interfaces > Since Paul is now threatening us with a 4.0 beta, I wanted to float an > idea that I've bee

GDK retrofit for Java functional interfaces

2021-04-27 Thread Christopher Smith
Since Paul is now threatening us with a 4.0 beta, I wanted to float an idea that I've been thinking over for a bit now that might be best to add there (though maybe it would be okay in 3 still, with the Java 8 baseline). A large number of the GDK extension methods (particularly stuff like `with`,