Why Nostr? What is Njump?
2025-02-27 16:47:11

Wanda on Nostr: current status: having had a look through the available Rust bit vector crates, I am ...

current status: having had a look through the available Rust bit vector crates, I am currently considering either writing my own or just using a Vec<bool> out of frustration

bitvec. sigh. so much careful work done, so many cool features, and then I get completely fucked over by its serialization support being absolutely batshit.

fun fact: if you #[derive(Serialize, Deserialize)] struct Meow(BitVec);, your stuff won’t deserialize on a machine with a different pointer width. also, if you look at the resulting binary, you’ll see an incredible amount of "bitvec::order::Lsb0" as ASCII, because apparently it serializes its bit order for no good reason (it cannot actually use it on deserialization).
Author Public Key
npub1rkzdyqa7zalzp886xk6qkml99xrv2q3au9judg46qdj9ayjqr57q89086m