I'll be back soon

Ilya Yaroshenko via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 9 22:49:55 PDT 2016


On Wednesday, 10 August 2016 at 01:11:52 UTC, Andrei Alexandrescu 
wrote:
> On 08/09/2016 10:32 AM, Ilya Yaroshenko wrote:
>> On Sunday, 7 August 2016 at 18:25:45 UTC, Andrei Alexandrescu 
>> wrote:
>>> Hello, I've been busy with a paper submission that has a 
>>> deadline on
>>> Wednesday. There have also been some computer troubles along 
>>> the way.
>>> After Wed I should be able to tend to the many open PRs (dog 
>>> days of
>>> the summer these aren't! thanks for the many contributions!), 
>>> look at
>>> GSoC progress, and tend to my own PRs. -- Andrei
>>
>> Andrei, please approve ndslice.algorithm [1] names and 
>> addition.
>> 1. https://github.com/dlang/phobos/pull/4652 --Ilya
>
> I see you use the "nd" prefix for algorithms, did you consider 
> just distinguishing via package? -- Andrei

I don't think this is good for users. algorithm and 
ndslice.algorithm are used together in practice, for example 
`ndEach!swap(a, b);` We have few workaround for distinguishing 
via package: renaming, static import. But I consider that this 
always should work:

import std.range;
import std.algorithm;
import std.experimental.ndslice;

The reason is that users from math world in most of cases want to 
write small scripts fast and without knowing all language 
details. This is why Go is so popular comparing with D, thought. 
Go is smaller and simpler to learn and.

In addition, most of functions has very different API comparing 
with their prototypes from std.algorithms: multiple dimensions, 
multiple tensors, selection type, plus ndFind accepts static 
array as the first argument.


More information about the Digitalmars-d mailing list