News for hackers. Stuff that matters.
Re:Exact Binary Vector Search for RAG in 100 Lines of Julia by sitkack on Friday May 17, 2024 @08:27PM (#40395494)
I had Opus translate your code to Rust

    fn hamming_distance_u8(x1: u8, x2: u8) -> usize {
        (x1 ^ x2).count_ones() as usize
    }

There are no comments on this comment yet.