Distributor's whishlist and questions for D

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 22 02:18:48 PDT 2016


On Thursday, 21 April 2016 at 15:41:17 UTC, Matthias Klumpp wrote:
> Asgen is super-boring code ;-) Mainly because the task it 
> performs can be represented without using much black magic.

One interesting possibility with D is that you can test what 
performance impact boundschecking has on your code with just a 
compiler switch. Is asgen performance sensitive?

> LDC also fails to compile asgen:
> ```
> /usr/include/d/std/parallelism.d-mixin-3811(3837): Error: 
> template core.atomic.atomicOp cannot deduce function from 
> argument types !("+=")(shared(ulong), int), candidates are:
> /usr/include/d/core/atomic.d(178):        
> core.atomic.atomicOp(string op, T, V1)(ref shared T val, V1 
> mod) if (__traits(compiles, mixin("val" ~ op ~ "mod")))

RMW operations on shared data are deprecated. The template filter 
on atomicOp is a little different: 
https://dlang.org/phobos/core_atomic.html#.atomicOp
Looks like an LDC bug.


More information about the Digitalmars-d mailing list