1. 15 Aug, 2018 1 commit
  2. 11 Jan, 2018 1 commit
    • Kenton Varda's avatar
      Replace all include guards with #pragma once. · 677a52ab
      Kenton Varda authored
      @kloepper pointed out a while back that every compiler you've ever heard of supports this. Plus, it's more concise, it's not prone to copy-paste errors, and it looks nicer.
      
      At the time I wanted to remain consistent and I didn't feel like spending the time to update all my existing code. But, every time I've added a new header since I've cursed the include guard, so I finally broke down and changed it.
      677a52ab
  3. 30 Mar, 2017 2 commits
    • Kenton Varda's avatar
      Remame Guarded -> Bounded. · 168cb630
      Kenton Varda authored
      168cb630
    • Kenton Varda's avatar
      WIP use bounded types -- all tests passing. · 093fac4a
      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.
      093fac4a
  4. 24 Jan, 2017 3 commits
  5. 15 Nov, 2016 1 commit
  6. 02 Apr, 2016 1 commit
  7. 29 Jan, 2015 1 commit
  8. 30 Dec, 2014 1 commit
  9. 24 Nov, 2014 1 commit
  10. 22 Nov, 2014 1 commit
  11. 01 Nov, 2014 1 commit
  12. 27 Oct, 2014 1 commit
    • Philip Quinn's avatar
      Fix `CAPNP_LITE` build. · 9bc9e6be
      Philip Quinn authored
      The changes to 'capnp/generated-header-support.h' in [b469079d] need to
      be applied to both sides of the `#if CAPNP_LITE` conditional.
      9bc9e6be
  13. 26 Oct, 2014 3 commits
    • Kenton Varda's avatar
    • Philip Quinn's avatar
      Remove ineffectual 'const' qualifiers. · 7ac277bb
      Philip Quinn authored
      7ac277bb
    • 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
  14. 25 Oct, 2014 1 commit
  15. 24 Oct, 2014 1 commit
  16. 23 Oct, 2014 1 commit
  17. 20 Oct, 2014 3 commits
    • 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
    • Kenton Varda's avatar
      Fix build for C++11. · 4692a669
      Kenton Varda authored
      1) Apparently mixing member defaults and initializer lists is a C++14 thing.
      2) My test script compiles with -Werror which errors out on calls to now-deprecated getDependency().
      4692a669
    • Kenton Varda's avatar
      Delete some obsolete TODOs. · 122e0619
      Kenton Varda authored
      122e0619
  18. 17 Oct, 2014 1 commit
  19. 20 Jun, 2014 1 commit
    • Kenton Varda's avatar
      Change license to MIT. · 889204fe
      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
      889204fe
  20. 05 Dec, 2013 2 commits
  21. 22 Oct, 2013 1 commit
  22. 16 Oct, 2013 1 commit
  23. 04 Oct, 2013 1 commit
  24. 24 Sep, 2013 2 commits
  25. 23 Sep, 2013 1 commit
  26. 02 Sep, 2013 1 commit
  27. 25 Aug, 2013 1 commit
  28. 21 Aug, 2013 2 commits
  29. 20 Aug, 2013 1 commit
  30. 19 Aug, 2013 1 commit