Code Monkey home page Code Monkey logo

Comments (4)

talex5 avatar talex5 commented on June 7, 2024

Yes, it uses the original (simpler) bootstrapping scheme. I didn't know anyone was using the newer one (I thought it might have been abandoned).

I think you probably just need to use restorer instead of bootstrap in the Python server.

Possibly the OCaml code should skip setting the ID if it's the empty string so it can support either scheme.

Schema.BuilderOps.write_string (Bootstrap.deprecated_object_id_get boot) object_id;

from capnp-rpc.

LasseBlaauwbroek avatar LasseBlaauwbroek commented on June 7, 2024

Thanks for the quick reply. Unfortunately, it looks like the workaround you suggested will not work, because the restorer named argument was removed from the python implementation in 2019 (even though the documentation still mentions it): capnproto/pycapnp@f6dd08d#diff-17d3a2bf99cbe0f9aeebce3362e3e7c5ce9a732f43c205cee6c00fee54a09790L2417

Do you have any ideas for other workarounds? Thanks.

from capnp-rpc.

talex5 avatar talex5 commented on June 7, 2024

Did the other change I suggested work? i.e. don't set the object_id if it's the empty string.

from capnp-rpc.

LasseBlaauwbroek avatar LasseBlaauwbroek commented on June 7, 2024

Ah sorry, I thought that was more of a meta-comment, not something for me to try. I tried it now, and I can indeed confirm it works. See PR #224.

from capnp-rpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.