What is Nostr?
Phil Dennis-Jordan šŸ˜· /
npub1vdzā€¦p9xx
2024-07-22 09:02:31

Phil Dennis-Jordan šŸ˜· on Nostr: Rustaceans! C++ people! I need to implement a fairly complicated and somewhat ...

Rustaceans! C++ people! I need to implement a fairly complicated and somewhat stateful and overlapping USB protocol. macOS user space. This means IOUSBLib, which in its raw form is callback hell. (Multiple pipes with requests pending simultaneously, so ā€œjust turn it into blocking codeā€ is going to be even worse.) Possible approaches:
- Wrapping the C callback void* API with C++ coroutines.
- Build the whole thing in async Rust.
Any thoughts? No libraries/frameworks with high churn.
Author Public Key
npub1vdzvm8h2znj65wvappkvmjjhwkc4d39w94gycq0syn762pz4lq4qpjp9xx