Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Embedding WebPerl Code Demos into Other Pages

by LanX (Cardinal)
on Oct 10, 2018 at 21:03 UTC ( #1223842=note: print w/replies, xml ) Need Help??


in reply to Re: Embedding WebPerl Code Demos into Other Pages
in thread Embedding WebPerl Code Demos into Other Pages

it's client side.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^2: Embedding WebPerl Code Demos into Other Pages

Replies are listed 'Best First'.
Re^3: Embedding WebPerl Code Demos into Other Pages
by Anonymous Monk on Oct 12, 2018 at 18:30 UTC
    is that like a Java applet which is download and run in-browser client side?
      it's a very long time since I used Java applets, so I'm not sure about that side...

      I see some similarities but also advantages.

      • you only need to have JS activated in the browser, no external add-ons/plug-ins necessary
      • once the Perl interpreter is downloaded and in the cache you won't have much start-up lack when loading new code.*
      • you can easily reuse JS libs and naturally interact with the DOM, no alien Java panel/interface.

      due to JIT compiling will JS still be much faster, but you'll be able to reuse CPAN modules inside the browser.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      *) though I'm not sure if a "warm start-up" is possible without using frames.

        I agree with your points on Java applets vs. JavaScript!

        though I'm not sure if a "warm start-up" is possible without using frames

        AFAICT most of the start-up time comes from fetching the two relatively large files emperl.data (~2.5MB compressed) and emperl.wasm (~1.1MB compressed), so as long as those are cached, it should be ok, no matter if frames are used or not. Of course, caching has to be implemented correctly and enabled both on the client and on the server, e.g. a If-Modified-Since + 304 Not Modified exchange. (On Chrome Mobile loading is also fairly slow compared to Firefox Mobile, but I'm not yet sure why.)

      is that like a Java applet which is download and run in-browser client side?

      Yeah but it's way better than a Java applet because you don't have to use Java: It's a Perl app as Javascript running in a browser!

      Run Perl Everywhere!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1223842]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-03-03 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (80 votes). Check out past polls.

    Notices?