Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
setInterval & setTimeout
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ned  
View profile  
 More options Jun 2 2009, 11:11 am
From: Ned <nedko.iva...@gmail.com>
Date: Tue, 2 Jun 2009 08:11:39 -0700 (PDT)
Local: Tues, Jun 2 2009 11:11 am
Subject: setInterval & setTimeout
As long as I can see there is no setInterval & setTimeout functions in
V8 because they are bound to "window" object in KHTML...

My question is - have some of you guys written or does someone know is
there a code that could add such a behavior to V8. I really need this
behavior.

Regards
Nedko

ps I honestly can't imagine real javascript without setInterval &
setTimeout


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean McNamee  
View profile  
 More options Jun 2 2009, 11:16 am
From: Dean McNamee <de...@chromium.org>
Date: Tue, 2 Jun 2009 17:16:11 +0200
Local: Tues, Jun 2 2009 11:16 am
Subject: Re: [v8-users] setInterval & setTimeout
These concepts are driven around the concept of a main event loop.
This concept is specific to browsers, and not to JavaScript.  It would
all depend how you embed the JavaScript engine, and if you want to
structure it around an event loop with timers, etc.

-- dean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ned  
View profile  
 More options Jun 2 2009, 11:23 am
From: Ned <nedko.iva...@gmail.com>
Date: Tue, 2 Jun 2009 08:23:12 -0700 (PDT)
Local: Tues, Jun 2 2009 11:23 am
Subject: Re: setInterval & setTimeout
Thank you Dean... and yet some directions on how to implement it?

On Jun 2, 6:16 pm, Dean McNamee <de...@chromium.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sébastien Pierre  
View profile  
 More options Jun 2 2009, 3:18 pm
From: Sébastien Pierre <sebastien.pie...@gmail.com>
Date: Tue, 2 Jun 2009 15:18:43 -0400
Local: Tues, Jun 2 2009 3:18 pm
Subject: Re: [v8-users] Re: setInterval & setTimeout

You'd probably have to add an event loop and have a timer thread insert
callbacks into the loop. You could use things like libevent to do that.

 -- Sébastien


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ned  
View profile  
 More options Jun 3 2009, 3:01 am
From: Ned <nedko.iva...@gmail.com>
Date: Wed, 3 Jun 2009 00:01:56 -0700 (PDT)
Local: Wed, Jun 3 2009 3:01 am
Subject: Re: setInterval & setTimeout
Thank you Sébastien for your reply,
I would guess how to implement the event thread but how do I interrupt
the execution of the script thread so I could force the execution of a
particular script code. That's what I don't know. Could you or someone
else please provide some details about it?

Thank you
Nedko

On Jun 2, 10:18 pm, Sébastien Pierre <sebastien.pie...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Corry  
View profile  
 More options Jun 3 2009, 3:59 am
From: Erik Corry <erik.co...@gmail.com>
Date: Wed, 3 Jun 2009 09:59:26 +0200
Local: Wed, Jun 3 2009 3:59 am
Subject: Re: [v8-users] Re: setInterval & setTimeout
2009/6/3 Ned <nedko.iva...@gmail.com>:

> Thank you Sébastien for your reply,
> I would guess how to implement the event thread but how do I interrupt
> the execution of the script thread so I could force the execution of a
> particular script code. That's what I don't know. Could you or someone
> else please provide some details about it?

The way it works in a browser is there is only one thread.  The
scripts are never interrupted, but are expected to return to the event
loop after a reasonably short time, possibly scheduling another
callback first.

--
Erik Corry, Software Engineer
Google Denmark ApS.  CVR nr. 28 86 69 84
c/o Philip & Partners, 7 Vognmagergade, P.O. Box 2227, DK-1018
Copenhagen K, Denmark.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »