Snawoot

↗ HN profile [ 66.6 ms ] full profile
Karma
0
Created
()
Submissions
0
  1. I'd like to share a curious cache implementation I recently came up with: https://pkg.go.dev/github.com/Snawoot/secache It's a small (<200 LOC) simple cache implementation. What makes it curious is how it approaches…

  2. Have you ever wanted something `comparable` to be also ordered, e.g. for canonicalization sort or sorted collections? This function uses fast runtime's map hash (with rare exceptions) for comparisons of arbitrary…