]> asedeno.scripts.mit.edu Git - cl-protobufs.git/log
cl-protobufs.git
12 years agoDon't generate compiler warnings for optimized serialization code
Scott McKay [Mon, 23 Apr 2012 20:46:12 +0000 (20:46 +0000)]
Don't generate compiler warnings for optimized serialization code

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

12 years agoTweak the CLOS->Proto generation to work a bit more nicely
Scott McKay [Mon, 23 Apr 2012 18:04:44 +0000 (18:04 +0000)]
Tweak the CLOS->Proto generation to work a bit more nicely

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

12 years agoImprove the CL-Protobufs documentation
Scott McKay [Fri, 20 Apr 2012 21:05:38 +0000 (21:05 +0000)]
Improve the CL-Protobufs documentation

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

12 years agoA few minor tweaks to text-format (de)serialization to line up with some stuff Igor...
Scott McKay [Fri, 20 Apr 2012 20:08:27 +0000 (20:08 +0000)]
A few minor tweaks to text-format (de)serialization to line up with some stuff Igor sent me

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

12 years agoMake sure extended indexes are in range
Scott McKay [Thu, 19 Apr 2012 21:35:19 +0000 (21:35 +0000)]
Make sure extended indexes are in range

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

12 years ago(de)serialization (from)to files
Scott McKay [Thu, 19 Apr 2012 20:10:25 +0000 (20:10 +0000)]
(de)serialization (from)to files

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

12 years agoIt's 'extend', not 'extends'
Scott McKay [Thu, 19 Apr 2012 19:28:33 +0000 (19:28 +0000)]
It's 'extend', not 'extends'

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

12 years agoWow, deserializing extended messages is a bit trickier than I thought
Scott McKay [Thu, 19 Apr 2012 19:14:49 +0000 (19:14 +0000)]
Wow, deserializing extended messages is a bit trickier than I thought

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

12 years agoFully implement 'extends'
Scott McKay [Wed, 18 Apr 2012 21:30:57 +0000 (21:30 +0000)]
Fully implement 'extends'

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

12 years agoTweak the support for 'options' so that the generated .proto code will compile correctly
Scott McKay [Wed, 18 Apr 2012 18:48:56 +0000 (18:48 +0000)]
Tweak the support for 'options' so that the generated .proto code will compile correctly

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

12 years agoDo all the model generation at macroexpansion time so that it's accessible to 'extends'
Scott McKay [Wed, 18 Apr 2012 17:31:06 +0000 (17:31 +0000)]
Do all the model generation at macroexpansion time so that it's accessible to 'extends'

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

12 years agoMake 'proto:define-xxx' do more work at compile-time (part 1)
Scott McKay [Wed, 18 Apr 2012 15:11:02 +0000 (15:11 +0000)]
Make 'proto:define-xxx' do more work at compile-time (part 1)

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

12 years agoCheckpoint the implementation of 'define-extends'
Scott McKay [Mon, 16 Apr 2012 23:10:11 +0000 (23:10 +0000)]
Checkpoint the implementation of 'define-extends'

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

12 years agoGet 'define-extensions' right so that I can get 'extends' to work
Scott McKay [Fri, 13 Apr 2012 15:46:21 +0000 (15:46 +0000)]
Get 'define-extensions' right so that I can get 'extends' to work

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

12 years agoImprove the documentation a bit
Scott McKay [Fri, 13 Apr 2012 15:10:47 +0000 (15:10 +0000)]
Improve the documentation a bit

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

12 years agoFix a fencepost typo
Scott McKay [Fri, 13 Apr 2012 15:09:40 +0000 (15:09 +0000)]
Fix a fencepost typo

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

12 years agoUse Stubby terminology in the implementation: 'RPC' -> 'method'
Scott McKay [Thu, 12 Apr 2012 21:09:27 +0000 (21:09 +0000)]
Use Stubby terminology in the implementation: 'RPC' -> 'method'

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

12 years agoBetter support Lisp packages; start implementing extensions
Scott McKay [Thu, 12 Apr 2012 17:16:44 +0000 (17:16 +0000)]
Better support Lisp packages; start implementing extensions

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

12 years agoUpdate the documentation
Scott McKay [Wed, 11 Apr 2012 20:51:09 +0000 (20:51 +0000)]
Update the documentation

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

12 years agoNow that we're using a lighter version of 'list-of', we can avoid using 'map:map...
Scott McKay [Wed, 11 Apr 2012 18:59:12 +0000 (18:59 +0000)]
Now that we're using a lighter version of 'list-of', we can avoid using 'map:map' and make this all more portable

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

