www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - D-wrappers BLAKE3 wrapping C library libblake3

reply Per =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
- 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.
Mar 19
parent reply Per =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
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?
Mar 19
parent reply Ben Jones <fake fake.fake> writes:
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
Mar 19
parent Per =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
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.
Mar 19