1. 24 Jan, 2017 1 commit
  2. 06 Apr, 2016 1 commit
  3. 23 Jun, 2015 1 commit
  4. 29 Jan, 2015 1 commit
  5. 30 Nov, 2014 1 commit
  6. 29 Nov, 2014 1 commit
    • Kenton Varda's avatar
      Simplify exceptions. Eliminate Durability. Rename Nature to Type and simplify it. · 4ee25e43
      Kenton Varda authored
      Distinguishing between "local bugs" and "preconditions" was proving difficult in practice, because a precondition failure in one function may very well indicate a bug in a calling function, but the exception may be thrown through that function, thus when caught the classification is nonsensical. The distinction also was not as useful as imagined. So, I eliminated this distinction.
      4ee25e43
  7. 24 Nov, 2014 1 commit
  8. 06 Nov, 2014 1 commit
  9. 04 Nov, 2014 1 commit
  10. 01 Nov, 2014 1 commit
  11. 31 Oct, 2014 1 commit
  12. 26 Oct, 2014 2 commits
    • Kenton Varda's avatar
    • Kenton Varda's avatar
      Implement "lite mode", where reflection is disabled. · c772a700
      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.
      c772a700
  13. 24 Oct, 2014 1 commit
  14. 23 Oct, 2014 1 commit
  15. 20 Oct, 2014 1 commit
    • Kenton Varda's avatar
      Generics: Tag generated types using members rather than template specialization. · 490acec8
      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.
      490acec8
  16. 17 Oct, 2014 1 commit
  17. 11 Oct, 2014 1 commit
  18. 11 Sep, 2014 1 commit
  19. 05 May, 2014 1 commit
  20. 10 Feb, 2014 1 commit
  21. 22 Dec, 2013 1 commit
  22. 10 Dec, 2013 1 commit
  23. 06 Dec, 2013 1 commit
  24. 23 Nov, 2013 1 commit
  25. 22 Nov, 2013 1 commit
  26. 21 Nov, 2013 1 commit
  27. 18 Nov, 2013 1 commit
  28. 14 Nov, 2013 1 commit
  29. 08 Nov, 2013 1 commit
  30. 31 Oct, 2013 1 commit