Giter VIP home page Giter VIP logo

Comments (12)

tony612 avatar tony612 commented on May 25, 2024

@karlseguin Glad to hear that! Please let me know if there's any problem for you. I'll try to fix the problems ASAP 😬

from protobuf.

meadoch1 avatar meadoch1 commented on May 25, 2024

Hi Tony. I'm also very interested in using this instead of exprotobuf. We do need oneofs though. Do you have an estimate of when you expect them to be ready for use?

from protobuf.

tony612 avatar tony612 commented on May 25, 2024

@meadoch1 I'm working on it now! I hope to finish it within these two days. Will ping you when it's done.πŸ˜„

from protobuf.

meadoch1 avatar meadoch1 commented on May 25, 2024

Wow, that's great news. Thanks! Since you're doing maps and oneof can I assume it's proto3 compatible otherwise too?

from protobuf.

tony612 avatar tony612 commented on May 25, 2024

@meadoch1 Yes. But I think I'd better add more tests about compatibility :)

from protobuf.

meadoch1 avatar meadoch1 commented on May 25, 2024

πŸ‘

from protobuf.

meadoch1 avatar meadoch1 commented on May 25, 2024

@tony612 how is the progress on oneof coming?

from protobuf.

tony612 avatar tony612 commented on May 25, 2024

from protobuf.

meadoch1 avatar meadoch1 commented on May 25, 2024

That's good news. I'll pull it and give it a try soon. Thanks!

from protobuf.

tony612 avatar tony612 commented on May 25, 2024

@meadoch1 OK. I can release a new version if you think there're no serious issues. It is worth mentioning that the usage for oneof is a little different:

TestMsg.Oneof.new(first: {:a, 42})

In this example, :first is the oneof field, :a is the actual field and 42 is the actual value. This can be refered from the tests, like https://github.com/tony612/protobuf-elixir/blame/master/test/protobuf/protoc/integration_test.exs#L22. Please give some feedback about this design. It's not easy to decide how to implement oneof in dynamic type language like Elixir.

I'll add documents after my holiday ends these days.

from protobuf.

meadoch1 avatar meadoch1 commented on May 25, 2024

I'll see what I can shake out of it, but it may be a couple of weeks before I get it vetted well. I'll reply back here with results.

from protobuf.

meadoch1 avatar meadoch1 commented on May 25, 2024

I've gotten a chance to work with the library some at this point, porting an app from exprotobuf to your library. I found using protobuf-elixir to be good and love that it validates on encoding. That solves several problems that we've been encountering. The Oneof syntax is no more unwieldy than in exprotobuf and I think simply reflects that Oneofs are more complex than simply nested messages. Unfortunately I don't have a good thought on how to structure them differently.

I'd think it's good and worth cutting a new version to make official. Thanks for all your work on this.

from protobuf.

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.