Questions tagged [capnproto]

Cap'n Proto is a zero-copy data interchange format described by a schema language not unlike Protobuf, and an associated capability-based RPC system.

Cap'n Proto is a zero-copy serialization format described by a schema language not unlike Protobuf and an associated capability-based RPC system.

99 questions
0
votes
2 answers

C++ program requiring libsnappy

I am trying to make and build a C++ program (available here https://github.com/mortehu/text-classifier) which requires libsnappy and Capn Proto. I believe I am having an issue with libsnappy as after running the following commands: configure make…
Liam Flynn
  • 2,009
  • 3
  • 17
  • 16
0
votes
1 answer

Linking C++ libraries for Capn Pronto and Snappy

I am trying to compile a c++ project, and it requires capn pronto and snappy. I have installed these using: brew install capnp brew install snappy But I think I now need to link these libraries as I am getting the following error when I attempt to…
Liam Flynn
  • 2,009
  • 3
  • 17
  • 16
0
votes
1 answer

what is a good way to integrate 3rd party asynchronous APIs with Cap'n Proto RPC?

I have a Linux server which processes Cap'n Proto RPC requests. Some of those requests need to forward data in the request to another server running, in this case, a Kafka broker. The librdkafka and Cap'n Proto KJ libraries can both use poll() so i…
James Fremen
  • 2,170
  • 2
  • 20
  • 29
0
votes
1 answer

Issue with python list for complex types

Below is a code snippet in Python that stores the IP prefixes in a radix tree and then associates IP and ASNs in a dictionary, if the IP belongs to a prefix. I would like to find out all different ASNs for a particular prefix. More details are…
Abhishek Balaji R
  • 665
  • 10
  • 25
0
votes
1 answer

Anybody used capnproto js (capnp-js) library?

Is there anybody using (or plan to use) capnp-js-plugin and capnp-js modules for nodejs? I cloned these repos and ran the tests, but they fail. Also when I just install capnp-js (via npm), the generated js code has syntax errors even for a simple…
Adam
  • 149
  • 7
0
votes
1 answer

Cap'n Proto terminate called after throwing an instance of 'kj::ExceptionImpl'

When calling Cap'n Proto's writeMessageToFd(pipe, message); I get this error: terminate called after throwing an instance of 'kj::ExceptionImpl' what(): src/kj/io.c++:323: failed: ::writev(fd, current, iov.end() - current): Bad file descriptor;…
BAR
  • 15,909
  • 27
  • 97
  • 185
0
votes
1 answer

error while loading shared libraries: libcapnp-0.5.3.so

I think this is a generic problem not specifically related to Cap'n Proto. My project's build succeeds but on run I get: error while loading shared libraries: libcapnp-0.5.3.so: cannot open shared object file: No such file or directory Maybe I am…
BAR
  • 15,909
  • 27
  • 97
  • 185
-1
votes
2 answers

Is there an off the shelf binary format that allows string caching

I am investigating migrating of a highly customized and efficient binary format to one of the available binary formats. The data is stored on some low powered mobile among other places, so performance is important requirement. Advantage of the…
MichalMa
  • 1,230
  • 6
  • 14
-3
votes
1 answer

capnp - how to write plain serialized message to a file

I have build the example of the AddressBook from Example Usage. It worked as expected I serialized it in the packed format writePackedMessageToFd(fd, message), but when I tried to serialize it in the 'plain' format writeMessageToFd(fd, message)…
devopsfool
  • 25
  • 4
1 2 3 4 5 6
7