- 27 Jan, 2015 1 commit
-
-
Kenton Varda authored
-
- 12 Dec, 2014 1 commit
-
-
Kenton Varda authored
-
- 09 Nov, 2014 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 01 Nov, 2014 1 commit
-
-
Philip Quinn authored
This removes all instances of the zero-length brand dependencies arrays (04a9c84d).
-
- 26 Oct, 2014 2 commits
-
-
Kenton Varda authored
Extended discussion: https://groups.google.com/d/msg/capnproto/lRlWBOglQv4/8-Qo96AcZQIJ
-
Kenton Varda authored
To use, pass --disable-reflection to the configure script. This produces a smaller runtime library. However, using it for this purpose is not recommended. The main purpose of lite mode is to define a subset of Cap'n Proto which might plausibly compile under MSVC. MSVC still lacks full support for constexpr and expression SFINAE; luckily, most of our use of these things relates to reflection, and not all users need reflection. Cap'n Proto lite mode inherits its name from Protocol Buffers' lite mode. However, there are some key differences: - Protobuf generated code included global constructors related to registering descriptors and extensions. For many people, this was the main reason to use lite mode: to get rid of these global constructors and achieve faster startup times. Cap'n Proto, on the other hand, never had global constructors in the first place. - Schemas are actually still available in lite mode, though only in their raw (Cap'n Proto structure) form. Only the schema API (which wraps the raw schemas in a more convenient interface) and reflection API (which offers a convenient way to use the schemas) are unavailable. - Lite mode is enabled in an application by defining CAPNP_LITE rather than by specifying an annotation in the schema file. This better-reflects real-world usage patterns, where you typically want to enable lite mode application-wide anyway. - We do not build the lite mode library by default. You must request it by passing --disable-reflection to the configure script. Before you can do that, you must have a prebuilt Cap'n Proto compiler binary available, since the compiler can't be built without reflection. - Relatedly, the lite mode library is built with the same name as the full library. This library is not intended to be installed. If anything it should be statically linked. But, mostly the option only exists on non-MSVC platform to give us a way to test that we haven't broken lite mode.
-
- 25 Oct, 2014 1 commit
-
-
Kenton Varda authored
See changes to test.capnp for example. Currently only supported through generated code, not in the dynamic API. Not exactly sure how to expose this in the dynamic API...
-
- 24 Oct, 2014 1 commit
-
-
Kenton Varda authored
-
- 23 Oct, 2014 1 commit
-
-
Kenton Varda authored
Note that embedded schema structures in generated code are still incorrect.
-
- 20 Oct, 2014 1 commit
-
-
Kenton Varda authored
That is to say, whereas previously we would extend capnp::typeId<T>() to a new type by declaring a specialization of it for that type, now we instead have the type contain a nested class called _capnpPrivate which contains a `typeId` constant. This is necessary because it is impossible to specialize a template for a type which is itself nested inside a template type. E.g. it's impossible to write a specialization `template <typename T> typeId<Foo<T>::Bar>()`; C++ simply doesn't support this. But with generics, Cap'n Proto will allow types to be nested inside templates, so we need this to work.
-
- 29 Jun, 2014 1 commit
-
-
Jason Choy authored
-
- 10 Dec, 2013 1 commit
-
-
Kenton Varda authored
-
- 07 Dec, 2013 1 commit
-
-
Kenton Varda authored
-
- 06 Dec, 2013 1 commit
-
-
Kenton Varda authored
Extend totalSizeInWords() to also return a count of capabilities, which helps when a separate capability table needs to be allocated as well. Use this in the RPC system.
-
- 05 Dec, 2013 1 commit
-
-
Kenton Varda authored
-
- 14 Nov, 2013 1 commit
-
-
Kenton Varda authored
Remove 'has' for primitive fields. Dynamic version always returns true. This also means that primitives are always included in text format, even if they are default-valued.
-
- 15 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 12 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 24 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.
-
- 31 Aug, 2013 1 commit
-
-
Kenton Varda authored
-
- 29 Aug, 2013 1 commit
-
-
Kenton Varda authored
Delete default construcrtor on builders, so that people don't incorrectly try to just declare a Builder on the stack and then start setting its fields. Instead, a Builder can be explicitly assigned to nullptr, which makes it clearer that it isn't safe to use.
-
- 23 Aug, 2013 1 commit
-
-
Kenton Varda authored
-
- 22 Aug, 2013 3 commits
-
-
Kenton Varda authored
Require a colon before 'group' or 'union' except for unnamed unions as well as the legacy case of a named union with an ordinal (where the colon is optional).
-
Kenton Varda authored
New method isFoo() exists for union fields only and returns true if foo is the active union field.
-
Kenton Varda authored
-
- 21 Aug, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 16 Aug, 2013 1 commit
-
-
Kenton Varda authored
-
- 09 Aug, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
Switch to the new compiler. All tests pass\! Need to submit bootstrap copies of the generated code used by the compiler itself. These bootstrap copies are still built by the old compiler at the moment.
-