#hash-table #collection #filter #open #tutorial #resolution

caffeine

Collection of data structures I'm writing for fun. Originally written for use with my crafting interpeters tutorial implementation.

6 releases

0.2.0 Sep 3, 2024
0.1.4 Sep 1, 2024
0.1.3 Aug 6, 2024
0.1.1 Jul 28, 2024

#1051 in Data structures

Download history 171/week @ 2024-08-26 216/week @ 2024-09-02 19/week @ 2024-09-23 6/week @ 2024-09-30 1/week @ 2024-10-07 3/week @ 2024-10-14 4/week @ 2024-11-04 55/week @ 2024-12-02

55 downloads per month

Custom license

1.5MB
443 lines

Simple hash table implementation in Rust. Uses open addressing for collision resolution (even though open addressing is a stupid idea). Written for use with my crafting interpeters tutorial implementation.

Named caffeine because the night I made this, I accidentally had so much Coffee that my hands were literally shaking. I originally callede it "tremor" but then changed the name to Caffeine so I could claim the crate name on crates.io from a name squatter.

The story What happened is I ran out of coffee filters and decided to just make coffee without one and hope it would be fine. When I drank it I started tweaking instantly. It was so bad I had a hard time typing and even focusing on what I was doing lmao

Me when I started writing this:
gif of shaking hands

Dependencies