Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Can it be simple? Serde + shitting the resulting json into a file
More complex? You could try Persy or Sled and build a small wrapper around the necessary traits to use an enum as a key (if that is what you're asking?) -
@12bitfloat Will check them out thanks,
I need to be able to define a persistent ordered collection within the system that can be indexed or appended to without ever moving the whole sequence into memory, so JSON dumps are a no-gp -
@lbfalvy What do you mean by never moved? Doesn't that require an append only store that can never shrink?
-
@12bitfloat It basically requires being able to store a sequence's elements in prefixed, distinct keys. This requires that the sequence type be able to dynamically request new keys prefixed with its own key as the size grows.
Related Rants

I finally got it working! Now I have a foundation for a kernel and an uefi bootloader written in pure Rust
To...
I identified the need for a product akin to an ORM that maps an algebraic type system such as that of Rust to a key-value database (my situation dictates lmdb but I'd like to abstract away the store). Can you recommend prior art for me to research?
question
rust
algebraic types
database mapper
key-value store