Better HN
topnewbestaskshowjobs
Log inSign up

RReverser

373 karma · joined Nov 27, 2013 (13y ago) · 111 submissions

Obsessed D2D programmer (parsers, compilers, tools & specs).

WebAssembly consultant. Ex-WebAssembly Advocadoer @Google. Previously broke the Internet more than once @Cloudflare.

Submissions

comment 1y ago · link · parent

Because one is annual, and the other is just total. The equivalent of GDP for corporations would be annual revenue.

comment 2y ago · link · parent

JS has proper async stacktraces as well, or do you mean something else?

comment 2y ago · link · parent

Hm what's the difference then?

4.

Libusb 1.0.27-rc1 is out – first RC with WebAssembly and WebUSB support(github.com ↗)

1 points · by RReverser · 2y ago · discuss

comment 2y ago · link · parent

Great work!

Strangely, I thought I remember being able to use breakpoints on https://cloudflareworkers.com/ - I thought it handled inspector messages in a nested loop until receiving debugger resume command - since the beginning but I guess I must be mistaken... Maybe that was just an idea we had back then.

6.

Cross-platform Rust library for the ASCOM Alpaca API for astronomy devices(github.com ↗)

2 points · by RReverser · 3y ago · discuss

comment 3y ago · link · parent

> What prevents developing a wrapper or shim that runs any wasm as if it were any other native executable?

That definitely exists and is used on server-side - Wasmtime, Wasmer and others.

comment 3y ago · link · parent

Thanks, be sure to check out the part 2 as well :)

comment 3y ago · link · parent

Don't know about webcams - usually (unlike in OP's case) those already have good OS-level support, but I did port gphoto2 to Wasm+WebUSB for access to DSLRs & mirrorless cameras: https://github.com/GoogleChromeLabs/web-gphoto2

comment 3y ago · link · parent

Browser ports can't integrate at OS level, they're intentionally separated today, but given that e.g. Node.js has WebUSB support (https://github.com/node-usb/node-usb), I guess you could make a layer that exposes such Wasm drivers as native to the OS. Could be a fun experiment.

comment 3y ago · link · parent

Chromebook is probably the perfect target for those kinds of ports. Definitely worth giving a try, hopefully SANE supports it.

12.

WebAssembly+WebUSB port of the SANE scanner library(github.com ↗)

101 points · by RReverser · 3y ago · 26 comments

comment 3y ago · link · parent

Thank you!

14.

Show HN: Web Bluetooth remote for Canon cameras(github.com ↗)

5 points · by RReverser · 3y ago · 2 comments

15.

libusb now has an experimental WebAssembly + WebUSB backend(github.com ↗)

3 points · by RReverser · 4y ago · discuss

comment 4y ago · link · parent

That's been already blocked by Google, with reviews deleted, so not much I guess.

comment 4y ago · link · parent

> Not to mention that I have almost no clue how to debug a WASM build.

I've got you covered: https://developer.chrome.com/blog/wasm-debugging-2020/ (TL;DR use Chrome DevTools with the official DWARF integration)

comment 4y ago · link · parent

Or it could apply gzip/brotli + optionally wasm-opt and cut the size ~5-6x: https://twitter.com/RReverser/status/1494435774003093515

comment 4y ago · link · parent

The sad part is, it could be cut very easily cut down to ~60MB with basic optimization & compression (heck, even gzip/brotli compression alone would go a long way): https://twitter.com/RReverser/status/1494435774003093515

Impressive feat, but I'm worried this small detail ruins the first impression for way too many.

comment 4y ago · link · parent

Part 2 is out: https://news.ycombinator.com/item?id=30165184

21.

Porting USB applications to the web. Part 2: gPhoto2(web.dev ↗)

3 points · by RReverser · 4y ago · discuss

comment 4y ago · link · parent

Ah, I see. That would be interesting, but removes the cross-platform compatibility from the equation, which, for me, is the most valuable piece of WebUSB and other similar APIs.

comment 4y ago · link · parent

Glad to hear! If you want to give it another try, you should be able to use my linked libusb fork in any app that depends on libusb, and compile that with Emscripten.

comment 4y ago · link · parent

I didn't see it but did think about it. I think it should be possible by wrapping WebUSB into something like Comlink, e.g. I know Surma experimented with allowing Comlink to be used with WebSockets: https://twitter.com/dassurma/status/1218207376899235840

Comlink takes care of the RPC part of any API, so you only need to choose and hook up a communication backend.

comment 4y ago · link · parent

With guiding you're usually aiming for 5-10 minute exposures per frame. That usually results in each frame having at least several streaks. Sure, those are technically still short and can be cancelled out, but astrophotography is already challenging enough and has plenty of other noise sources without adding more fuel to the problem.

And that's now, when we're not close to the planned tens of thousands of satellites by Starlink above, and other vendors like Amazon only starting to plan their similar programs. That's why early feedback is important - otherwise the sky will be ruined in the best case for decades to come.

comment 4y ago · link · parent

One is looking at it, another is polluting it and precluding others from looking at it. Surely you see the difference?

comment 4y ago · link · parent

For pure visual observation you might be right, but any sort of amateur astrophotography is already significantly affected and is only going to get worse because 1) it's usually more wide-field than in professional observatories, which significantly increases the chance of Starlink streaks and 2) the ~6.5 magnitude is still a lot brighter than all the interesting deep-sky objects and is only dimmer than stars visible to the human eye.

comment 4y ago · link · parent

Yeah, like every start-up clearly did before them (example: Uber). /s

comment 4y ago · link · parent

> It’s possible someone could come up with something like that for WebUSB, something that constrains it to something safe.

That sounds like WebSerial and WebHID to me, which don't require similar shenanigans with Zadig on Windows or Linux permission changes, because they allow access to a limited subset of USB device functions.

But that will never cover all the use-cases for USB apps. For those the only choices are not to do anything at all and let closed native executables to continue dominate this space (which gives them unlimited access without even those simplest permission prompts), or to work on WebUSB and encourage devs who do need to interact with such devices over USB to switch to that instead. I don't see 3rd option or how it would be possible in our non-ideal world, and among those two WebUSB still seems like a better idea.

1234