- 30 Mar, 2017 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
TODO: - Rename Guarded to Bounded? - Consider bounded array (where size and indexes are bounded quantities). - Implement non-CAPNP_DEBUG_TYPES fallback. - Don't allow casting kj::maxValue to bounded type, this won't work right when not using debug types! - Verify that this change doesn't hurt performance.
-
- 03 Jul, 2015 1 commit
-
-
Kenton Varda authored
**The problem** The methods MessageReader::initCapTable() and MessageBuilder::getCapTable() always felt rather hacky. initCapTable() in particular feels like something that should be handled by the constructor. However, in practice, the cap table is often initialized based on a table encoded within the message itself. That is, an RPC message contains a "payload" which includes both the application-level message structure and a table of capabilities. The cap table has to be processed first, then initCapTable() is called on the overall message, before the application structure can safely be read. The really weird part about this is that even though the cap table only applies to one branch of the message (the payload), it is set on the *whole* MessageReader. This implies, for example, that it would be impossible to have a message that contains multiple payloads. We haven't had any need for such a thing, but an implemnetation that has such artificial limitations feels very wrong. MessageBuilder has similar issues going in the opposite direction. All of this ugliness potentially gets worse when we introduce "membranes". We want a way to intercept capabilities as they are being read from or written to an RPC payload. Currently, the only plausible way to do that is, again, to apply a transformation to all capabilities in the message. In practice it seems like this would work out OK, but it again feels wrong -- we really want to take a single Reader or Builder and "wrap" it so that transformations are applied on capabilities read/written through it. **The solution** This change fixes the problem by adding a new pointer to each struct/list Reader/Builder that tracks the current cap table. So, now a Reader or Builder for a particular sub-object can be "imbued" with a cap table without affecting any other existing Readers/Builders pointing into the same message. The cap table is inherited by child Readers/Builders obtained through the original one. This approach matches up nicely with membranes, which should make their implementation nice and clean. This change unfortunately means that Readers and Builders are now bigger, possibly with some performance impact.
-
- 30 Dec, 2014 1 commit
-
-
Kenton Varda authored
A compatibility layer is provided to ease migration.
-
- 24 Nov, 2014 1 commit
-
-
Kenton Varda authored
The project file still only compiles a test binary, but it should be easy to separate out a library project from here. Thanks again to Bryan Boreham <bjboreham@gmail.com> for much help getting this working.
-
- 09 Nov, 2014 1 commit
-
-
Kenton Varda authored
-
- 26 Oct, 2014 1 commit
-
-
Kenton Varda authored
Extended discussion: https://groups.google.com/d/msg/capnproto/lRlWBOglQv4/8-Qo96AcZQIJ
-
- 20 Jun, 2014 1 commit
-
-
Kenton Varda authored
For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company). The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is. Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change: https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
-
- 29 Apr, 2014 1 commit
-
-
Kenton Varda authored
I decided that consistent output across platforms is an important property, worth sacrificing a little bit of performance on MIPS.
-
- 11 Dec, 2013 1 commit
-
-
Kenton Varda authored
Eliminate the concept of imbuing messages in favor of the simpler concept of setting a cap table directly on MessageReader / getting one from MessageBuilder. This eliminates capability-context entirely. This was made possible by the earlier change which moved capabilities to a separate table rather than storing CapDescriptors inline, but I didn't realize it at the time.
-
- 04 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 25 Sep, 2013 1 commit
-
-
Kenton Varda authored
-
- 23 Sep, 2013 1 commit
-
-
Kenton Varda authored
Factor Pointer{Reader,Builder} out from {Struct,List}{Reader,Builder}. Will make it easier to deal with Object fields.
-
- 22 Jul, 2013 1 commit
-
-
Kenton Varda authored
-
- 06 Jun, 2013 5 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
Kenton Varda authored
-
- 29 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 23 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 18 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 16 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 15 May, 2013 1 commit
-
-
Kenton Varda authored
Mass rename 'reference' -> 'pointer'. Been meaning to do this for a while -- all the documentation talks about 'pointers', not 'references'.
-
- 11 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 06 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 26 Apr, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 20 Apr, 2013 1 commit
-
-
Kenton Varda authored
-
- 15 Apr, 2013 1 commit
-
-
Kenton Varda authored
-
- 09 Apr, 2013 1 commit
-
-
Kenton Varda authored
-
- 04 Apr, 2013 1 commit
-
-
Kenton Varda authored
Update implemented pointer format to match docs: Don't store field count in struct pointers because it isn't needed. Instead extend data and pointer section sizes to 16 bits, which should be enough for anyone. Also, store offsets from the end of the pointer rather than the beginning, because this makes it possible for them to be zero, which compresses better. In particular, the root reference will always have a zero offset, so this will shave a byte off of very small packed messages.
-
- 28 Mar, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 18 Mar, 2013 1 commit
-
-
Kenton Varda authored
-
- 16 Mar, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
Rename the 'Message' interfaces to Arena and make them internal. Make a new, intuitive 'Message' interface for creating / reading messages.
-
- 13 Mar, 2013 1 commit
-
-
Kenton Varda authored
-
- 07 Mar, 2013 1 commit
-
-
Kenton Varda authored
-
- 05 Mar, 2013 1 commit
-
-
Kenton Varda authored
-