cannam@133
|
1 ---
|
cannam@133
|
2 layout: page
|
cannam@133
|
3 title: Road Map
|
cannam@133
|
4 ---
|
cannam@133
|
5
|
cannam@133
|
6 # Road Map
|
cannam@133
|
7
|
cannam@133
|
8 Here's what's (hopefully) in store for future versions of Cap'n Proto! Of course, everything here
|
cannam@133
|
9 is subject to change.
|
cannam@133
|
10
|
cannam@133
|
11 ## Near-ish future
|
cannam@133
|
12
|
cannam@133
|
13 Provisionally, these are probably the things that will be worked on in the next few releases of Cap'n Proto and its C++ reference implementation.
|
cannam@133
|
14
|
cannam@133
|
15 * **Shared memory RPC:** Zero-copy inter-process communication.
|
cannam@133
|
16 * **Three-way introductions (level 3 RPC):** Allow RPC interactions between more than two parties,
|
cannam@133
|
17 with new connections formed automatically as needed.
|
cannam@133
|
18 * **Fiber-based concurrency:** The C++ runtime's event loop concurrency model will be augmented
|
cannam@133
|
19 with support for fibers, which are like threads except that context switches happen only at
|
cannam@133
|
20 well-defined points (thus avoiding the need for mutex locking). Fibers essentially provide
|
cannam@133
|
21 syntax sugar on top of the event loop model.
|
cannam@133
|
22 * **Dynamic schema transmission:** Allow e.g. Python applications to obtain schemas directly from
|
cannam@133
|
23 the RPC server so that they need not have a local copy. Great for interactive debugging.
|
cannam@133
|
24 * **Improved MSVC support:** Once MSVC improves its support for C++11 language features, we will
|
cannam@133
|
25 support Cap'n Proto's reflection and RPC APIs in MSVC. (Currently, only core serialization is
|
cannam@133
|
26 supported.)
|
cannam@133
|
27 * **Implement encapsulated types:** This will allow you to create a hand-written wrapper around a
|
cannam@133
|
28 type which will be automatically injected into the generated code, so that you can provide a
|
cannam@133
|
29 nicer interface which encapsulates the type's inner state.
|
cannam@133
|
30 * **Implement maps:** Based on encapsulated and parameterized types.
|
cannam@133
|
31
|
cannam@133
|
32 ## Before version 1.0
|
cannam@133
|
33
|
cannam@133
|
34 These things absolutely must happen before any 1.0 release. Note that it's not yet decided when
|
cannam@133
|
35 a 1.0 release would happen nor how many 0.x releases might precede it.
|
cannam@133
|
36
|
cannam@133
|
37 * **Expand test coverage:** There are lots of tests now, but some important scenarios, such as
|
cannam@133
|
38 handling invalid of invalid input, need better testing.
|
cannam@133
|
39 * **Performance review:** Performance is already very good compared to competitors, but at some
|
cannam@133
|
40 point we need to break out the profiler and really hone down on the details.
|
cannam@133
|
41 * **Security review:** We need a careful security review to make sure malicious input cannot
|
cannam@133
|
42 crash an application or corrupt memory.
|
cannam@133
|
43
|
cannam@133
|
44 ## Wish List
|
cannam@133
|
45
|
cannam@133
|
46 These are features we'd like to implement some day but haven't decided yet how to prioritize.
|
cannam@133
|
47 Some of these features could make their way into Cap'n Proto before version 1.0. Others will
|
cannam@133
|
48 certainly come after. If you have opinions on what you'd like to see next,
|
cannam@133
|
49 [tell us](https://groups.google.com/group/capnproto)!
|
cannam@133
|
50
|
cannam@133
|
51 ### Language Features
|
cannam@133
|
52
|
cannam@133
|
53 * **Inline lists:** Lets you define a field composed of a fixed number of elements of the same
|
cannam@133
|
54 type, and have those elements be stored directly within the struct rather than as a separate
|
cannam@133
|
55 object. Useful mainly to avoid the need to validate list lengths when the length should always
|
cannam@133
|
56 be the same. Also saves a pointer's worth of space.
|
cannam@133
|
57 * **Type aliases:** Ability to define a type which is just an alias of some other type, and
|
cannam@133
|
58 have it show up as e.g. a `typedef` in languages that support that. (The current `using`
|
cannam@133
|
59 keyword is intended only for local use and does not affect code generation.)
|
cannam@133
|
60 * **Doc comments:** Harvest doc comments from schema files and use them to generate doc comments
|
cannam@133
|
61 on generated code. Also make them available in the compiled schema so that a documentation
|
cannam@133
|
62 generator could use them.
|
cannam@133
|
63
|
cannam@133
|
64 ### C++ API Features
|
cannam@133
|
65
|
cannam@133
|
66 * **JSON codec:** API for transcoding to JSON format, useful for interacting with legacy
|
cannam@133
|
67 infrastructure.
|
cannam@133
|
68 * **Snappy integration:** Integrate [Snappy compression](https://code.google.com/p/snappy/) into
|
cannam@133
|
69 the API to further reduce bandwidth needs with minimal CPU overhead.
|
cannam@133
|
70 * **Annotations API:** For each annotation definition, generate code which assists in extracting
|
cannam@133
|
71 that annotation from schema objects in a type-safe way.
|
cannam@133
|
72
|
cannam@133
|
73 ### Storage
|
cannam@133
|
74
|
cannam@133
|
75 * **ORM interface:** Define a standard interface for capabilities that represent remotely-stored
|
cannam@133
|
76 objects, with get, put, publish, and subscribe methods. Ideally, parameterize this interface
|
cannam@133
|
77 on the stored type.
|
cannam@133
|
78 * **mmap-friendly mutable storage format:** Define a standard storage format that is friendly
|
cannam@133
|
79 to mmap-based use while allowing modification. (With the current serialization format, mmap
|
cannam@133
|
80 is only useful for read-only structures.) Possibly based on the ORM interface, updates only
|
cannam@133
|
81 possible at the granularity of a whole ORM entry.
|
cannam@133
|
82
|
cannam@133
|
83 ### Tools
|
cannam@133
|
84
|
cannam@133
|
85 * **Schema compatibility checker:** Add a `capnp` command which, given two schemas, verifies
|
cannam@133
|
86 that the latter is a compatible upgrade from the former. This could be used as a git hook
|
cannam@133
|
87 to prevent submission of schema changes that would break wire compatibility.
|
cannam@133
|
88 * **RPC debugger:** Add a `capnp` command which sends an RPC from the command line and prints
|
cannam@133
|
89 the result. Useful for debugging RPC servers.
|
cannam@133
|
90
|
cannam@133
|
91 ### Infrastructure
|
cannam@133
|
92
|
cannam@133
|
93 Note: These are very large projects.
|
cannam@133
|
94
|
cannam@133
|
95 * **JSON-HTTP proxy:** Develop a web server which can expose a Cap'n Proto RPC backend as a
|
cannam@133
|
96 JSON-over-HTTP protocol.
|
cannam@133
|
97 * **Database:** A fast storage database based on Cap'n Proto which implements the ORM interface
|
cannam@133
|
98 on top of the mmap storage format.
|