-
Notifications
You must be signed in to change notification settings - Fork 8
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
run xi-core in seperate thread #6
Comments
Hi @ByteBuddha, I'm sorry last few days were crazy at work, and I have a long flight today, so I don't think I'll be able to really look at this before monday, I hope you don't mind. |
I'm actually going to close this. I think we should wait on this anyway unti xi-editor/xi-editor#439 |
FWIW, Tau has used Xi as a lib for some time, simply sending the RPCs to another thread, like so: https://gitlab.gnome.org/World/Tau/blob/bb377b7fb8909c494cbe970da099a61ec7d47a78/src/gxi-peer/src/xi_thread.rs . I've talked with xi-editor upstream about making Xi easier to use as a system instance, but got the following response (I had suggested adding
So I'm reopening this and will look into doing this in a bit (although I'm rather busy right now :/) |
Just wanted to mention: xi-win is doing the same thing |
Ah yes, Tau (gxi) did something similiar, I guess I might go for something similiar with xrl, but I'm not quite sure how to do it in an async manner (maybe future's channels can do that?). |
So, the current status on this: I first tried implementing this into xi-editor by enabling it to use a Sender/Receiver pair instead of something that implements Read/Write, but that is a huge change in xi, which potentially breaks plugins. |
Id actually like to make xrl::Client a trait and then create an
Executable
&Proccess
struct That could be used instead of Client. As a bonus we could implement most of the logic in the trait definition and only need to implement asend
andrecv
method for each.Pros:
Cons:
I just wanted to get your opinion before continuing, i've been using xi-core as a library for a few months now and it's made dealing with xi-core(while it's constantly changing) a leisurely breeze.
The text was updated successfully, but these errors were encountered: