7 hours ago
- The author uses LLMs routinely for coding but notes they are still far behind human intelligence.
- The example involves fixing a bug in Redis Vector Sets: checking reciprocal links in HNSW graphs to avoid use-after-free errors.
- A naive O(N^2) reciprocal check doubled loading time; Gemini suggested binary search on sorted pointer arrays.
- The author proposed a more creative XOR accumulator with a hashed key using a random seed to detect non-reciprocal links efficiently.
- Gemini helped analyze the XOR approach but couldn't generate the original idea, highlighting human creativity's edge over LLMs.
- The author concludes that while LLMs are useful as a 'smart duck' for discussion, humans still excel at out-of-the-box thinking.