Elektrine lite

← Feed

@r@glauca.space

Post #1953779

2026-04-20 06:14 UTC

@kevinmehall oh hey it's you! no problem heh! i've came across your code quite a few times while trying to understand how to properly call OS USB APIs. i didn't use it, for Reasons™️, but we should probably somehow (*handwaves vaguely*) work together to explore how to actually build a "good" (works for even more people) API for all of this

Replies (1)

  • @kevinmehall@hachyderm.io 2026-04-20 06:22

    @r I skimmed the code and I think I'm the only one who would look at your 4000 lines using the cursed OS USB APIs and think "this looks simpler than I'd expect it to" because it goes to show how much of the complexity in nusb is dealing with thread synchronization and trying to expose a sane Rust API as a library.

    Open ##1953780