Wojciech Małota-Wójcik

Results 11 comments of Wojciech Małota-Wójcik

I just hit this issue in my code. This is really weird that cobra assigns default values to referenced variable even if command the flag is assigned to is not...

I digged into the source code of `pflag` to fix this but the implementation is so strange that solving this would require rewriting of entire library

And when doing DNS-01 it's not possible to gracefully stop application until timeout happens after 1 minute.

I digged into the source code of pflag to fix this but the implementation is so strange that solving this would require rewriting of entire library

Assumption that value of pointer is overwritten immediately when flag is defined, not when `Parse` is called on `FlagSet` (here for example: https://github.com/spf13/pflag/blob/master/bool.go#L15) is really counter-intuitive. Pointer should be touched...

Thanks for the valuable input. The 1KB case is so critical to me (I need to compute millions of them all the time) that I might decide to invest my...

Quick update... So far I implemented all the operations required by blake3, for the purpose of verifying the right choice of AVX-512 instructions: addition, xor, right rotation by 7, 8,...

Indeed, massive speedup is visible when 10 steps are combined inside asm: ``` BenchmarkAddGo-20 16204963 81.70 ns/op BenchmarkAddAVX-20 29706685 40.58 ns/op BenchmarkAddAVX10-20 191069847 6.256 ns/op BenchmarkXorGo-20 14851650 82.61 ns/op BenchmarkXorAVX-20...

Ohh... (not so) surprisingy ChatGPT was wrong saying that there is no direct right rotation instruction for ZMM registers. By using it instead of combination of right and left shifts...

Implemented blake3 version optimized for 1KB inputs and results are AMAZING (!!!). Here is the benchmark for computing 16 checksums of 1KB inputs: ``` BenchmarkChecksum1KLuke-20 30471 38537 ns/op BenchmarkChecksum1KZeebo-20 51097...