serde_v8
node-foundationdb
serde_v8 | node-foundationdb | |
---|---|---|
1 | 1 | |
29 | 112 | |
- | - | |
7.1 | 1.5 | |
over 2 years ago | 6 days ago | |
Rust | TypeScript | |
MIT License | GNU General Public License v3.0 or later |
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.
serde_v8
-
The Serde Rust Framework
Whilst not classical de/serialization I wrote serde_v8 (https://github.com/denoland/serde_v8), an expressive and ~maximally efficient bijection between v8 & rust.
It has powered Deno's op-layer since 1.9 (https://deno.com/blog/v1.9#faster-calls-into-rust-with-serde...) and has enabled significant improvements in opcall overhead (close to 100x) whilst also simplifying said op-layer.
node-foundationdb
-
The Serde Rust Framework
Thats fantastic.
I maintain the nodejs bindings for foundationdb. Foundationdb refuses to publish a wire protocol, so the bindings are implemented as native code wrapped by n_api. The code is a rat's nest of calls to methods like `napi_get_value_string_utf8` to parse javascript objects into C. (Eg [1]). As well as being difficult to read and write, I'm sure there's weird bugs lurking somewhere in all that boilerplate code.
I'd much prefer all that code to just be in rust. That looks way easier to use than all the goopy serialization nonsense I'm doing now. (Though I'd want a serde_napi variant instead of going straight to v8).
[1] https://github.com/josephg/node-foundationdb/blob/master/src...
What are some alternatives?
nanoserde - Serialisation library with zero dependencies
miniserde - Data structure serialization library with several opposite design goals from Serde
sapio - A Bitcoin Programming Language
manifold - Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
pfr - std::tuple like methods for user defined types without any macro or boilerplate code
create-rust-app - Set up a modern rust+react web app by running one command.
serde - Serialization framework for Rust
Rocket - A web framework for Rust.