On 17/10/2018 10:36 PM, Márcio Martins wrote:
Hi!

To my surprise, std.digest.MurmurHash3 doesn't work in CTFE.

Would it be hard to have it explicit in the documentation if a particular Phobos symbol works in CTFE? Maybe it could be manual, and vote-based, to avoid building infrastructure around it.

It uses a union, that is why it doesn't work at CTFE. Hopefully newCTFE can solve that one.

Also, MurmurHash3 only outputs 32-bit or 128-bit hashes, which leaves us without any modern fast 64-bit digest. Would anyone oppose pulling an XXHash implementation into Phobos?

A better question is why doesn't it support 64bit?

  • std.digest Márcio Martins via Digitalmars-d
    • Re: std.digest rikki cattermole via Digitalmars-d

Reply via email to