Menu

Version 1.1

Marat
2013-04-12
2013-06-07
  • Marat

    Marat - 2013-04-12

    version 1.0

    This version was prepared in 2007, during the execution of the project on their core work. I had to reduce the amount of traffic sent from the server to the client application. Prior to that, for the same purpose used XML.

    Once the transition was completed, it was possible to download an order larger amounts of data and significantly improve performance.

    Implemented was the lowest level, which was enough for me to work.
    Knowing how messages are organized, could send and receive data using this protocol.
    Where a year later I put the code in https://sourceforge.net/p/protobuf-delphi.

    version 1.1

    New features

    1. Debugged and compiled using a version of Embarcadero XE3.
    2. For strings used AnsiString.
    3. Added an example of the use and the unit tests for this example.
    4. Easier to work with nested messages.
     
  • Benoit Dupraz

    Benoit Dupraz - 2013-06-04

    Hi Marat !
    Great work ! Is there a way to auto generate code when reading a protofile ?

    Regards,

    Benoit

     
    • Marat

      Marat - 2013-06-05

      Work on the code generator is planned and already started.
      Completed the following work:
      1. Grammar is described (EBNF).
      2. Implemented scanner and parser.
      3. The compiler reads the file and generates the object model.

      Actually, now we need to start working on the generation of code for Delphi.
      If you are willing to join the project,
      I would have put the source code for the current point in time.

      Sincerely,
      Marat

       
  • Wouter van Nifterick

    Last weekend I've ported the parser part of ProtoBuf (a C# project) to Delphi, and created a code generator from scratch, which outputs Delphi code in the same format as the example code that comes with this project.

    The current snapshot is attached, including a compiled version to demonstrate it in action. It contains two .dpr's: one commandline generator, and a GUI, which lets you select a .proto file, and it renders it to syntax-highlighted Delphi code immediately.

    It doesn't support "service" or "extension" at this moment, but other .proto files seem to work. For the rest it could really use a cleanup, mostly because large portions are really a 1:1 conversion of the C# code, but it's a start...

    Let me know if you want to merge this into this project (the generator targets this project at the moment), otherwise I might set up a separate project for this.

    regards,
    Wouter

     

    Last edit: Wouter van Nifterick 2013-06-06
  • Marat

    Marat - 2013-06-07

    Good job!
    Of course you can include this code in your project.
    It would be nice to bring all of the code to a single style.
    My English is not so good.
    I understand, you have to give the opportunity to join the project on the Rights of the team member?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.