core.traits?

Jacob Carlborg doob at me.com
Wed Jan 9 11:01:46 UTC 2019


On 2019-01-09 03:32, Mike Franklin wrote:

> Here's what I think will help:
> 1.  Get `alloca` or dynamic stack array allocation working.  This will 
> help a lot because we won't have to reach for `malloc` and friends for 
> simple allocations like generating dynamic assert messages

What's the problem with "alloca"?

> 2.  Convert `memcpy`, `memset`, and `memcmp` to strongly-typed D 
> templates so they can be used in the implementations when converting 
> runtime hooks to templates.  I did some exploration on that and 
> published my results at https://github.com/JinShil/memcpyD.  
> Unfortunately, DMD is missing an AVX512 implementation so I couldn't 
> continue.

What do you mean "couldn't continue"? It's possible to implement 
"memcpy" without AVX512. Am I missing something?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list