-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dbus-codegen: Option to generate async code #166
Comments
So I pushed a commit earlier today for dbus-futures, so begin by checking git master :-) Although that is the initial client-side work only, not server part. What I'm thinking now is deprecate dbus-tokio when futures 0.3 / async / await / etc becomes stable, and have dbus-futures support Tokio as an event loop backend. |
Hehe, sure. :) Thanks.
Right and geoclue needs the server side.
Sounds good.
I'm neither sure about my own timeline on this, nor that of future 0.3/async/await becoming stable. :( What I do know is that I plan to start the basic implementation (dummy one at least) before summer at latest, so I know how the new code architecture would be like and hence can guide the student(s) during the GSoC. |
I think it kind of depends on how future proof you want your code to be as well. It seems like async/await/futures 0.3 is becoming stable during 2019, although you don't know for sure until it's there. But if it's semi-stable, then you can work with the nightly compiler until it's stable. |
Right. I wouldn't mind changing things in my experimental branch, just not merge it until it depends on more stable API. However, I could also go with sync dbus at first and convert to async when the time is right. |
In case anyone is interested, I hacked up a futures 0.1 codegen fork over the weekend: The type signature returns In action here: |
@jmagnuson Very interesting! It only covers client side code though, and I think @zeenix was more interested in the server side of it, but still.
Edit: I wrote an answer to this but it was wrong. Anything that Derefs into an |
My bad, missed the part about it being server-specific.
Yep, you're right. I think I had |
So, to what degree are we interested in merging @jmagnuson s branch? There are indeed some non-trivial issues to resolve first, and my time is limited w r t working on that myself, at least currently. My long term plan is to write something for Futures 0.3, including a new "tree" replacement, so I'd rather spend my time on that.
Well, |
At least I'm not in a huge hurry atm. As agreed before, I'll first use the synch code and convert it to async later once we've the support for that. |
dbus-codgen
should be able to generate async code that makes use ofdbus-tokio
crate. I plan to work on this (or get a GSoC student to) as requirement for https://gitlab.freedesktop.org/geoclue/geoclue/issues/103 but adding it here already in case someone wants to beat me to it. :)The text was updated successfully, but these errors were encountered: