Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Malcolm Greaves
    @malcolmgreaves
    With this new info, I'm not sure if this namespace thing is as important. IMO everyone should put their schemas into namespaces. Maybe we could have an option to fail the codegen if we encounter a schema w/o a namespace?
    Eric Biggs
    @ebiggs
    Perhaps, but if it's less intuitive to work with than .avsc there's probably a way to make it feel the same.. we just have to figure out exactly what that means..
    Malcolm Greaves
    @malcolmgreaves
    I hear you
    this does seem like a more minor issue, right? so we could open it up and maybe flesh out some details there
    Eric Biggs
    @ebiggs
    Yes there is an issue regarding repetitive / long string literals, which is fairly inconsequential... but I'm also finding that I'd like to repurpose the AST in my scala 2.11 code so I was trying to make an excuse to have it published that way :)
    Yeah it's minor, I mean it doesn't bother me, but it might help make the software more approachable to newbies
    Malcolm Greaves
    @malcolmgreaves
    Definitely. Not dismissing, just sort-of mentally triaging.
    Eric Biggs
    @ebiggs
    I also have a desire for something that might be a bit crazy that having the AST would make it much more easy to implement.
    Malcolm Greaves
    @malcolmgreaves
    I'll let @pkinsky weigh in with his thoughts here. But I'd personally be open to review a PR for it.
    Eric Biggs
    @ebiggs
    I'm not even sure if it's a feasible feature
    but essentially want I want to be able to do is have it codegen case class that take a type parameter, which when specified will create different Avro schema depending on the parameter you call it with
    Malcolm Greaves
    @malcolmgreaves
    the crazy thing?
    oh interesting...
    Eric Biggs
    @ebiggs
    Yeah simple in principle but the edge cases, and how to extend avro to even make sense of it, would take some serious thinking
    Malcolm Greaves
    @malcolmgreaves
    so I have gotta get home right now
    I'll catch up on messages in a little while
    Eric Biggs
    @ebiggs
    ok, later
    Malcolm Greaves
    @malcolmgreaves
    (need some zzzzs! =D )
    Malcolm Greaves
    @malcolmgreaves
    Hey Eric! Made any headway on this idea? (just checkin' in)
    Eric Biggs
    @ebiggs
    I created an issue to discuss it further: Nitro/avro-codegen#7
    I get the impression that no other current user would get excited about this feature
    I may ultimately end developing it, though... and would offer to contribute it back, however wouldn't necessarily expect it to be accepted back in...
    Malcolm Greaves
    @malcolmgreaves
    If you make a PR, we'd definitely review it (and probably merge it in, you've written great code before).
    Taleb Zeghmi
    @talebzeghmi
    Can I use avro-codegen as a maven plugin?
    Taleb Zeghmi
    @talebzeghmi
    Also, does it support .idl extension file type?
    Taleb Zeghmi
    @talebzeghmi
    @malcolmgreaves can avro-codegen be used in maven?
    Malcolm Greaves
    @malcolmgreaves
    hi tewf! I believe the answer is no
    it is specifically an sbt plugin
    the runtime, however, can be used w/ maven
    (so you can use the generated scala code w/ any build process)
    if you're not bound by a legacy constraint.... we highly suggest using sbt for any scala project
    @tewf It does not. I have no clue what .idl is...
    a windows "interface definition file" ? we don't do anything special for windows
    the schema format is pretty simple though, it's like json: https://avro.apache.org/docs/1.7.7/spec.html
    Taleb Zeghmi
    @talebzeghmi
    Thanks @malcolmgreaves . This is the IDL https://avro.apache.org/docs/1.7.7/idl.html. It's just a lot simpler to read and less verbose than JSON
    Eugene Korniichuk
    @e8kor
    Hi guys, have you tried to implement avro serializers/deserializers base on GeneratedMessageCompanion ?
    Eugene Korniichuk
    @e8kor
    Hi guys, I have a proposition to generated serializers and deserializers with generated companion objects
    can please someone from maintainers give a tip about where it can be done and of course suggestions appreciated.
    emaayob
    @emaayob
    how can i use code lite for avr programming
    Eugene Korniichuk
    @e8kor
    Hi guys, documentation seems like outdated regarding custom avro source root
    can someone help me to configure them in sbt
    Eugene Korniichuk
    @e8kor
    and even more looks like there is no ability to have multiple sources
    adityanahan
    @adityanahan
    anyone used avro with c here ?
    Eugene Korniichuk
    @e8kor
    its dead
    adityanahan
    @adityanahan
    you mean , avro in c is not well supported
    @e8kor
    Eugene Korniichuk
    @e8kor
    this chat is dead
    adityanahan
    @adityanahan
    ok
    Malcolm Greaves
    @malcolmgreaves
    Hi @e8kor , yes, unfortunately the maintainers (myself and @pkinsky) have moved on from Nitro. Additionally, Nitro has moved away from supporting this project. I have a fork of it at github.com/malcolmgreaves/avro-codegen. I unfortunately don't have the bandwidth to add new features. But I'll maintain it as best as I can on my own time.
    For your original question, I do not understand: the GeneratedMessageCompanion type class does the encoding and decoding. What do you mean "tried to implement avro serializers/deserializers base..."?