algebra
rkyv
algebra | rkyv | |
---|---|---|
4 | 13 | |
541 | 2,566 | |
1.8% | 1.4% | |
8.6 | 8.9 | |
7 days ago | 6 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT 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.
algebra
-
Müsli - An experimental binary serialization framework with more choice
Love seeing the work on modes! There's definitely a use for this in cryptography, where you might want to serialize things containing elliptic curve points, which can be serialized in both "compressed" form and "uncompressed" form. We make extensive use of this in our serialization framework in arkworks: https://github.com/arkworks-rs/algebra/tree/master/serialize
-
What application will make Rust its prime ?
Rust takes the cake in the blockchain space: Substrate, Cosmos (CosmWasm), and Solana. All of the zero knowledge cryptography libraries used for layer 2 solutions are written in Rust, compiling to Wasm (see arkworks, Risc0). Ethereum's next version of smart contracts will even use a restricted subset of Wasm ("Ewasm") instead of EVM.
-
Example of how of `disallowed_method` Clippy lint in Rust 1.54 can be quite handy
Is ark a prefix Embark is using for all their Rust crates, or is it a one-off name for your future crate? If so, it might collide with our naming convention in the arkworks ecosystem: arkworks.rs
-
Best way to enforce correctness of modular arithmetic?
You can take a look at our approach in the arkworks library: https://github.com/arkworks-rs/algebra/blob/920070c60d481a29fb3c262ef9579f34cbb053a6/ff/src/fields/macros.rs#L103
rkyv
-
Müsli - An experimental binary serialization framework with more choice
And before you ask: This only provides partial zero-copy support in strings and byte arrays like serde. But it's not like rkyv which constructs validated references into the data.
-
A new major version of jql has been released
Regarding JSON, what kind of other implementation do you have in mind? I've seen e.g. `rkyv` which looks really neat (https://github.com/rkyv/rkyv/issues/85). So far `serde_json` is providing a clean surface API but maybe there's best solution?
-
My negative views on Rust
Thank you for your concern. I've done plenty of projects that go beyond a "Hello World" such as a GPU accelerated password cracker. I am starting soon a C++/Rust job. I already contributed to codebases I didn't write.
-
Hey Rustaceans! Got a question? Ask here! (37/2022)!
rkyv is awesome because it supports full zero-copy deserialization. You can serialize your HashMap to a file. Later you can directly use the HashMap from the file without creating and populating a new HashMap in memory (rkyv directly indexes into the raw bytes). For even faster access times you can even mmap the file.
-
Bizarre memory leak caused by tokio runtime
I had the same problem when trying to deserialize a big struct with rkyv: see rkyv#277.
-
Advice for the next dozen Rust GUIs
Any chance of working with zero-copy deserialization frameworks? like https://github.com/rkyv/rkyv or capnproto
-
Pijul 1.0 Beta
Hi, you seem to know a bit about Sanakirja!
It stores 4kb blobs, right? Does Pijul first parses the data (copying it to other allocations), or uses the data as is? I mean, there are some libraries like cap'n'proto[0] and rkyv[1] that can directly use the file contents as an in-memory data structure, I was wondering if Pijul did anything like that.
I mean, is this btree page [2] stored exactly like this on disk, and does Pijul exploits that to avoid further copying data?
(I guess there's a trouble with compression there: to decompress you really need to write in another buffer)
Also, is the I/O done with something that prevent userspace copies like mmap or io_uring, or does it eventually calls read() to copy the data to its own buffer?
I want to build something like Sanakirja, but with those features, so I'm wondering if there's any overlap.
[0] https://github.com/capnproto/capnproto-rust
[1] https://github.com/rkyv/rkyv
[2] https://docs.rs/sanakirja-core/latest/sanakirja_core/btree/p...
-
Is there a library like Serde but which makes it easy to mutate serialized data stored in a [u8] or Vec<u8>?
I think https://github.com/rkyv/rkyv does this. Also capnproto like was mentioned here, and perhaps https://docs.rs/zerocopy/0.6.1/zerocopy/index.html too
-
rkyv 0.7: Endian-agnostic types, `no_std` validation, performance improvements, github sponsors and more!
It's been two months since the last major rkyv release, and three months since the last major feature release. After all that time, I'm proud to announce that rkyv 0.7 is finally out!
-
rkyv 0.5: Comparison derives, serialize bounds, and the future
After roughly two months of work, rkyv 0.5 is finally out!
What are some alternatives?
curve25519-dalek - A pure-Rust implementation of group operations on Ristretto and Curve25519
rust-serialization-benchmarks
mathjs - An extensive math library for JavaScript and Node.js
NoProto - Flexible, Fast & Compact Serialization with RPC
gridiron - Rust finite field library with fixed size multi-word values
capnproto-rust - Cap'n Proto for Rust
rust - Empowering everyone to build reliable and efficient software.
zero-copy-pads - Padding/aligning values without heap allocation
borrowme - The missing compound borrowing for Rust.
jj - A Git-compatible VCS that is both simple and powerful
Git - Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.
tree-buf - An experimental serialization system written in Rust