1. 18 Jun, 2019 1 commit
    • Kenton Varda's avatar
      Introduce new 'stream' keyword. · bd6d75ba
      Kenton Varda authored
      This can be used on a method to indicate that it is used for "streaming", like:
      
          write @0 (bytes :Data) -> stream;
      
      A "streaming" method is one which is expected to be called many times to transmit an ordered stream of items. For best throughput, it is often necessary to make multiple overlapping calls, so as not to wait for a round trip for every item. However, to avoid excess buffering, it may be necessary to apply backpressure by having the client limit the total number of overlapping calls. This logic is difficult to get right at the application level, so making it a language feature gives us the opportunity to implement it in the RPC layer.
      
      We can, however, do it in a way that is backwards-compatible with implementations that don't support it. The above declaration is equivalent to:
      
          write @0 (bytes :Data) -> import "/capnp/stream.capnp".StreamResult;
      
      RPC implementations that don't explicitly support streaming can thus instead leave it up to the application to handle.
      bd6d75ba
  2. 05 Aug, 2018 1 commit
  3. 27 Jul, 2017 1 commit
  4. 05 Jun, 2017 2 commits
  5. 23 May, 2017 1 commit
  6. 19 May, 2017 1 commit
  7. 25 Apr, 2017 1 commit
  8. 12 Dec, 2016 1 commit
    • Kenton Varda's avatar
      Support AnyPointer constant values. · 9046dc1a
      Kenton Varda authored
      The trick here is that you must specify the value as a separate constant with a defined type. Then, you can reference that constant where an AnyPointer is expected.
      
      Eventually we should maybe support some sort of inline syntax that specifies a type explicitly...
      9046dc1a
  9. 02 Oct, 2016 1 commit
  10. 05 Sep, 2016 1 commit
  11. 08 Aug, 2016 1 commit
  12. 23 Jun, 2016 1 commit
  13. 08 Apr, 2016 1 commit
  14. 06 Apr, 2016 2 commits
  15. 30 Mar, 2016 1 commit
  16. 29 Jul, 2015 1 commit
  17. 23 Jun, 2015 1 commit
    • Kenton Varda's avatar
      Fixes #219, with POSSIBLE (but obscure) WIRE FORMAT BREAKAGE. · db7ca960
      Kenton Varda authored
      Unfortunately, the layout algorithm had a bug which caused incorrect layout when declaring a union whose lowest-ordinal field was of type Void and nested in an inner union. That is:
      
          union {
            a :union {
              b @0 :Void
              ...
            }
            ...
          }
      
      In this case, all the fields in the struct after the Void field -- including both unions' discriminants -- would end up misplaced. Although they did not end up overlapping (and therefore the incorrect layout "worked"), the result broke schema evolution rules around "retroactive unionization".
      
      Unfortunately, we must break compatibility with any protocol that happened to contain the above pattern. Luckily, it's a fairly obscure case. Unluckily, Cap'n Proto's own schema format contains such a pattern. Luckily, the use of this pattern was introduced in v0.6.x and therefore has not been in any release build so far.
      db7ca960
  18. 15 Mar, 2015 1 commit
  19. 29 Jan, 2015 2 commits
  20. 29 Dec, 2014 1 commit
  21. 29 Nov, 2014 1 commit
  22. 26 Oct, 2014 1 commit
  23. 25 Oct, 2014 1 commit
  24. 24 Oct, 2014 1 commit
  25. 23 Oct, 2014 1 commit
  26. 20 Oct, 2014 3 commits
  27. 17 Oct, 2014 2 commits
  28. 11 Oct, 2014 1 commit
  29. 29 Jun, 2014 1 commit
  30. 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
  31. 02 Jan, 2014 1 commit
  32. 22 Dec, 2013 1 commit
  33. 05 Dec, 2013 1 commit
  34. 30 Nov, 2013 1 commit