November 29, 2014
H. S. Teoh:

> The problem with that, is that Phobos often doesn't even compile with
> the previous release of DMD (or, for that matter, a commit prior to a PR
> that spans both dmd and Phobos), so it's anyone's guess what an older
> version of Phobos would do when compiled with a newer compiler.
>
> Unless, of course, you maintain the old version enough to keep it
> compilable with the current compiler. But that's a lot of additional
> maintenance work.

The point of my answer is that I think the problem raised by Walter can't be solved by Phobos/dmd developers. And at the current state of D development trying to solve it will cause more problems (and more wasted efforts) than it can solve.

Bye,
bearophile
November 29, 2014
Walter Bright:

> Just for fun, I've decided to try and [...]

There's a pull in need of some love, I'd like to see this in D:
https://github.com/D-Programming-Language/dmd/pull/3615

Bye,
bearophile
November 29, 2014
On 11/28/2014 5:29 PM, bearophile wrote:
> The point of my answer is that I think the problem raised by Walter can't be
> solved by Phobos/dmd developers.

Yes, it can be.

November 29, 2014
On 11/28/2014 5:27 PM, Mike wrote:
> On Friday, 28 November 2014 at 23:33:54 UTC, Walter Bright wrote:
>> Just for fun, I've decided to try and get MicroEmacs in D added to the dub
>> registry. The last time it compiled was 2 years ago.
>>
>> I wound up with at least a dozen references to Phobos names that have
>> disappeared.
>
> Only 12?  That's pretty damn good.

It's a pretty small program, 5000 lines.

November 29, 2014
On 11/28/2014 5:42 PM, Walter Bright wrote:
> On 11/28/2014 5:29 PM, bearophile wrote:
>> The point of my answer is that I think the problem raised by Walter can't be
>> solved by Phobos/dmd developers.
>
> Yes, it can be.


1. renaming things to the latest fashion is an illusion of progress, not actual progress, such as fnmatch => globMatch

2. deprecated aliases to the old names can be kept for a long time without causing problems

3. when removed entirely, the documentation for them should be kept along with instructions on corrective action
November 29, 2014
This is more of an Ubuntu-y issue, but I'm having trouble getting it to link with ncurses. This used to work:

cc $(LDFLG)  -o med $(OBJ) -l :libncurses.so.5 -l phobos2 -l pthread -l m

but alas, no longer with the latest Ubuntu. (Linux people keep trying to get rid of termcap, it's a constant issue.) -lncurses fails, everything I try fails.

Any ideas?
November 29, 2014
Walter Bright:

>> Yes, it can be.

A solution is to leave @deprected stuff for 2-5 years in Phobos (but in few cases this is not enough, because some names have changed purpose and signature).


> 1. renaming things to the latest fashion is an illusion of progress, not actual progress, such as fnmatch => globMatch

You are wrong. Having good function names is extremely important. Renaming badly named things with more clear and more meaningful names reduces pain for both old and new users, reduces coding time, and in some cases even avoids some troubles.


> 2. deprecated aliases to the old names can be kept for a long time without causing problems

This is usually true, but not always (see above).


> 3. when removed entirely, the documentation for them should be kept along with instructions on corrective action

I agree.

Bye,
bearophile
November 29, 2014
On Fri, Nov 28, 2014 at 05:55:21PM -0800, Walter Bright via Digitalmars-d wrote:
> This is more of an Ubuntu-y issue, but I'm having trouble getting it to link with ncurses. This used to work:
> 
> cc $(LDFLG)  -o med $(OBJ) -l :libncurses.so.5 -l phobos2 -l pthread -l m
> 
> but alas, no longer with the latest Ubuntu. (Linux people keep trying to get rid of termcap, it's a constant issue.) -lncurses fails, everything I try fails.
> 
> Any ideas?

Hmm. Did you install libncurses5-dev (or libncursesw5-dev)? If not, try
`apt-get install libncurses5-dev` (or libncursesw5-dev as appropriate).
Otherwise, try -lncurses5 or -lncursesw5, perhaps?


T

-- 
Don't modify spaghetti code unless you can eat the consequences.
November 29, 2014
On Sat, 29 Nov 2014 01:39:44 +0000
bearophile via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

> Walter Bright:
> 
> > Just for fun, I've decided to try and [...]
> 
> There's a pull in need of some love, I'd like to see this in D: https://github.com/D-Programming-Language/dmd/pull/3615
it needs just some cosmetix changes (afair) and that's all. i'm using
this patch from july and still alive. ;-)


November 29, 2014
On Sat, Nov 29, 2014 at 04:12:05AM +0200, ketmar via Digitalmars-d wrote:
> On Sat, 29 Nov 2014 01:39:44 +0000
> bearophile via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
> 
> > Walter Bright:
> > 
> > > Just for fun, I've decided to try and [...]
> > 
> > There's a pull in need of some love, I'd like to see this in D: https://github.com/D-Programming-Language/dmd/pull/3615

I'd like to see this in D too. AFAICT, everybody else has approved it, it's just Walter who has some reservations about it.


> it needs just some cosmetix changes (afair) and that's all. i'm using
> this patch from july and still alive. ;-)

What kind of cosmetic changes are needed?


T

-- 
Why are you blatanly misspelling "blatant"? -- Branden Robinson