Re: String Interpolation

2021-10-15 Thread forax
> From: "Jim Laskey" > To: "Remi Forax" > Cc: "Brian Goetz" , "amber-spec-experts" > > Sent: Vendredi 15 Octobre 2021 20:34:58 > Subject: Re: String Interpolation > Yes, the methodology we have chosen does avoid boxing (and var

Re: String Interpolation

2021-10-15 Thread Jim Laskey
mailto:fo...@univ-mlv.fr>>, "amber-spec-experts" mailto:amber-spec-experts@openjdk.java.net>> Sent: Mercredi 13 Octobre 2021 21:32:19 Subject: Re: String Interpolation After grumbling a lot, let's restart [...] That's why the specification allow you to provide a seco

Re: String Interpolation

2021-10-15 Thread forax
> From: "Brian Goetz" > To: "Remi Forax" , "amber-spec-experts" > > Sent: Mercredi 13 Octobre 2021 21:32:19 > Subject: Re: String Interpolation After grumbling a lot, let's restart [...] >> That's why the specification a

Re: String Interpolation

2021-10-13 Thread forax
> From: "Brian Goetz" > To: "Remi Forax" , "amber-spec-experts" > > Sent: Mercredi 13 Octobre 2021 21:32:19 > Subject: Re: String Interpolation > The ability to capture per-call-site computation so it could be done exactly > once (including ge

Re: String Interpolation

2021-10-13 Thread forax
> From: "Brian Goetz" > To: "Remi Forax" , "amber-spec-experts" > > Sent: Mercredi 13 Octobre 2021 21:32:19 > Subject: Re: String Interpolation > The ability to capture per-call-site computation so it could be done exactly > once (including ge

Re: String Interpolation

2021-10-13 Thread Brian Goetz
S.  (Sorry, I know you wanted the magic indy hook.) On 10/13/2021 1:09 PM, Remi Forax wrote: Hi everybody, i've spend some time to think how the String interpolation + Policy should be specified and implemented. The goal is to add a syntax specifying a user defined method to "interpola

String Interpolation

2021-10-13 Thread Remi Forax
Hi everybody, i've spend some time to think how the String interpolation + Policy should be specified and implemented. The goal is to add a syntax specifying a user defined method to "interpolate" (for a lack of better word) a string with arguments. Given that it's

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-17 Thread John Rose
On Sep 17, 2021, at 3:49 AM, Tagir Valeev mailto:amae...@gmail.com>> wrote: Another alternative is to have a single list of template fragments, something like this: Probably the VM will prefer to see a single string. There are lots of unused Unicode points that can serve as segment markers. Thi

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-17 Thread Remi Forax
- Original Message - > From: "Tagir Valeev" > To: "Jim Laskey" > Cc: "amber-spec-experts" > Sent: Vendredi 17 Septembre 2021 12:49:30 > Subject: Re: String Tapas Redux: Beyond mere string interpolation > It's interesting that

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-17 Thread Remi Forax
- Original Message - > From: "John Rose" > To: "Jim Laskey" > Cc: "amber-spec-experts" > Sent: Vendredi 17 Septembre 2021 08:43:29 > Subject: Re: String Tapas Redux: Beyond mere string interpolation > Yay! > > I agree with Brian’

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-17 Thread Brian Goetz
JDK 17 has been plated and left the kitchen, we should have a look-see at one of the new menu items Brian and I have had on a slow boil for these last few months; Templated Strings. Before you start shouting out, "Templated Strings? This isn't what I ordered! The subject said string inter

Re: [External] : Re: String Tapas Redux: Beyond mere string interpolation

2021-09-17 Thread Jim Laskey
mments for now. For >>>> me, the proposal looks great as is. Go ahead and implement it :D >>>> >>>> With best regards, >>>> Tagir Valeev. >>>> >>>> On Thu, Sep 16, 2021 at 8:28 PM Jim Laskey wrote: >>>>> >>

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-17 Thread Tagir Valeev
> > > Tagir Valeev. > > > > > > On Thu, Sep 16, 2021 at 8:28 PM Jim Laskey > > > wrote: > > > > > > > > Amber experts, > > > > > > > > Now that JDK 17 has been plated and left the kitchen, we should have a > &g

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-17 Thread Tagir Valeev
gt; > > > > Amber experts, > > > > > > Now that JDK 17 has been plated and left the kitchen, we should have a > > > look-see at one of the new menu items Brian and I have had on a slow boil > > > for these last few months; Templated Strings. > &

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-17 Thread Tagir Valeev
d left the kitchen, we should have a > > look-see at one of the new menu items Brian and I have had on a slow boil > > for these last few months; Templated Strings. > > > > Before you start shouting out, "Templated Strings? This isn't what I > > ordered!

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-16 Thread John Rose
Yay! I agree with Brian’s response to Remi: Nothing new here regarding eval or ASTs. My favorite wished-for-use-case for templated strings is a grammar where the “holes” are grammar actions or other configuration points for rules. This paper made me envious for the sake of Java, and also made m

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-16 Thread Tagir Valeev
ated and left the kitchen, we should have a > look-see at one of the new menu items Brian and I have had on a slow boil for > these last few months; Templated Strings. > > Before you start shouting out, "Templated Strings? This isn't what I ordered! > The subject said

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-16 Thread Brian Goetz
that's not the point. So, what is the point?  The point is that string interpolation is one of the most commonly requested features, and we'd make a lot of people happy if we did it.  While it's a harmless-seeming feature in theory, we're unwilling to do the weak version o

Re: String Tapas Redux: Beyond mere string interpolation

2021-09-16 Thread Remi Forax
bad thing. Rémi [1] https://en.wikipedia.org/wiki/Hygienic_macro > From: "Jim Laskey" > To: "amber-spec-experts" > Sent: Jeudi 16 Septembre 2021 15:28:41 > Subject: String Tapas Redux: Beyond mere string interpolation > Amber experts, > Now that JDK 1

String Tapas Redux: Beyond mere string interpolation

2021-09-16 Thread Jim Laskey
ered! The subject said string interpolation!!!", take the time to follow this link https://github.com/openjdk/amber-docs/tree/master/site/design-notes/templated-strings.md. After reading, we hope you'll see that the offering is much better than interpolation meat and potatoes. Cheers, -- Jim