Re: Batch operations

2016-10-10 Thread Nicholas Wilson via Digitalmars-d

On Tuesday, 11 October 2016 at 03:20:54 UTC, Stefan Koch wrote:
On Tuesday, 11 October 2016 at 03:05:12 UTC, Nicholas Wilson 
wrote:
Splitting this from the colour 
thread(https://forum.dlang.org/thread/mailman.961.1475765646.2994.digitalmar...@puremagic.com?page=1).


[...]


This will bloat like hell.
The best way would be to provide special Range-Definitions for 
those.

Such as
T[4] Front4 ()
or popFront4


It will be possible to have an overload for ranges that have 
slicing, that copies in chunks.


Re: Batch operations

2016-10-10 Thread rikki cattermole via Digitalmars-d

On 11/10/2016 4:20 PM, Stefan Koch wrote:

On Tuesday, 11 October 2016 at 03:05:12 UTC, Nicholas Wilson wrote:

Splitting this from the colour
thread(https://forum.dlang.org/thread/mailman.961.1475765646.2994.digitalmar...@puremagic.com?page=1).


[...]


This will bloat like hell.
The best way would be to provide special Range-Definitions for those.
Such as
T[4] Front4 ()
or popFront4


We would also want 2, 8 and 16 for SIMD reasons.


Re: Batch operations

2016-10-10 Thread Stefan Koch via Digitalmars-d
On Tuesday, 11 October 2016 at 03:05:12 UTC, Nicholas Wilson 
wrote:
Splitting this from the colour 
thread(https://forum.dlang.org/thread/mailman.961.1475765646.2994.digitalmar...@puremagic.com?page=1).


[...]


This will bloat like hell.
The best way would be to provide special Range-Definitions for 
those.

Such as
T[4] Front4 ()
or popFront4