Re:Postgres WASM
by MuffinFlavored on Monday October 03, 2022 @12:12PM
(#33069500)
Could I hypothetically pass USB through to v86? Like libusb on the host into v86 on the guest? Or do USB over IP or something?
Re:Postgres WASM
by simcop2387 on Monday October 03, 2022 @12:17PM
(#33069598)
Chrome supports a USB api that could potentially work for that, https://developer.chrome.com/docs/extensions/reference/usb/
sadly though it's chrome only, not a standard of any kind (no other browsers support it that I know of). ESPHome can use it to program microcontrollers (along with the serial port support).
Isn't that because it was explicitly rejected on grounds of security & privacy concerns, rather than 'oh if only others would be up with Google on implementing new features'?
Re:Postgres WASM
by MuffinFlavored on Monday October 03, 2022 @12:46PM
(#33070071)
What about this: https://wicg.github.io/webusb/
> This API is part of the deprecated Chrome Apps platform. Learn more about migrating your app.
Classic Google...
Re:Postgres WASM
by lights0123 on Monday October 03, 2022 @12:56PM
(#33070227)
That's the old one. https://web.dev/usb/ is the supported one.
I'm curious -- what's the intended use case for this? This is something we could try to add if gives some cool new functionality.
Re:Postgres WASM
by MuffinFlavored on Monday October 03, 2022 @07:27PM
(#33075003)
passing devices through to do libusb stuff with them (like OBD diagnostics on cars)
Oh, so it's not related to PostgreSQL. I'm super interested in new and different uses for WASM. This could open some new doors.
Re:Postgres WASM
by MuffinFlavored on Tuesday October 04, 2022 @05:57PM
(#33087622)
Could you tell me at a high level how you would implement in your mind/opinion passing USB devices through v86/WebUSB/libusb?
Making Postgres Wasm helped:
- v86[0] to find a new bug
- Providing a great deep-dive article that will trigger new ideas in the future
- Showcase the possibilities of Wasm and how you can overcome the current challenges
I really appreciate these projects are OSS :)
Congratulations for the project!
[0] https://github.com/copy/v86