]> asedeno.scripts.mit.edu Git - cl-protobufs.git/log
cl-protobufs.git
12 years agoTweak a few things for the XML->Protobufs work
Scott McKay [Mon, 19 Mar 2012 15:11:54 +0000 (15:11 +0000)]
Tweak a few things for the XML->Protobufs work

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534763 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoMake the CLOS -> Protobufs transformer do a better job generating Protobufs fields
Scott McKay [Fri, 16 Mar 2012 15:09:17 +0000 (15:09 +0000)]
Make the CLOS -> Protobufs transformer do a better job generating Protobufs fields

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534504 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoNeed to encode/decode both signed and unsigned fixed-length integers
Scott McKay [Fri, 16 Mar 2012 14:30:02 +0000 (14:30 +0000)]
Need to encode/decode both signed and unsigned fixed-length integers

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534496 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoAfter confirming my suspicions with Robert Brown,
Scott McKay [Thu, 15 Mar 2012 22:45:41 +0000 (22:45 +0000)]
After confirming my suspicions with Robert Brown,
fix the wire protocol to (de)serialize fixed integers
with a fixed nnumber of bytes. These don't get used
much, so this went unnoticed even by his test suite.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534383 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoExtend the 'define-proto' macrology so it can be used to
Scott McKay [Thu, 15 Mar 2012 22:31:00 +0000 (22:31 +0000)]
Extend the 'define-proto' macrology so it can be used to
model existing families of classes, rather than always
creating new classes. This means we can use it, e.g.,
to do what 'define-xmlgen-component' does, allowing us
to do Protobufs serialization directly on, say, PNRs.

Add :class argument to 'define-message'. When it's given
  explicitly, no new class is created.
Add :reader argument to fields. When it's given explicitly,
  the serializer uses the reader function instead of trying
  to get a value directly from a slot.
Fix serialization to use the reader if it's supplied.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534378 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoTweak the syntax of RPCs within services a bit.
Scott McKay [Thu, 15 Mar 2012 21:13:20 +0000 (21:13 +0000)]
Tweak the syntax of RPCs within services a bit.
Speed serialization a bit.
Flesh out the "Read Air Resveration" example.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534345 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoBetter support for upgradability warnings
Scott McKay [Thu, 15 Mar 2012 16:17:52 +0000 (16:17 +0000)]
Better support for upgradability warnings

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534238 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoFix a minor bug in service/rpc declarations.
Scott McKay [Wed, 14 Mar 2012 19:25:19 +0000 (19:25 +0000)]
Fix a minor bug in service/rpc declarations.
Fix a minor bug in deserialization.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534089 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoAdd ASDF support for .proto modules.
Scott McKay [Wed, 14 Mar 2012 17:26:09 +0000 (17:26 +0000)]
Add ASDF support for .proto modules.
Generate stubs for RPCs within Protobufs services.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@534038 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoSupport floating point in the wire protocol
Scott McKay [Wed, 14 Mar 2012 15:29:17 +0000 (15:29 +0000)]
Support floating point in the wire protocol

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@533978 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoIt's an error to assign field numbers between 19000 and 19999.
Scott McKay [Tue, 13 Mar 2012 20:44:46 +0000 (20:44 +0000)]
It's an error to assign field numbers between 19000 and 19999.
The .proto parser should try to put symbols in the right package.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@533822 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoFix a bug in the options printers.
Scott McKay [Tue, 13 Mar 2012 18:56:04 +0000 (18:56 +0000)]
Fix a bug in the options printers.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@533778 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoUniform handling of options and documentation
Scott McKay [Tue, 13 Mar 2012 14:34:50 +0000 (14:34 +0000)]
Uniform handling of options and documentation

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@533680 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoImplement the .proto file parser.
Scott McKay [Mon, 12 Mar 2012 20:42:07 +0000 (20:42 +0000)]
Implement the .proto file parser.
Rename a few things to make the code a bit easier to read.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@533572 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoSimplify some things to make development using Protobufs easier
Scott McKay [Fri, 9 Mar 2012 22:25:01 +0000 (22:25 +0000)]
Simplify some things to make development using Protobufs easier

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@533338 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoSupport extensions
Scott McKay [Fri, 9 Mar 2012 14:19:22 +0000 (14:19 +0000)]
Support extensions

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@533157 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoModel options as first-class object, this so we can get the
Scott McKay [Thu, 8 Mar 2012 16:17:40 +0000 (16:17 +0000)]
Model options as first-class object, this so we can get the
parser working right for the top-level.proto file and for
the RPCs within service declarations.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532904 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoFix a dumb typo
Scott McKay [Wed, 7 Mar 2012 21:48:09 +0000 (21:48 +0000)]
Fix a dumb typo

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532791 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoMake the Lisp schema printer do a much better job
Scott McKay [Wed, 7 Mar 2012 21:24:19 +0000 (21:24 +0000)]
Make the Lisp schema printer do a much better job

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532778 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoMake the defining macros leave more meta-data for Lisp code generation.
Scott McKay [Wed, 7 Mar 2012 18:42:14 +0000 (18:42 +0000)]
Make the defining macros leave more meta-data for Lisp code generation.
Make 'print-text-format' be a generic function.
Make 'write-protobuf[-as]' specialize on a formatting type, i.e.,
  :proto or :lisp.
Add a Lisp printer, this so that the upcoming parser can read .proto
  files and generate .lisp files.
Add lots and lots of doc strings.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532695 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoMake the textual printer handle empty fields and nested fields better.
Scott McKay [Tue, 6 Mar 2012 21:59:25 +0000 (21:59 +0000)]
Make the textual printer handle empty fields and nested fields better.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532539 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoImplement Protobufs text format, for simpler debugging
Scott McKay [Tue, 6 Mar 2012 21:39:29 +0000 (21:39 +0000)]
Implement Protobufs text format, for simpler debugging

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532527 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoReorder a few things for readability.
Scott McKay [Tue, 6 Mar 2012 20:46:38 +0000 (20:46 +0000)]
Reorder a few things for readability.
Make it possible to deserialize objects that were serialized from
  a previous, compatibile version of a message.
Add 'protobuf-upgradable' predicate, which returns true iff a new
  version of a .proto schema is compatible with an older version.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532501 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoAdd :conc-name so we can generate better Lisp code.
Scott McKay [Tue, 6 Mar 2012 18:32:18 +0000 (18:32 +0000)]
Add :conc-name so we can generate better Lisp code.
Add explicit indices so we can generate better Protobufs code.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532435 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoSupport syntax, options and imports
Scott McKay [Tue, 6 Mar 2012 17:16:13 +0000 (17:16 +0000)]
Support syntax, options and imports

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532416 f8382938-511b-0410-9cdd-bb47b084005c

12 years agoBreak Protobufs support out into its own module with Quux.
Scott McKay [Tue, 6 Mar 2012 16:10:36 +0000 (16:10 +0000)]
Break Protobufs support out into its own module with Quux.
Figure out how to open-source this later.

git-svn-id: http://svn.internal.itasoftware.com/svn/ita/branches/qres/swm/borgify-1/qres/lisp/quux/protobufs@532395 f8382938-511b-0410-9cdd-bb47b084005c