Giter VIP home page Giter VIP logo

Comments (7)

batzor avatar batzor commented on August 11, 2024 2

I will just leave it here. Benchmarking code of protobuf and bincode. https://gist.github.com/ilblackdragon/88ab377bf0da7ff721af80cb8a11fe28

from saito-rust.

escapedcat avatar escapedcat commented on August 11, 2024 1

Tagging @batzor here for maybe more feedback on this issue in general

Bincode

I'm a big fan of using default libs to do stuff. But yesterday I tried finding anything JS-library-ish that could handle Rust-bincode. Just to see if there's something in that direction. Didn't find anything that looked hopeful.

One of them in my mind is will the Rust version be the only version that is allowed to run consensus?

I could imagine that locking in now to this might be an issue later. Especially if there's no bincode support in other languages (But maybe there's chance this will be added in the future?).
How to send/receive data with a npm-module later on?

Related bincode-repo issues:

Protocol buffers

For the lack of alternatives this sounds most reasonable

Related projects:

Custom

I am not a big fan of implementing such things in a custom way, mostly because of the mentioned cons

from saito-rust.

clayrab avatar clayrab commented on August 11, 2024

One big downside of protobufs is that the entire protobuf spec becomes part of our spec. The upside is we might get considerable performance benefits.

I think bincode isn't a viable long-term solution.

"Would require recreating it for each new implementation in another language". I view this as a "pro" for custom serializers, not a con. The encoding scheme must be implementable in arbitrary languages.

from saito-rust.

BearGuy avatar BearGuy commented on August 11, 2024

Just though I'd mention, benchmarking and tests of these different solutions exist in the serialization branch here in this repo for anyone who's curious or wishes to help us extend testing.

from saito-rust.

escapedcat avatar escapedcat commented on August 11, 2024

Linking the mentioned branches:

from saito-rust.

escapedcat avatar escapedcat commented on August 11, 2024

Can this be closed?

from saito-rust.

trevelyan avatar trevelyan commented on August 11, 2024

Thank you for the discussion everyone!

We are implementing custom serialization at this point.

from saito-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.