]> asedeno.scripts.mit.edu Git - cl-protobufs.git/log
cl-protobufs.git
12 years agoSome cleanups to enable some more cleanups :-)
Scott McKay [Sun, 1 Apr 2012 21:31:57 +0000 (21:31 +0000)]
Some cleanups to enable some more cleanups :-)

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

12 years agoMisplaced 'when' prevented serialization of PNRs from working
Scott McKay [Sat, 31 Mar 2012 20:39:16 +0000 (20:39 +0000)]
Misplaced 'when' prevented serialization of PNRs from working

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

12 years agotweak proto-pkgdcl.lisp to fix bogus exports unit test
Alejandro Sedeño [Fri, 30 Mar 2012 21:59:48 +0000 (21:59 +0000)]
tweak proto-pkgdcl.lisp to fix bogus exports unit test

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

12 years agofix bugs introduced in last commit
Alejandro Sedeño [Fri, 30 Mar 2012 21:59:43 +0000 (21:59 +0000)]
fix bugs introduced in last commit

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

12 years agoFix problems found while debugging 'read-air-reservation' query
Scott McKay [Fri, 30 Mar 2012 20:17:41 +0000 (20:17 +0000)]
Fix problems found while debugging 'read-air-reservation' query

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

12 years agoType-checking was killing us while deserializing lengthy repeated fields, so optimize...
Scott McKay [Thu, 29 Mar 2012 19:40:09 +0000 (19:40 +0000)]
Type-checking was killing us while deserializing lengthy repeated fields, so optimize that

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

12 years agoCommit changes merged from trunk
Scott McKay [Thu, 29 Mar 2012 17:44:08 +0000 (17:44 +0000)]
Commit changes merged from trunk

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

12 years agoMore optimizations of (de)serialization at the wire-format level
Scott McKay [Thu, 29 Mar 2012 16:44:57 +0000 (16:44 +0000)]
More optimizations of (de)serialization at the wire-format level

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

12 years agoTweak serialization performance a bit more; add optimized deserialization
Scott McKay [Tue, 27 Mar 2012 21:14:59 +0000 (21:14 +0000)]
Tweak serialization performance a bit more; add optimized deserialization

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

12 years agoAdd optimizations for (de)serialization
Scott McKay [Mon, 26 Mar 2012 20:53:41 +0000 (20:53 +0000)]
Add optimizations for (de)serialization

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

12 years agoGet 3x performance improvement out of (de)serialization; 10x to go
Scott McKay [Fri, 23 Mar 2012 21:02:10 +0000 (21:02 +0000)]
Get 3x performance improvement out of (de)serialization; 10x to go

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

12 years agoNFC -- indentation
Scott McKay [Thu, 22 Mar 2012 22:50:36 +0000 (22:50 +0000)]
NFC -- indentation

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

12 years agoSlightly better handling of defaults
Scott McKay [Thu, 22 Mar 2012 20:30:46 +0000 (20:30 +0000)]
Slightly better handling of defaults

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

12 years agoFix a problem in which 'define-message' could define a circular type.
Scott McKay [Wed, 21 Mar 2012 18:15:45 +0000 (18:15 +0000)]
Fix a problem in which 'define-message' could define a circular type.
Add a new 'ensure-protobuf' function that ensures that everything in
  a schema is well-defined. Makes debugging easier.

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

12 years agoFully implement class/type "override" so that 'proto:define-message'
Scott McKay [Wed, 21 Mar 2012 16:02:50 +0000 (16:02 +0000)]
Fully implement class/type "override" so that 'proto:define-message'
and 'proto:define-enum' can be used to fully model existing Lisp
classes and types. This will make it much easier to reuse QRes
objects for its Protobufs API.

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

12 years agoFix some things noticed by Igor:
Scott McKay [Tue, 20 Mar 2012 14:08:20 +0000 (14:08 +0000)]
Fix some things noticed by Igor:
 - The default syntax should be "proto2"
 - Always emit the syntax in .proto files
 - Parse syntax lines (how did I miss this?)
 - .proto package names can't contain dash chars; use underscore

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

12 years agoRemove one of the examples now that I'm making it work
Scott McKay [Mon, 19 Mar 2012 20:14:27 +0000 (20:14 +0000)]
Remove one of the examples now that I'm making it work

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

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