miniblog.
← Back to all posts
Mar 1, 2016 at 08:04
Whilst normal hash tables have amortised O(1) lookup, perfect hash tables guarantee O(1)! There's a nifty Rusty lib:
GitHub - rust-phf/rust-phf: Compile time static maps for Rust
Compile time static maps for Rust. Contribute to rust-phf/rust-phf development by creating an account on GitHub.
Wilfred Hughes
Related Posts
Jun 20, 2017 at 21:57
Remacs is developing some nice Rusty idioms for elisp primitives. Here's vectorp:
Port vectorp to rust by shanavas786 · Pull Request #212 · remacs/remacs
Wilfred Hughes
Shared words: Rusty Score: 41.3
Apr 21, 2013 at 19:29
Today I learnt about defun* from cl-lib, which wraps your function body in a block so you can use return. Nifty. #emacs
Wilfred Hughes
Shared words: nifty, lib Score: 33.5
Aug 25, 2019 at 00:20
I still love the demo of abstract types for hash map access. If you have a function K -> Map<K,V> -> V it's almost certainly looking up the key. It's nifty because there are very few other implementations that fit this signature.
Wilfred Hughes
Shared words: nifty, hash Score: 31.2