Re: Anonymous value classes

2022-06-07 Thread forax
- Original Message - > From: "daniel smith" > To: "Remi Forax" > Cc: "Maurizio Cimadamore" , "Brian Goetz" > , > "valhalla-spec-experts" > Sent: Monday, June 6, 2022 7:56:40 PM > Subject: Re: Anonymou

Re: Anonymous value classes

2022-06-06 Thread Dan Smith
> On Jun 4, 2022, at 3:33 AM, fo...@univ-mlv.fr wrote: > > there is a lot of libraries that have APIs using interfaces that are > implemented by anonymous classes, the collection API is one of them, fluent > loggers (anything fluent in fact) is another, and those will benefit to have > better

Re: Anonymous value classes

2022-06-04 Thread forax
> From: "Maurizio Cimadamore" > To: "Brian Goetz" , "Remi Forax" > Cc: "daniel smith" , "valhalla-spec-experts" > > Sent: Friday, June 3, 2022 8:18:44 PM > Subject: Re: Anonymous value classes > And `var` ? > (b

Re: Anonymous value classes

2022-06-03 Thread Maurizio Cimadamore
uot;valhalla-spec-experts" *Sent: *Friday, June 3, 2022 6:21:26 PM *Subject: *Re: Anonymous value classes There is no chance to get any calling-convention optimization here, since the concrete class name will not show up in any method descriptor (or preload attribute).  The

Re: Anonymous value classes

2022-06-03 Thread Brian Goetz
On 6/3/2022 1:39 PM, Remi Forax wrote: *From: *"Brian Goetz" *To: *"daniel smith" , "valhalla-spec-experts" *Sent: *Friday, June 3, 2022 6:21:26 PM *Subject

Re: Anonymous value classes

2022-06-03 Thread Remi Forax
- Original Message - > From: "daniel smith" > To: "valhalla-spec-experts" > Sent: Friday, June 3, 2022 6:18:42 PM > Subject: Re: Anonymous value classes >> On Jun 3, 2022, at 10:15 AM, Dan Smith wrote: >> >> Our javac prototype has

Re: Anonymous value classes

2022-06-03 Thread Remi Forax
> From: "Brian Goetz" > To: "daniel smith" , "valhalla-spec-experts" > > Sent: Friday, June 3, 2022 6:21:26 PM > Subject: Re: Anonymous value classes > There is no chance to get any calling-convention optimization here, since the > concrete c

Re: Anonymous value classes

2022-06-03 Thread Brian Goetz
There is no chance to get any calling-convention optimization here, since the concrete class name will not show up in any method descriptor (or preload attribute).  There is no chance to get any heap flattening here, since the concrete class name will not show up in any field descriptor or

Re: Anonymous value classes

2022-06-03 Thread Dan Smith
> On Jun 3, 2022, at 10:15 AM, Dan Smith wrote: > > Our javac prototype has long included support for a 'value' keyword after > 'new' to indicate that an anonymous class is a value class (I see Remi brought this up in the list in July 2018, which is probably what inspired the prototype

Anonymous value classes

2022-06-03 Thread Dan Smith
Our javac prototype has long included support for a 'value' keyword after 'new' to indicate that an anonymous class is a value class: Runnable r = new value Runnable() { public void run() { x.foo(); } }; Is this something we'd like to preserve as a language feature? Arguments for: -