core.traits?
Jacob Carlborg
doob at me.com
Wed Jan 9 19:24:28 UTC 2019
On 2019-01-09 12:49, Mike Franklin wrote:
> In DMD you can't use it without linking in the runtime, but in LDC and
> GDC, you can. One of the goals of implementing these runtime hooks as
> templates is to make more features available in -betterC builds, or for
> pay-as-you-go runtime implementations. If you need to link in druntime
> to get `alloca`, you can't implement the runtime hooks as templates and
> have them work in -betterC.
Ah, I see.
> Yes, it's possible, but I don't think it will ever be accepted if it
> doesn't perform at least as well as the optimized versions in C or
> assembly that use AVX512 or other SIMD features. It needs to be at
> least as good as what libc provides, so we need to be able to leverage
> these unique hardware features to get the best performance.
Perhaps it could be considered as a fallback when a "memcpy" isn't
available.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list