Giter Site home page Giter Site logo

Proto2 Support about vtprotobuf HOT 4 CLOSED

planetscale avatar planetscale commented on July 19, 2024
Proto2 Support

from vtprotobuf.

Comments (4)

vmg avatar vmg commented on July 19, 2024

Nope, this is expected (and I unfortunately forgot to document it 😓). I intentionally skipped support for proto2 because Vitess doesn't use it and it makes memory pooling trickier. I take it your project is stuck in proto2 and not planning to upgrade to proto3? I'm still unsure of whether the additional complexity of supporting legacy proto2 is worth it, given the minimal use case.

from vtprotobuf.

gmather avatar gmather commented on July 19, 2024

The specific case is some legacy proto2 messages getting referenced in proto3 messages which causes compile errors as the vtproto helpers are not generated but are expected to exist in the proto3 helpers. This isn't a blocker, I just wanted to confirm since I didn't see it specifically documented.

from vtprotobuf.

euroelessar avatar euroelessar commented on July 19, 2024

As an additional entry point - our codebase does still have hundreds of proto2 files and the migration would be tricky and often risky.

This makes me interested if you're willing to accept patches to support generation (un)marshal/size methods for proto2?

I understand that pooling logic is tricky and we could skip it & ask people to migrate to proto3 for this additional feature.

from vtprotobuf.

vmg avatar vmg commented on July 19, 2024

@euroelessar: sure thing. It actually shouldn't be a massive change, some of the generators already have a proto3 param that toggles between proto2 and proto3 generated code. It's just a matter of finishing up all the corner cases. If you send a PR I'll review it.

from vtprotobuf.

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.