12 years agoAdd a lighter weight version of 'list-of' just for Protobufs
Scott McKay [Wed, 11 Apr 2012 18:54:05 +0000 (18:54 +0000)]
Add a lighter weight version of 'list-of' just for Protobufs

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

12 years agoIt's gonna be a heck of a lot easier debugging CL-Stubby if we can parse the text...
Scott McKay [Wed, 11 Apr 2012 15:10:26 +0000 (15:10 +0000)]
It's gonna be a heck of a lot easier debugging CL-Stubby if we can parse the text format of Protobufs messages

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

12 years agoAdd some user documentation
Scott McKay [Tue, 10 Apr 2012 18:26:12 +0000 (18:26 +0000)]
Add some user documentation

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

12 years agoFix doc string typos
Scott McKay [Tue, 10 Apr 2012 18:13:55 +0000 (18:13 +0000)]
Fix doc string typos

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

12 years agoFix up typos in doc strings
Scott McKay [Mon, 9 Apr 2012 19:15:41 +0000 (19:15 +0000)]
Fix up typos in doc strings

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

12 years agoAdd some comments about how we might add Stubby
Scott McKay [Thu, 5 Apr 2012 21:01:23 +0000 (21:01 +0000)]
Add some comments about how we might add Stubby

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

12 years agoCommit merges with trunk
Scott McKay [Thu, 5 Apr 2012 18:07:53 +0000 (18:07 +0000)]
Commit merges with trunk

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

12 years agoA few things for Bill Woods:
Scott McKay [Thu, 5 Apr 2012 16:32:41 +0000 (16:32 +0000)]
A few things for Bill Woods:
 - When deserializing the wire-format, seeing a null byte in the tag
   position indicates the end of the message.
 - Allow the text-format serializer to generate more compact output.
 - Add a more useful "list" example that he could use for sending
   stuff to/from his sentence understanding system.

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

12 years agoAdd an example that can serialize Lisp lists
Scott McKay [Wed, 4 Apr 2012 21:52:46 +0000 (21:52 +0000)]
Add an example that can serialize Lisp lists

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

12 years agoFix a bug in the text-format serializer
Scott McKay [Wed, 4 Apr 2012 21:28:58 +0000 (21:28 +0000)]
Fix a bug in the text-format serializer

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

12 years agoGet readers, accessors, initforms, etc right
Scott McKay [Wed, 4 Apr 2012 17:21:32 +0000 (17:21 +0000)]
Get readers, accessors, initforms, etc right

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

12 years agoSimplify the serialization API and make it faster, too
Scott McKay [Wed, 4 Apr 2012 14:36:37 +0000 (14:36 +0000)]
Simplify the serialization API and make it faster, too

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

12 years agoExport a simpler, Python-like API (requested by Sean Morris)
Scott McKay [Tue, 3 Apr 2012 20:32:38 +0000 (20:32 +0000)]
Export a simpler, Python-like API (requested by Sean Morris)

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

12 years agoMake it (almost) possible to compile/load Protobufs outside of QRes
Scott McKay [Tue, 3 Apr 2012 15:36:50 +0000 (15:36 +0000)]
Make it (almost) possible to compile/load Protobufs outside of QRes

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

12 years agoD'oh, forgot to initialize nullable and sequence slots to nil
Scott McKay [Mon, 2 Apr 2012 20:59:44 +0000 (20:59 +0000)]
D'oh, forgot to initialize nullable and sequence slots to nil

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

12 years agoHaving straightened out aliases, we can now speed up serialization
Scott McKay [Mon, 2 Apr 2012 19:20:00 +0000 (19:20 +0000)]
Having straightened out aliases, we can now speed up serialization

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

12 years agoMore cleaning up of the API: 'class' vs. 'type' vs. 'alias'
Scott McKay [Mon, 2 Apr 2012 18:52:24 +0000 (18:52 +0000)]
More cleaning up of the API: 'class' vs. 'type' vs. 'alias'

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

12 years agoStraighten out API: 'class' vs. 'type' vs. 'alias'
Scott McKay [Mon, 2 Apr 2012 15:40:38 +0000 (15:40 +0000)]
Straighten out API: 'class' vs. 'type' vs. 'alias'

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

12 years ago'serialize-object' and 'object-size' should take a type argument so that aliasing...
Scott McKay [Mon, 2 Apr 2012 13:33:27 +0000 (13:33 +0000)]
'serialize-object' and 'object-size' should take a type argument so that aliasing can work properly, always

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

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