- 04 Apr, 2015 1 commit
-
-
Kenton Varda authored
Add thisCap() method to capability servers which returns a capability to itself. Remove CapabilityServerSet's weak pointers since this supersedes them.
-
- 22 Mar, 2015 1 commit
-
-
Kenton Varda authored
Provide a way to get the ClientHook out of a Capability::Client, needed by third-party RPC/storage/etc systems.
-
- 15 Mar, 2015 1 commit
-
-
Kenton Varda authored
Implement CapabilityServerSet which provides a way to unwrap loopback capabilities to get the underlying server object, and also implements weak references.
-
- 22 Nov, 2014 2 commits
-
-
Kenton Varda authored
This prevents the compiler from reporting warnings in these headers while compiling application code. Hopefully this will stem the never-ending stream of complaints from people who enable pedantic warnings.
-
Kenton Varda authored
-
- 09 Nov, 2014 1 commit
-
-
Kenton Varda authored
-
- 26 Oct, 2014 1 commit
-
-
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.
-
- 24 Oct, 2014 1 commit
-
-
Kenton Varda authored
-
- 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.
-
- 08 Jul, 2014 1 commit
-
-
Kenton Varda authored
-
- 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 May, 2014 1 commit
-
-
Kenton Varda authored
-
- 11 Feb, 2014 1 commit
-
-
Kenton Varda authored
Cleaner disconnect handling. Better fix for issue #71, and also simplifies the interface and improves robustness.
-
- 22 Jan, 2014 1 commit
-
-
David Renshaw authored
-
- 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.
-
- 10 Dec, 2013 1 commit
-
-
Kenton Varda authored
Lift requirement that releaseParams() be called before tailCall() or allowCancellation() -- this is no longer necessary given the protocol simplification that allowed cap descriptors to be interpreted immediately upon receipt.
-
- 06 Dec, 2013 2 commits
-
-
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.
-
Kenton Varda authored
-
- 05 Dec, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 28 Nov, 2013 1 commit
-
-
Kenton Varda authored
Revamp concurrency model, part 1: EventLoop no longer allows cross-thread event queuing, simplifying many things. Capability clients are no longer thread-safe, so they don't have to be so const. In the future, explicit ways to communicate between threads will be re-added, but threads will be treated more like separate vats that just happen to have a particularly fat pipe. Upcoming: Remove mutexes.
-
- 26 Nov, 2013 2 commits
-
-
Kenton Varda authored
Implement opt-in cancellation for local calls. (Previously, cancellation would happen whether or not the callee had opted in.)
-
Kenton Varda authored
-
- 25 Nov, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 23 Nov, 2013 1 commit
-
-
Kenton Varda authored
Tail calls half-implemented, but I think it's time to delete all the cancellation code before continuing because it will simplify things.
-
- 22 Nov, 2013 1 commit
-
-
Kenton Varda authored
-
- 21 Nov, 2013 1 commit
-
-
Kenton Varda authored
-
- 12 Nov, 2013 1 commit
-
-
Kenton Varda authored
Spin off libraries kj-async and capnp-rpc, so that people who don't want them can avoid their large footprint.
-
- 25 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 23 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 22 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 16 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 15 Oct, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 12 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 11 Oct, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
Refactor capability code using fork. Still too much refcounting, though. Maybe this calls for a different design for pipelining...
-
- 08 Oct, 2013 1 commit
-
-
Kenton Varda authored
-
- 04 Oct, 2013 1 commit
-
-
Kenton Varda authored
-