in reply to WebPerl in a Progressive Web App?
Is it possible to run WebPerl inside a PWA?
Without having the time to test this, but having written several PWAs myself, I think that this should work. The way PWAs work is that they have a "service worker" that can intercept requests to the server and can decide whether to respond with files from the local cache instead, thus enabling them to work offline too. So I think they should also be able to intercept and cache the requests to the WebPerl files. Here is one of the service workers I wrote and the resources on MDN you linked to are very good.
Has it been attempted yet? What are the results? Does it reduce the startup time of Perl because it's running hot in the background?
Sorry, I don't know the answers there :-( For the latter, a PWA alone doesn't automatically mean Perl keeps running in the background - one would have to fire up an interpreter in a Web Worker, independently of whether it's a PWA or not. I could imagine tiny speedups from the responses for the WebPerl files always coming from the local cache, and perhaps storing the uncompressed WebPerl resources instead of having to uncompress the gzipped server responses, but it's still those same megabytes that have to be passed around, so I have my doubts...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WebPerl in a Progressive Web App?
by LanX (Saint) on Mar 08, 2026 at 14:53 UTC |