rust-rocksdb
rpds
Our great sponsors
rust-rocksdb | rpds | |
---|---|---|
4 | 3 | |
1,723 | 1,122 | |
3.1% | - | |
7.8 | 7.6 | |
2 days ago | 2 months ago | |
Rust | Rust | |
Apache License 2.0 | Mozilla Public License 2.0 |
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.
rust-rocksdb
- Some key-value storage engines in Rust
-
What's everyone working on this week (44/2021)?
Final touches for lila-openingexplorer, a new chess opening database for lichess.org. Uses axum and rocksdb.
-
Persisting data that has revisions for values
The most control you can probably get is from embeddable kv store, like https://github.com/spacejam/sled or https://github.com/rust-rocksdb/rust-rocksdb . Then you can encode entity version as a key.
-
Portal - full-text search web service
I just released portal a full-text search web service that is a competitor for ElasticSearch and MeiliSearch written in Rust. It is simple, blazing fast, and under 500 LOC! Portal supports 87 natural languages, JWTs, SSL, and JSON clients. It is built on Sonic, Broker, Tide, and RocksDB.
rpds
-
Getting both a mutable and immutable reference to a shared structure?
Another option I can think of - but not completely sure how one would implement in Rust - would be to never mutate the shared state, but rather when updating it - completely swapping it out with a completely new copy of the desired state. There's lots of different ways to go about doing this - each with their own trade offs. But using some form of Persistent Data Structure would probably be a good way to start. If you only have a single writer - then I believe using a Cell and simply updating which version of the structure is being read could work. rpds seems to be a decent start to look at these sorts of structures in Rust.
-
Learning Clojure made me return back to C/C++
Thanks for taking the time to provide a detailed response. Need to think on this. I had actually started a regular Clojure parser using LLVM as a hobby, but then my friend said it was better to implement this in a safe-memory and. save-concurrency language like Rust and leverage cranelift for code generation. So, now I am learning rust, lol. (Btw, Rust has a persistent data structures lib too: https://github.com/orium/rpds )
-
Persisting data that has revisions for values
Take a look at https://github.com/orium/rpds or one of the many others.
What are some alternatives?
PickleDB - PickleDB-rs is a lightweight and simple key-value store. It is a Rust version for Python's PickleDB
hypergraph - Hypergraph is data structure library to create a directed hypergraph in which a hyperedge can join any number of vertices.
tikv - Distributed transactional key-value database, originally created to complement TiDB
moodycamel - A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
sled - the champagne of beta embedded databases
cranelift - Cranelift code generator
unqlite.rs - UnQLite wrapper 1.0 is avaliable for Rust
pest - The Elegant Parser
Rust Client for KairosDB - Rust client for KairosDB
bimap-rs - Generic bijective maps in Rust
r2d2 - A generic connection pool for Rust
grid - Two dimensional grid data structure