haukex / webperl

Run Perl in the browser with WebPerl!
https://webperl.zero-g.net
Other
272 stars 18 forks source link

Restart without reload #18

Open letmaik opened 4 years ago

letmaik commented 4 years ago

The demo pages go to great lengths to work around the fact that WebPerl can only be run once.

The comment in perlrunner.html says

Of course, at some point I should investigate how difficult it really is to re-start an Emscripten program...

What's the status of this? Are there any references or hints from Emscripten devs about that? It would be really nice to be able to run WebPerl multiple times directly without IFrame work-arounds.

haukex commented 4 years ago

I haven't checked in a while, and unfortunately my time to work on WebPerl has become more limited. My idea has been to modify WebPerl so that it's easy to run in a Web Worker, which I think should be better than the iframe hack. Unfortunately I currently can't make any promises, but I've been hoping to implement this by the end of this year.