stack size limit ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?=

    stack size limit ?


    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
  • Evertjan.

    #2
    Re: stack size limit ?

    Une Bév ue wrote on 04 jun 2008 in comp.lang.javas cript:
    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)

    Comment

    • Jorge

      #3
      Re: stack size limit ?

      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:(fun ction f(p){document.w rite(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.

      Comment

      • =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?=

        #4
        Re: stack size limit ?

        Evertjan. <exjxw.hannivoo rt@interxnl.net wrote:
        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

        Comment

        • =?ISO-8859-1?Q?Une_B=E9v?==?ISO-8859-1?Q?ue?=

          #5
          Re: stack size limit ?

          Jorge <jorge@jorgecha morro.comwrote:
          javascript:(fun ction f(p){document.w rite(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

          Comment

          • Thomas 'PointedEars' Lahn

            #6
            Re: stack size limit ?

            [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:(fun ction f(p){document.w rite(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:




            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, <f806at$ail$1$8 300dec7@news.de mon.co.uk>

            Comment

            Working...