It includes a mostly complete port of the Cap'n Proto test suite with over 100 test cases passing.
There are a number of open issues, including the following:
This isn't very optimized yet and might be terribly slow.
Currently you need to use Google Closure Compiler to link your code.
Functions are distributed over nested namespaces, which makes client code (pre-link) somewhat verbose.
Functions don't check their argument types and are mostly lacking Google Closure parameter annotations, which means it's pretty easy to shoot yourself in the foot.
Generated code is overly verbose and in places uses inconsistent naming.
Some of the code is a bit messy and redundant, in particular primitive getter/setters and capnp_list.js.
The build isn't very straighforward at the moment. You will need:
- The capnproto source code, to be safe checkout the correct version (798ff87b1b7e0a2da96355a34fa6e0aa10aaae85)
- A corresponding capnproto installation or build tree
- Google Closure Compiler
- Google Closure Library
You need to edit the following files and adjust paths manually:
Then try this:
All tests pass in current versions of Chrome (31), Firefox (25) and Safari (7). Other browsers have not been tested yet.