News for hackers. Stuff that matters.

RReverser

Re:Apple vs the Law on Friday July 11, 2025 @07:51AM (#44531080)
Because one is annual, and the other is just total. The equivalent of GDP for corporations would be annual revenue.
Re:Why choose async/await over threads? on Tuesday March 26, 2024 @08:07AM (#39826826)
JS has proper async stacktraces as well, or do you mean something else?
Hm what's the difference then?
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.

Re:WebAssembly+WebUSB port of the SANE scanner library on Saturday April 29, 2023 @09:12PM (#35758833)
> 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.

Re:Driver Adventures for a 1999 Webcam on Saturday April 29, 2023 @08:56PM (#35758752)
Thanks, be sure to check out the part 2 as well :)
Re:Driver Adventures for a 1999 Webcam on Saturday April 29, 2023 @07:57PM (#35758474)
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
Re:WebAssembly+WebUSB port of the SANE scanner library on Saturday April 29, 2023 @07:56PM (#35758467)
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.
Re:WebAssembly+WebUSB port of the SANE scanner library on Saturday April 29, 2023 @07:53PM (#35758438)
Chromebook is probably the perfect target for those kinds of ports. Definitely worth giving a try, hopefully SANE supports it.
Re:Show HN: Web Bluetooth remote for Canon cameras on Sunday March 05, 2023 @07:48PM (#35036102)
Thank you!
That's been already blocked by Google, with reviews deleted, so not much I guess.
> 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)

Re:LibreOffice running natively in the browser via WebAssembly on Thursday February 17, 2022 @05:29PM (#30379559)
Or it could apply gzip/brotli + optionally wasm-opt and cut the size ~5-6x: https://twitter.com/RReverser/status/1494435774003093515
Re:LibreOffice running natively in the browser via WebAssembly on Thursday February 17, 2022 @05:26PM (#30379530)
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.

Re:Porting USB applications to the web. Part 1: libusb on Thursday January 27, 2022 @09:46AM (#30101170)
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.
Re:Porting USB applications to the web. Part 1: libusb on Friday January 21, 2022 @09:17PM (#30032563)
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.
Re:Porting USB applications to the web. Part 1: libusb on Friday January 21, 2022 @09:17PM (#30032555)
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.

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.

One is looking at it, another is polluting it and precluding others from looking at it. Surely you see the difference?
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.
Yeah, like every start-up clearly did before them (example: Uber). /s
Re:Porting USB applications to the web. Part 1: libusb on Friday January 21, 2022 @11:10AM (#30025485)
> 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.

Re:Porting USB applications to the web. Part 1: libusb on Friday January 21, 2022 @11:05AM (#30025400)
> Limiting it to installed apps still has the problem of users blindly agreeing to something that is fundamentally super dangerous.

Same can be said about native apps. Like with other hazards, in the end it's all about balance - you can't stop users from _ever_ doing stupid things.

Older »