Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Protocol Buffers: Google's Data Interchange Format [modified]

Protocol Buffers: Google's Data Interchange Format [modified]

Scheduled Pinned Locked Moved The Lounge
javahtmlwcfcomxml
10 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    abhigad
    wrote on last edited by
    #1

    Check this out protocol buffer XML is used all over the map, from data integration project to the omnipresent web services. And every time we work with XML, discussion on performance and size overhead is guaranteed. Is there anything better than XML? Is it a protocol buffer? As per the Google documentation, protocol buffer is not a replacement for XML. Open Source at Google has done a good job in releasing the protocol buffer documentation. They do have a java tutorial on the open source website. Let us know your take on this data format?

    modified on Wednesday, July 9, 2008 2:41 PM

    N M S S 4 Replies Last reply
    0
    • A abhigad

      Check this out protocol buffer XML is used all over the map, from data integration project to the omnipresent web services. And every time we work with XML, discussion on performance and size overhead is guaranteed. Is there anything better than XML? Is it a protocol buffer? As per the Google documentation, protocol buffer is not a replacement for XML. Open Source at Google has done a good job in releasing the protocol buffer documentation. They do have a java tutorial on the open source website. Let us know your take on this data format?

      modified on Wednesday, July 9, 2008 2:41 PM

      N Offline
      N Offline
      NormDroid
      wrote on last edited by
      #2

      XML is too verbose, it's going to be a case or it comes around again with custom 'packets' are per serial communication interfaces I suspect.

      1 Reply Last reply
      0
      • A abhigad

        Check this out protocol buffer XML is used all over the map, from data integration project to the omnipresent web services. And every time we work with XML, discussion on performance and size overhead is guaranteed. Is there anything better than XML? Is it a protocol buffer? As per the Google documentation, protocol buffer is not a replacement for XML. Open Source at Google has done a good job in releasing the protocol buffer documentation. They do have a java tutorial on the open source website. Let us know your take on this data format?

        modified on Wednesday, July 9, 2008 2:41 PM

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #3

        Interesting, I wonder why they left out C# code generation. After all, they say it'll compile to a language of your choice! Marc

        Thyme In The Country Interacx My Blog

        S 1 Reply Last reply
        0
        • A abhigad

          Check this out protocol buffer XML is used all over the map, from data integration project to the omnipresent web services. And every time we work with XML, discussion on performance and size overhead is guaranteed. Is there anything better than XML? Is it a protocol buffer? As per the Google documentation, protocol buffer is not a replacement for XML. Open Source at Google has done a good job in releasing the protocol buffer documentation. They do have a java tutorial on the open source website. Let us know your take on this data format?

          modified on Wednesday, July 9, 2008 2:41 PM

          S Offline
          S Offline
          Shog9 0
          wrote on last edited by
          #4

          The advantages of XML: can be self-describing, plenty of off-the-shelf tools, APIs for working with it. Disadvantages: verbose, verbosity often combated with ridiculously terse syntax requiring schema information to be sent out-of-band anyway. XML is a good default choice, to the extent that any default choice is "good". When something less heavy is desired, alternatives such as JSON are nice for languages that have good text processing support built-in and don't have good binary processing support available. RDF, SOAP, etc. tend to be overkill for nearly everything. This protocol buffer thing sounds like a reasonable way of designing and implementing reasonably light-weight binary protocols. Sure beats whatever MS was smoking when they designed the VIEWSTATE protocols in ASP.NET... (similar though, apart from all the documentation that doesn't exist for the latter)

          Citizen 20.1.01

          'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

          1 Reply Last reply
          0
          • M Marc Clifton

            Interesting, I wonder why they left out C# code generation. After all, they say it'll compile to a language of your choice! Marc

            Thyme In The Country Interacx My Blog

            S Offline
            S Offline
            Shog9 0
            wrote on last edited by
            #5

            Marc Clifton wrote:

            After all, they say it'll compile to a language of your choice!

            ...And then goes on to describe your choices... ;)

            Citizen 20.1.01

            'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

            1 Reply Last reply
            0
            • A abhigad

              Check this out protocol buffer XML is used all over the map, from data integration project to the omnipresent web services. And every time we work with XML, discussion on performance and size overhead is guaranteed. Is there anything better than XML? Is it a protocol buffer? As per the Google documentation, protocol buffer is not a replacement for XML. Open Source at Google has done a good job in releasing the protocol buffer documentation. They do have a java tutorial on the open source website. Let us know your take on this data format?

              modified on Wednesday, July 9, 2008 2:41 PM

              S Offline
              S Offline
              Stuart Dootson
              wrote on last edited by
              #6

              I like the look of it - I may well use it at some point...but let's be honest, it's a refactoring of traditional RPC with IDL, extracting the marshalling code generator into a separate application that generates OO code rather than procedural code. Once (If!!!) there's a Haskell code generator, it'll be useful for my current project (Haskell client, Python server-side components, using RESTful 'web services').

              R 1 Reply Last reply
              0
              • S Stuart Dootson

                I like the look of it - I may well use it at some point...but let's be honest, it's a refactoring of traditional RPC with IDL, extracting the marshalling code generator into a separate application that generates OO code rather than procedural code. Once (If!!!) there's a Haskell code generator, it'll be useful for my current project (Haskell client, Python server-side components, using RESTful 'web services').

                R Offline
                R Offline
                Robert Surtees
                wrote on last edited by
                #7

                everything old is new again

                S 1 Reply Last reply
                0
                • R Robert Surtees

                  everything old is new again

                  S Offline
                  S Offline
                  Stuart Dootson
                  wrote on last edited by
                  #8

                  Except COBOL - that is (and ever will be) old...

                  N R 2 Replies Last reply
                  0
                  • S Stuart Dootson

                    Except COBOL - that is (and ever will be) old...

                    N Offline
                    N Offline
                    Nemanja Trifunovic
                    wrote on last edited by
                    #9

                    Stuart Dootson wrote:

                    that is (and ever will be) old...

                    ... and always was.

                    Programming Blog utf8-cpp

                    1 Reply Last reply
                    0
                    • S Stuart Dootson

                      Except COBOL - that is (and ever will be) old...

                      R Offline
                      R Offline
                      Robert Surtees
                      wrote on last edited by
                      #10

                      Stuart Dootson wrote:

                      Except COBOL - that is (and ever will be) old...

                      :) Yeah, but consider COBOL was one of the first attempts to make programming computers easy for the masses -- sound familiar?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups