Skip to content
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

Rust Bindings #1

Open
SchrodingerZhu opened this issue Apr 21, 2021 · 1 comment
Open

Rust Bindings #1

SchrodingerZhu opened this issue Apr 21, 2021 · 1 comment

Comments

@SchrodingerZhu
Copy link

SchrodingerZhu commented Apr 21, 2021

I have been working on schrodingerzhu/libmprompt-sys. The async_workers example is already working there.

Any idea on higher-level wrappers?

@daanx
Copy link
Member

daanx commented Apr 29, 2021

Ah very cool :-) and great to see it works! This is the advantage of libmprompt that it integrates at a deep level that should make it quite seamless to integrate.

The multi-prompt interface is rather low-level, it would be better to expose algebraic effect handlers on top of that -- you could probably bind to libmpeff instead ? and use lambdas or virtual methods for the operations in a handler? Would be very cool to build effect handlers this way in Rust -- although one probably needs something special for multi-shot resumptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants