#grpc

/

      • hatmaker joined the channel
      • hatmaker has quit
      • gxb joined the channel
      • gxb
        hey guys, does anybody know how big the protoc compiler is when it's installed?
      • is it super huge?
      • gxb5443 joined the channel
      • murgatroid99
        It looks like about 50MB for libprotobuf, 83MB for libprotoc, and 40MB for protoc (you get all of those when you install protobuf)
      • gxb
        what about all the stuff for the other languages?
      • doesn't it install libraries for java/c# etc/
      • etc*
      • gxb5443 has quit
      • murgatroid99
        The grpc compiler plugins for those are about 13MB each. I think you install the runtime libraries for those separately, and I'm not sure how big they are
      • gxb
        hmm
      • i'm trying to dockerize it and it's like 880MB
      • notcarl
        Do you have an optimized build of protoc? Its got a ton of debug info in it by default I think.
      • gxb
        i don't think so? I'm building it from source. Can you point me in the right direction?
      • i'm also using the proto3 beta so it works with grpc
      • notcarl
        I just tried building protoc and it has the -g flag in there
      • though looking at the ./configure script I don't see where to turn it off
      • gxb
        plus that's autogenerated
      • the config script
      • notcarl
        hmmm. CFLAGS=-O2 ./configure seems to ignore it :/
      • You could probably just remove the -g from the Makefile.
      • Ah, found it. its CXXFLAGS=-O2, not CPPFLAGS
      • gxb
        so what does that mean? sorry c++ isn't my forte
      • endobson joined the channel
      • gxb has quit
      • endobson joined the channel
      • endobson joined the channel
      • endobson joined the channel
      • endobson joined the channel
      • endobson joined the channel
      • dgryski joined the channel
      • hatmaker joined the channel
      • MaynardK joined the channel
      • majestix508 joined the channel
      • majestix508 has quit
      • MaynardK has quit
      • hatmaker has quit
      • hatmaker joined the channel
      • endobson joined the channel
      • ejona
        gxb (when you get back), there are (only) protoc binaries available at
      • They are statically linked and 3-5 MB, depending on platform.
      • The script used to build them is protoc-artifacts/build-protoc.sh
      • hatmaker has quit
      • hatmaker joined the channel
      • hatmaker has quit
      • dgryski joined the channel
      • gxb joined the channel
      • gxb
        hey does anybody here have experience with protoc and ruby?
      • gxb slaps gxb around a bit with a large fishbot
      • i'm trying to build a docker image for building ruby protobuf files for grpc. Is building grpc from scratch the only way to get the protoc plugin?
      • ejona
        gxb, I sent you a message when you were gone.
      • Oh, but that doesn't help you with the grpc protoc plugin
      • I think Java is the only language that has pre-built binaries of its grpc protoc plugin.
      • (at this point)
      • gxb
        i can deal with it not being prebuilt, but grpc is a monster to build just for the protoc plugin
      • ejona
        In general we would expect most people to need the library at the same time as protoc, but yes.
      • |Pixel|
        you can build the plugins individually
      • ejona
        Running "make grpc_ruby_plugin" doesn't seem too bad. (I'm running it now trying it out)
      • It does mean building protobuf though.
      • |Pixel|
        yes
      • gxb
        you guys. are geniuses.