Giter VIP home page Giter VIP logo

Comments (6)

fatfatson avatar fatfatson commented on May 25, 2024 2

I think dcodeIO/ProtoBuf.js is more js-like than google's,
such as creating a message directly from a js object, without invoking a lot of setXXXX
so, it's good to have an option for generating target, I'll choose dcodeIO's first.

from ts-protoc-gen.

 avatar commented on May 25, 2024

How big is the output from this lib though ?

Also is it able to use grpc-web and websockets ?

from ts-protoc-gen.

mackross avatar mackross commented on May 25, 2024

Websockets or grpc-web shouldn't have an impact as this doesn't make any assumptions about the transport layer (gRPC & gRPC web separate deserialization from transport) e.g. grpcweb+json or grpc+flatbuffers are perfectly valid. My expectation would be that a static compiled serializer would be the same or smaller than a dynamic one.

from ts-protoc-gen.

metled avatar metled commented on May 25, 2024

I guess it's possible but need some changes. since grpc-web transport layer used some google-protobuf Message interface functions, i.e. deserializeBinary() serializeBinary(), which should be changed to encode() decode() for dcodeIO/ProtoBuf.js, or just add deserializeBinary() serializeBinary() as alias functions of encode() decode().

from ts-protoc-gen.

 avatar commented on May 25, 2024

from ts-protoc-gen.

easyCZ avatar easyCZ commented on May 25, 2024

For now, I believe that it is beneficial for the community to have the option of using either Protobuf.js on it's own or going with ts-protoc-gen. I think we should not be implementing protobuf js as a build target at this point.

I'm gonna close this for now. If you have a good usecase, please do let us know.

from ts-protoc-gen.

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.