Giter VIP home page Giter VIP logo

Comments (7)

dwrensha avatar dwrensha commented on June 16, 2024 5

I agree that we should migrate to futures-rs and tokio-core. I've made some progress in that direction with the capnp-futures-rs crate, but there is still a lot to do. Please keep me posted on any progress you make, and feel free to ask me any questions.

from capnproto-rust.

dwrensha avatar dwrensha commented on June 16, 2024 2

This is done! See https://dwrensha.github.io/capnproto-rust/2017/01/04/rpc-futures.html.

@salpalvv: I've added some more documentation to the readme at https://github.com/dwrensha/capnp-rpc-rust. Perhaps we should also have fully-working "hello" example in the /examples/ directory.

from capnproto-rust.

gabomgp avatar gabomgp commented on June 16, 2024

Well, i'm studying the code, and the rpc protocol specification, read the code of the new and old create, and i'm lost yet. And I have one question:

  1. How you visualize the migration, ¿what's the next file you could migrate?, because i don't know where to start really

from capnproto-rust.

gabomgp avatar gabomgp commented on June 16, 2024

Well, the light is coming to me. My attemp is starting here: https://github.com/gabomgp/capnp-rpc-tokio. There is ver little yet, but i hope i can help.

from capnproto-rust.

dwrensha avatar dwrensha commented on June 16, 2024
  1. How you visualize the migration, ¿what's the next file you could migrate?

I would start by updating this declaration in the capnp crate to be

pub type Promise<T,E> = Box<::futures::Future<Item=T,Error=E>>;

I would then update the capnpc crate so that code generation still produces code that typechecks. Then I would start on capnp-rpc.

from capnproto-rust.

dwrensha avatar dwrensha commented on June 16, 2024

I've started working on this: https://github.com/dwrensha/capnproto-rust/tree/futures, https://github.com/dwrensha/capnpc-rust/tree/futures, https://github.com/dwrensha/capnp-rpc-rust/tree/futures

from capnproto-rust.

salpalvv avatar salpalvv commented on June 16, 2024

While I eagerly await the futures implementation, I went ahead and dove into capnproto-rust with the gj dep because I plan to use capnproto-rpc for my project.

One issue that I had was the lack of very simple examples. I had to go to this blog post to find a simple hello world example.

I would like to suggest that when you have the futures implementation that you have an extremely simple, contrived example (hello world is always great) so even I may follow along. Futures are very complex as is and I imagine having to follow along with a pubsub and calculator examples may prove difficult.

from capnproto-rust.

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.