Skip to content

run xi-core in seperate thread #6

@patrickisgreene

Description

@patrickisgreene

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 a send and recv method for each.

Pros:

  • Doesn't require the user to have the xi-core executable.
  • xi-core is relitivily easily updated(recompiled).
  • would allow the user to send serde_json::Values directly
  • you could switch between them easily(only at compile time).

Cons:

  • xi-errors will get sent to stderr instead, they could be collected but thats up to the user.
  • would break with xi updates unless pinned to a particular version.
  • probably more i'm not think of.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions