capnproto
capnproto copied to clipboard
Cap'n Proto serialization/RPC system - core tools and C++ library
When creating a unix socket with ``` ioContext.provider->getNetwork().parseAddress("unix:path/to/socket").then([](kj::Own&& addr) { ... addr->listen(); ... }); ``` the unix socket is created with default permissions. On most systems, umask is `022`, so...
The autotools build generates libraries with sonames like `libcapnp-0.9.0.so`, but the cmake build produces `libcapnp.so.0.9.0`. cmake at least includes the full version number, which should avoid the usual ABI compatibility...
https://github.com/capnproto/capnproto/blob/master/c%2B%2B/src/capnp/compiler/node-translator.c%2B%2B#L2398 ``` /ekam-provider/canonical/capnp/compiler/node-translator.c++: In member function ‘capnp::Orphan capnp::compiler::NodeTranslator::compileAnnotationApplications(capnp::List::Reader, kj::StringPtr)’: /ekam-provider/canonical/capnp/compiler/node-translator.c++:2398:14: warning: ‘*(short unsigned int*)((char*)&kind + offsetof(kj::_::NullableValue,kj::_::NullableValue: :))’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2398 | } else if...
Currently, our release tests automatically run valgrind to detect memory errors, but there are other analyzers we could be using too. Clang in particular offers the following options: * [Static...
TLDR: I think it's probably a good idea to restrict the maximum write size issued on MacOS to 2GB & on Windows to 4GB. Large writes seem to be broken...
Cap'n Proto version 0.9-dev ``` @0x9c339843a5922cf6 struct Date { year @0 :Int16; month @1 :UInt8; day @2 :UInt8; } ``` 
We wrote a POD generator that converts capnproto schema descriptions into c++ PODs, with pretty full featured support for optionals, variants etc. We would like to contribute this back to...
Hello! The documentation states: > Currently, Cap’n Proto is not well-suited for _writing_ via `mmap()`, only reading, but this is only because we have not yet invented a mutable segment...
- [ ] Debug Macros - [x] `OneOf` (#1141) - [x] `Maybe` (#1141) - [x] `Own` (#1141) - [ ] Reference Counter Pointers - [ ] `defer` - [ ]...
06e471e introduced a compilation error with windows cygwin/msys gcc ``` capnproto/c++/src/kj/miniposix.c++:39:16: error: ‘_XOPEN_IOV_MAX’ was not declared in this scope 39 | return _XOPEN_IOV_MAX; | ^~~~~~~~~~~~~~ ``` (from [surelog compilation error...