By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,238 Members | 1,657 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,238 IT Pros & Developers. It's quick & easy.

stack size limit ?

P: n/a

does exist a constant in JavScript (UA dependent) telling us the stack
size limit ?

from google I've found 1000 for Firefox, 100 for Safari 3
verified experimetally

The latest Webkit accepts a stack size of 5655 (on Mac OS X 10.4.11)
--
Une Bévue
Jun 27 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Une Bév ue wrote on 04 jun 2008 in comp.lang.javascript:
does exist a constant in JavScript (UA dependent) telling us the stack
size limit ?

from google I've found 1000 for Firefox, 100 for Safari 3
verified experimetally
There are many stacks [li-fo memory] in JS.

Do you mean the subroutine/function stack?
This was discussed here in this NG recently for recursion.

Or the mathmatical parser stack?

Or ...?
The latest Webkit accepts a stack size of 5655 (on Mac OS X 10.4.11)
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 27 '08 #2

P: n/a
On Jun 4, 10:41*am, unbewusst.s...@weltanschauung.com.invalid (Une
Bévue) wrote:
does exist a constant in JavScript (UA dependent) telling us the stack
size limit ?
Nope, I don't think so.
>
from google I've found 1000 for Firefox, 100 for Safari 3
verified experimetally

The latest Webkit accepts a stack size of 5655 (on Mac OS X 10.4.11)
javascript:(function f(p){document.write(p+'<br>'); f(p+1); })(0)

Betas:

WebKit/Safari r34088 --139808 (!)
FF3.0pre --2999
IE8.0.6001 --2340

Non-betas:

Safari 3.1.1 --498
FF2 --999
IE 7.0.5730.11 --2507
Opera 9.27 --3328

cljs thread : "Javascript recursion limit"

--Jorge.
Jun 27 '08 #3

P: n/a
Evertjan. <ex**************@interxnl.netwrote:
There are many stacks [li-fo memory] in JS.

Do you mean the subroutine/function stack?
This was discussed here in this NG recently for recursion.
subroutine/function stack.
Or the mathmatical parser stack?

--
Une Bévue
Jun 27 '08 #4

P: n/a
Jorge <jo***@jorgechamorro.comwrote:
javascript:(function f(p){document.write(p+'<br>'); f(p+1); })(0)

Betas:

WebKit/Safari r34088 --139808 (!)
FF3.0pre --2999
IE8.0.6001 --2340

Non-betas:

Safari 3.1.1 --498
FF2 --999
IE 7.0.5730.11 --2507
Opera 9.27 --3328

cljs thread : "Javascript recursion limit"

--Jorge.
thanks for the tips !

--
Une Bévue
Jun 27 '08 #5

P: n/a
[Sorry for posting the followup here, .invalid is filtered out]

Jorge wrote:
On Jun 4, 10:41 am, unbewusst.s...@weltanschauung.com.invalid (Une
Bévue) wrote:
>The latest Webkit accepts a stack size of 5655 (on Mac OS X 10.4.11)
javascript:(function f(p){document.write(p+'<br>'); f(p+1); })(0)

Betas:

WebKit/Safari r34088 --139808 (!)
FF3.0pre --2999
IE8.0.6001 --2340

Non-betas:

Safari 3.1.1 --498
FF2 --999
IE 7.0.5730.11 --2507
Opera 9.27 --3328
However, in most cases the stack size would _not_ equal the number of
recursions a stack can support:

http://en.wikipedia.org/wiki/Call_stack#Structure
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Jun 27 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.