Re: Why not flag away the mistakes of the past?

2018-03-09 Thread Chris via Digitalmars-d
On Friday, 9 March 2018 at 06:14:05 UTC, Jonathan M Davis wrote: We'll make breaking changes if we judge the gain to be worth the pain, but we don't want to be constantly breaking people's code, and some changes are large enough that there's arguably no justification for them, because they w

Re: Why not flag away the mistakes of the past?

2018-03-09 Thread Gary Willoughby via Digitalmars-d
On Wednesday, 7 March 2018 at 17:11:55 UTC, H. S. Teoh wrote: Kill autodecoding, I say. Kill it with fire!! T Please!!!

Re: Why not flag away the mistakes of the past?

2018-03-09 Thread Guillaume Piolat via Digitalmars-d
On Thursday, 8 March 2018 at 17:35:11 UTC, H. S. Teoh wrote: Yeah, the only reason autodecoding survived in the beginning was because Andrei (wrongly) thought that a Unicode code point was equivalent to a grapheme. If that had been the case, the cost associated with auto-decoding may have been

Re: Why not flag away the mistakes of the past?

2018-03-08 Thread Jonathan M Davis via Digitalmars-d
On Friday, March 09, 2018 03:16:03 Taylor Hillegeist via Digitalmars-d wrote: > I wasn't so much asking about auto-decoding in particular more > about the mentality and methods of breaking changes. > > In a way any change to the compiler is a breaking change when it > comes to the configuration.

Re: Why not flag away the mistakes of the past?

2018-03-08 Thread Taylor Hillegeist via Digitalmars-d
On Thursday, 8 March 2018 at 17:14:16 UTC, Jonathan M Davis wrote: On Thursday, March 08, 2018 16:34:11 Guillaume Piolat via Digitalmars-d wrote: On Wednesday, 7 March 2018 at 13:24:25 UTC, Jonathan M Davis wrote: > On Wednesday, March 07, 2018 12:53:16 Guillaume Piolat via > > Digitalmars-d wr

Re: Why not flag away the mistakes of the past?

2018-03-08 Thread Henrik via Digitalmars-d
On Thursday, 8 March 2018 at 17:35:11 UTC, H. S. Teoh wrote: On Thu, Mar 08, 2018 at 10:14:16AM -0700, Jonathan M Davis via Digitalmars-d wrote: [...] [...] [...] [...] Yeah, the only reason autodecoding survived in the beginning was because Andrei (wrongly) thought that a Unicode code poin

Re: Why not flag away the mistakes of the past?

2018-03-08 Thread H. S. Teoh via Digitalmars-d
On Thu, Mar 08, 2018 at 10:14:16AM -0700, Jonathan M Davis via Digitalmars-d wrote: > On Thursday, March 08, 2018 16:34:11 Guillaume Piolat via Digitalmars-d > wrote: [...] > > I'd agree with you, hate the special casing. However it seems to > > me this has been debated to death already, and that

Re: Why not flag away the mistakes of the past?

2018-03-08 Thread Jonathan M Davis via Digitalmars-d
On Thursday, March 08, 2018 16:34:11 Guillaume Piolat via Digitalmars-d wrote: > On Wednesday, 7 March 2018 at 13:24:25 UTC, Jonathan M Davis > > wrote: > > On Wednesday, March 07, 2018 12:53:16 Guillaume Piolat via > > > > Digitalmars-d wrote: > >> On Wednesday, 7 March 2018 at 06:00:30 UTC, Tayl

Re: Why not flag away the mistakes of the past?

2018-03-08 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 7 March 2018 at 13:24:25 UTC, Jonathan M Davis wrote: On Wednesday, March 07, 2018 12:53:16 Guillaume Piolat via Digitalmars-d wrote: On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist wrote: > That way the breaking change was easily fixable, and the > mistakes of the

Re: Why not flag away the mistakes of the past?

