libmprompt icon indicating copy to clipboard operation
libmprompt copied to clipboard

Rust Bindings

Open SchrodingerZhu opened this issue 4 years ago • 1 comments

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

Any idea on higher-level wrappers?

SchrodingerZhu avatar Apr 21 '21 10:04 SchrodingerZhu

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.

daanx avatar Apr 29 '21 20:04 daanx