Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Current Thoughts on Server/Client Best Development Strategies

by three18ti (Scribe)
on Feb 17, 2014 at 11:53 UTC ( #1075162=note: print w/replies, xml ) Need Help??


in reply to Re^3: Current Thoughts on Server/Client Best Development Strategies
in thread Current Thoughts on Server/Client Best Development Strategies

Wait. Wait. Wait...

> What we really could use, is a version of Perl, written in javascript, which can be run in browsers as javascript.

You mean like a javascript compiler that JIT perl code? How would we do it? would it compile the perl to JS? or?

Everytime I talk to you you leave me with homework ;) I've got a bit of research to do. (those links are pretty interesting).

Thanks!

  • Comment on Re^4: Current Thoughts on Server/Client Best Development Strategies

Replies are listed 'Best First'.
Re^5: Current Thoughts on Server/Client Best Development Strategies
by zentara (Archbishop) on Feb 17, 2014 at 12:32 UTC
    What I meant, or what I think I meant :-), was that the eventloop that runs the various javascript enabled browsers, should be accessible from other languages. So say, I wanted add a socket event to the browser's eventloop, it would be great if I could just write it in Perl, have it interpreted as pure javascript, within the browser itself, and work as intended. :-)

    Like I said, Python already has experimental work. See: Python in Mozilla PyXPCOM


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1075162]
help
Chatterbox?
[ambrus]: Corion: what I don't understand is, if you make a one-shot AnyEvent timer with short timeout, does this code guarantee that the Prima timer can't queue two timeout events before invoking any of them?
[ambrus]: Because that could break AnyEvent code, which is why I added a guard.
[ambrus]: (It might be easier to use the callback scalar as a guard, as in $c and &$c(); $c = ();)
[Corion]: ambrus: Hurr - yes, that might happen, as Prima will queue lots of stuff (Well, Windows will)
[Corion]: But I'm really amazed that it just took this little code (plus the idle handler I have in mind and something else dk suggested)
[Corion]: ambrus: I wrote the handler so that it stops the timer if it's supposed to be a one-shot

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2016-12-09 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (150 votes). Check out past polls.