2018-03-08 Thread Dukc via Digitalmars-d
On Wednesday, 7 March 2018 at 16:29:33 UTC, Seb wrote: Well, I tried that already: https://github.com/dlang/phobos/pull/5513 In short: very easy to do, but not much interest at the time. No. The main problem with that (and the idea of using a compiler flag in general) is that it affects the

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Jon Degenhardt via Digitalmars-d
On Wednesday, 7 March 2018 at 16:33:25 UTC, Seb wrote: On Wednesday, 7 March 2018 at 15:26:40 UTC, Jon Degenhardt wrote: On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist wrote: [...] Auto-decoding is a significant issue for the applications I work on (search engines). There is a

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread H. S. Teoh via Digitalmars-d
On Wed, Mar 07, 2018 at 04:29:33PM +, Seb via Digitalmars-d wrote: > On Wednesday, 7 March 2018 at 14:59:35 UTC, Steven Schveighoffer wrote: > > On 3/7/18 1:00 AM, Taylor Hillegeist wrote: > > > [...] > > > > Note, autodecoding is NOT a feature of the language, but rather a > > feature of Phob

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread H. S. Teoh via Digitalmars-d
On Wed, Mar 07, 2018 at 04:33:25PM +, Seb via Digitalmars-d wrote: > On Wednesday, 7 March 2018 at 15:26:40 UTC, Jon Degenhardt wrote: [...] > > Auto-decoding is a significant issue for the applications I work on > > (search engines). There is a lot of string manipulation in these > > environme

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Seb via Digitalmars-d
On Wednesday, 7 March 2018 at 15:26:40 UTC, Jon Degenhardt wrote: On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist wrote: [...] Auto-decoding is a significant issue for the applications I work on (search engines). There is a lot of string manipulation in these environments, and

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Seb via Digitalmars-d
On Wednesday, 7 March 2018 at 14:59:35 UTC, Steven Schveighoffer wrote: On 3/7/18 1:00 AM, Taylor Hillegeist wrote: [...] Note, autodecoding is NOT a feature of the language, but rather a feature of Phobos. It would be quite interesting I think to create a modified phobos where autodecodin

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Jon Degenhardt via Digitalmars-d
On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist wrote: So i've seen on the forum over the years arguments about auto-decoding (mostly) and some other things. Things that have been considered mistakes, and cannot be corrected because of the breaking changes it would create. And I a

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Steven Schveighoffer via Digitalmars-d
On 3/7/18 1:00 AM, Taylor Hillegeist wrote: So i've seen on the forum over the years arguments about auto-decoding (mostly) and some other things. Things that have been considered mistakes, and cannot be corrected because of the breaking changes it would create. And I always wonder why not make

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, March 07, 2018 13:40:20 Nick Treleaven via Digitalmars-d wrote: > On Wednesday, 7 March 2018 at 13:24:25 UTC, Jonathan M Davis > > wrote: > > I'd actually argue that that's the lesser of the problems with > > auto-decoding. The big problem is that it's auto-decoding. Code > > points

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Nick Treleaven via Digitalmars-d
On Wednesday, 7 March 2018 at 13:24:25 UTC, Jonathan M Davis wrote: I'd actually argue that that's the lesser of the problems with auto-decoding. The big problem is that it's auto-decoding. Code points are almost always the wrong level to be operating at. For me the fundamental problem is havi

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, March 07, 2018 12:53:16 Guillaume Piolat via Digitalmars-d wrote: > On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist > > wrote: > > That way the breaking change was easily fixable, and the > > mistakes of the past not forever. Is it just the cost of > > maintenance? > >

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread Guillaume Piolat via Digitalmars-d
On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist wrote: That way the breaking change was easily fixable, and the mistakes of the past not forever. Is it just the cost of maintenance? auto-decoding problem was mostly that it couldn't be @nogc since throwing, but with further relea

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread jmh530 via Digitalmars-d
On Wednesday, 7 March 2018 at 06:00:30 UTC, Taylor Hillegeist wrote: So i've seen on the forum over the years arguments about auto-decoding (mostly) and some other things. Things that have been considered mistakes, and cannot be corrected because of the breaking changes it would create. And I a

Re: Why not flag away the mistakes of the past?

2018-03-07 Thread FeepingCreature via Digitalmars-d
For what it's worth, I like autodecoding. I worry we could be in a situation where a moderate number of people are strong opponents and a lot of people are weak fans, none of which individually care enough to post. Hopefully the D survey results will shed some light on this, though I don't re

Why not flag away the mistakes of the past?

2018-03-06 Thread Taylor Hillegeist via Digitalmars-d
So i've seen on the forum over the years arguments about auto-decoding (mostly) and some other things. Things that have been considered mistakes, and cannot be corrected because of the breaking changes it would create. And I always wonder why not make a solution to the tune of a flag that makes