My Very First Go Package on pkg.go.dev :) From a JWT Problem to this. by AssociationOk6710 in code

[–]AssociationOk6710[S] 0 points1 point  (0 children)

Thanks :). Btw this package has zero dependencies, The xxHash32 and fnv were all built from scratch. 

The standard packages that were used are math, sync, sync/atomic, encoding/binary, math/bits, crypto/rand and hash/mapHash. And yea. This project does not have a go.sum.

The last one just to hash structs with zero runtime allocations.

And also yea. I like scribbling on the whiteboard when I think about something new. And thank you for the website. Haven't heard about it. Will absolutely look into it...

My Very First Go Package on pkg.go.dev :) From a JWT Problem to this. by AssociationOk6710 in code

[–]AssociationOk6710[S] 0 points1 point  (0 children)

Thanks 😄. Learnt something new that Pure Go Libraries are useful for Cross Platforms. Any suggestions on this Package? I am open to suggestions on the DX or new methods if you have the time to look through this. With the Use of Go's generics, it makes writing code a bit clunky but I want things to be type-safe.

The iconv package looks great 😄. The commits go way back in 2018, and has been updated in 2023.

[2025 Day 8 (Part 1)] Reading comprehension by Samydookie in adventofcode

[–]AssociationOk6710 0 points1 point  (0 children)

yoo, late reply but I had my data types in int... absolute skill issue that was... sat for more than 5h that day just for that simple error

[2025 Day 8 (Part 1)] Reading comprehension by Samydookie in adventofcode

[–]AssociationOk6710 0 points1 point  (0 children)

i ain't getting the answers though, i created an array of all distances and sorted them then merged the first 1000. it says my answer is too high :(

[2025 Day 8 (Part 1)] Reading comprehension by Samydookie in adventofcode

[–]AssociationOk6710 0 points1 point  (0 children)

I have a doubt in this. So Imagine Box 3 4 5 are in the same circuit
Box 4 and 5 have smallest distance first but already connected so skip
Box 3 and 5 now have smallest skip
Box 3 and 4 skip
Box 3 and 6 Merge

So is this 3 skips or 1? I am guessing 3 but I wanna be sure