4 ms·
I'll take a shot, based on the first paragraph: WinterJS is a JavaScript Service Workers¹ server. It's for JavaScript runtimes that aren't browsers², so that
by CharlesW 3y ago
I'll take a shot, based on the first paragraph:
WinterJS is a JavaScript Service Workers¹ server.
It's for JavaScript runtimes that aren't browsers², so that you can write JavaScript Service Workers that run (fast!) on those non-browser platforms.
¹ Service Workers allow developers to write code that runs in the background, independent of the main appliaction thread.
² Like Cloudflare Workers, Deno Deploy, Vercel, and Wasmer Edge.
- remram 3y ago> It's for JavaScript runtimes that aren't browsers Do you mean: "it's *a* JavaScript runtime that isn't a browser"? You are implying that JavaScript runtimes would be the users of WinterJS. That has me even more confused.
- CharlesW 3y ago> Do you mean: "it's *a* JavaScript runtime that isn't a browser"? Good catch! It is indeed a JavaScript runtime for Service Workers. By "for", I was attempting to make the point that it's intended to be deployed to non-browser JavaScript/Wasm runtimes.
- remram 3y agoI am still confused, it's a JavaScript runtime intended to be deployed to JavaScript/Wasm runtimes? Why does a JavaScript runtime need a JavaScript runtime?
- CharlesW 3y ago> I am still confused, it's a JavaScript runtime intended to be deployed to JavaScript/Wasm runtimes? Seemingly. > Why does a JavaScript runtime need a JavaScript runtime? Because if you want to create a Service Worker server for CloudFlare Workers and other JavaScript/Wasm runtimes, that's the only option for doing that AFAIK. FWIW, this isn't a new idea. For example, Figma uses QuickJS (https://bellard.org/quickjs/ https://bellard.org/quickjs/) for their plug-in runtime: https://www.figma.com/blog/an-update-on-plugin-security/ https://www.figma.com/blog/an-update-on-plugin-security/