Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-14 Thread Chris Harrelson
LGTM3 On Wed, Mar 13, 2024 at 9:50 AM Mike Taylor wrote: > LGTM2 > On 3/13/24 12:40 PM, Corentin Wallez wrote: > > Just to clarify, the ServiceWorker cannot do anything more than what the > main thread can do for DoS. Or I guess the only additional capability is > that it can trigger it up to

Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-13 Thread Mike Taylor
LGTM2 On 3/13/24 12:40 PM, Corentin Wallez wrote: Just to clarify, the ServiceWorker cannot do anything more than what the main thread can do for DoS. Or I guess the only additional capability is that it can trigger it up to 30 seconds after the user left the page. The reason why we can't

Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-13 Thread 'Corentin Wallez' via blink-dev
Just to clarify, the ServiceWorker cannot do anything more than what the main thread can do for DoS. Or I guess the only additional capability is that it can trigger it up to 30 seconds after the user left the page. The reason why we can't prevent DoS in all cases is that most GPUs don't have

Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-13 Thread 'Corentin Wallez' via blink-dev
I don't know the ServiceWorker mechanisms too much, but if the Javascript dies in 30 seconds then WebGPU operations will soon after. There isn't a lot of use in keeping WebGPU computations running for much longer as Javascript is needed to get the result of any computation in any useful places

Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-13 Thread Daniel Bratell
Just to ask what is probably a FAQ to get it out here... The Service Worker timeout is 30 seconds right, so regardless of how heavy the calculations are, a service worker and its associated calculations will die in 30 seconds after the user closes the associated page? I ask because while

Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-13 Thread 'François Beaufort' via blink-dev
On Tue, Mar 12, 2024 at 10:14 PM Yoav Weiss (@Shopify) < yoavwe...@chromium.org> wrote: > LGTM1 > > On Tue, Mar 12, 2024, 15:10 'François Beaufort' via blink-dev < > blink-dev@chromium.org> wrote: > >> >> >> On Tue, Mar 12, 2024 at 6:58 PM Mike Taylor >> wrote: >> >>> On 3/11/24 4:06 PM,

Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-12 Thread Yoav Weiss (@Shopify)
LGTM1 On Tue, Mar 12, 2024, 15:10 'François Beaufort' via blink-dev < blink-dev@chromium.org> wrote: > > > On Tue, Mar 12, 2024 at 6:58 PM Mike Taylor > wrote: > >> On 3/11/24 4:06 PM, 'François Beaufort' via blink-dev wrote: >> >> Contact emails fbeauf...@google.com >> >> Explainer None >> >>

Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-12 Thread 'François Beaufort' via blink-dev
On Tue, Mar 12, 2024 at 6:58 PM Mike Taylor wrote: > On 3/11/24 4:06 PM, 'François Beaufort' via blink-dev wrote: > > Contact emails fbeauf...@google.com > > Explainer None > > Could you write a few sentences why this is a useful addition? > Service Workers enable offline capabilities and

Re: [blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-12 Thread Mike Taylor
On 3/11/24 4:06 PM, 'François Beaufort' via blink-dev wrote: Contact emails fbeauf...@google.com Explainer None Could you write a few sentences why this is a useful addition? Specification https://gpuweb.github.io/gpuweb/#navigator-gpu Summary

[blink-dev] Intent to Ship: WebGPU: ServiceWorker and SharedWorker support

2024-03-11 Thread 'François Beaufort' via blink-dev
Contact emailsfbeauf...@google.com ExplainerNone Specificationhttps://gpuweb.github.io/gpuweb/#navigator-gpu Summary Functionality added to the WebGPU spec after its first shipment in a browser. ServiceWorker and SharedWorker support is added to WebGPU, aligning with existing WebGL