critbit
size-based
Our great sponsors
critbit | size-based | |
---|---|---|
3 | 0 | |
330 | 9 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | almost 3 years ago | |
C | Haskell | |
- | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
critbit
-
Ask HN: What are some 'cool' but obscure data structures you know about?
> Good use-case: routing. Say you have a list of 1 million IPs that are [deny listed].
Apparently, bloom filters make for lousy IP membership checks, read: https://blog.cloudflare.com/when-bloom-filters-dont-bloom/
CritBit Trie [0] and possibly Allotment Routing Table (ART) are better suited for IPs.
[0] https://github.com/agl/critbit
[1] https://web.archive.org/web/20210720162224/https://www.harig...
-
Rethink-app: DNS over HTTPS, firewall, and connection tracker for Android
developer here
I'd imagine the app should work over IPv6-only networks thanks to 464xlat. I may be wrong, because I've never tested it on a IPv6-only network.
The reason for IPv6 is two fold:
1. Firewall today simply stores classless IP address rules as strings in a sqlite table fronted by a lfu cache backed by a typical hash-map. With IPv6, I'd imagine, this won't scale. So, we need a more economical in-memory data-structure (like a crit-bit trie [0] or art tree).
2. Apparently LwIP has problems with HappyEyeballs (I personally never saw it, but got a couple of reports from users about it that it was an unrecoverable error once the connectivity was lost, and the firewall had to be restarted). We're in the process of replacing LwIP with gvisor/netstack now [2], just to get IPv6 support back on track.
[0] https://github.com/agl/critbit
size-based
We haven't tracked posts mentioning size-based yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
code-builder - Packages for defining APIs, running them, generating client code and documentation.
thyme
critbit - A Haskell implementation of crit-bit trees.
scientific - Arbitrary-precision floating-point numbers represented using scientific notation
bifunctors - Haskell 98 bifunctors, bifoldables and bitraversables
resource-pool - A high-performance striped resource pooling implementation for Haskell
binary - Efficient, pure binary serialisation using ByteStrings in Haskell.
lens - Lenses, Folds, and Traversals - Join us on web.libera.chat #haskell-lens
tagged - phantom types
flatbuffers - An implementation of the flatbuffers protocol in Haskell.
tables - Deprecated because of
cassava - A CSV parsing and encoding library optimized for ease of use and high performance