MCPcopy Index your code
hub / github.com/adevore/rudy

github.com/adevore/rudy @0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1.0 ↗ · + Follow
193 symbols 370 edges 26 files 2 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rudy

Rudy is a Judy array implementation in Rust. Judy arrays are highly efficient word-to-word or word-to-bool maps that adapt well to different data. The reference Judy array implementation provides a word to word map (JudyL), set of words (Judy1), string to word (JudySL) and fixed length byte array to word map (JudyHS). Judy arrays use a compressed 256-radix trie.

The initial Rudy implementation will implement JudyL as RudyMap and Judy1 as RudySet. Because zero sized types can be represented by a RudyMap, it will be trivial to represent RudySet as a wrapper around a RudyMap. Future iterations may include JudySL and JudyHS support.

Differences between Judy and Rudy

Rudy appears to be the first implementation to use generics in the core library. The judy-template bindings for C++ allow for automatic conversion to and from words, but not use of values that need larger storage. Using generics allows for lower memory usage for smaller types and the usage of larger types, with possible impact to performance.

Status

  • [x] General library structure
  • [x] Top-level root nodes
    • [x] Leaf1
    • [x] Leaf2
    • [x] VecLeaf
  • [ ] JPM
    • [ ] Linear Leaf
    • [x] Bitmap Leaf
    • [x] Bitmap Branch
    • [x] Linear Branch
    • [x] Uncompressed Branch
  • [x] Insertion
  • [x] Get
  • [x] Remove
  • [ ] Memory used
  • [ ] Shrink
  • [ ] Iterators

License

Rudy is dual licensed under the MIT and Apache-2.0 licenses.

Extension points exported contracts — how you extend this code

JpmNode (Interface)
(no doc) [6 implementers]
src/rudymap/jpm/traits.rs
SliceExt (Interface)
(no doc) [1 implementers]
src/util/mod.rs
Key (Interface)
(no doc)
src/key.rs
RootLeaf (Interface)
(no doc) [5 implementers]
src/rudymap/root_leaf.rs
Array (Interface)
(no doc)
src/util/locksteparray.rs
Index (Interface)
(no doc)
src/util/locksteparray.rs

Core symbols most depended-on inside this repo

iter
called by 29
src/rudyset/rudyset.rs
insert
called by 24
src/rudymap/mod.rs
as_usize
called by 20
src/rudymap/jpm/innerptr.rs
success
called by 11
src/rudymap/results.rs
insert
called by 10
src/util/locksteparray.rs
array2_mut
called by 6
src/util/locksteparray.rs
remove
called by 5
src/rudymap/mod.rs
contains_key
called by 5
src/rudymap/mod.rs

Shape

Method 117
Function 42
Class 23
Interface 6
Enum 5

Languages

Rust100%

Modules by API surface

src/util/locksteparray.rs30 symbols
src/rudymap/root_leaf.rs16 symbols
src/rudymap/mod.rs15 symbols
src/util/mod.rs14 symbols
src/rudyset/rudyset.rs14 symbols
benches/hashmap.rs14 symbols
src/rudymap/jpm/branch_bitmap.rs13 symbols
src/rudymap/jpm/leaf_bitmap.rs12 symbols
src/rudymap/jpm/jpm_root.rs10 symbols
src/rudymap/jpm/branch_linear.rs9 symbols
src/rudymap/jpm/leaf_linear.rs8 symbols
src/rudymap/jpm/empty.rs8 symbols

For agents

$ claude mcp add rudy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact