Thread overview
D-wrappers BLAKE3 wrapping C library libblake3
Mar 19
Ben Jones
March 19
  • Compliant with std.digest.
  • Current compiles C libraries directly for maximum performance.
  • Might need some adjustments with compiler flags.

See https://code.dlang.org/packages/blake3-d.

Please see details on the building of the wrapped C library using cmake and make. Probably needs some TLC for platform-independence.

March 19

On Tuesday, 19 March 2024 at 08:35:55 UTC, Per Nordlöw wrote:

>
  • Compliant with std.digest.
  • Current compiles C libraries directly for maximum performance.
  • Might need some adjustments with compiler flags.

See https://code.dlang.org/packages/blake3-d.

Please see details on the building of the wrapped C library using cmake and make. Probably needs some TLC for platform-independence.

I just realized that dub doesn't work with git submodules. Shall I include a git clone in the provisioning script or simply copy (vendor) BLAKE3/c into the repo for now?

March 19

On Tuesday, 19 March 2024 at 08:40:37 UTC, Per Nordlöw wrote:

>

On Tuesday, 19 March 2024 at 08:35:55 UTC, Per Nordlöw wrote:

I just added a D implementation to dmd (https://github.com/dlang/dmd/blob/master/compiler/src/dmd/common/blake3.d) which doesn't support streaming, so is probably somewhat simpler/smaller, in case that's useful

March 20

On Tuesday, 19 March 2024 at 15:38:40 UTC, Ben Jones wrote:

>

On Tuesday, 19 March 2024 at 08:40:37 UTC, Per Nordlöw wrote:

>

On Tuesday, 19 March 2024 at 08:35:55 UTC, Per Nordlöw wrote:

I just added a D implementation to dmd (https://github.com/dlang/dmd/blob/master/compiler/src/dmd/common/blake3.d) which doesn't support streaming, so is probably somewhat simpler/smaller, in case that's useful

Use, that's the reason why added blake3-d.

The function, testVector in DMD can be made static, btw.