POV-Ray : Newsgroups : povray.newusers : Tokens : Re: Tokens Server Time
2 Nov 2024 05:19:42 EDT (-0400)
  Re: Tokens  
From: Warp
Date: 20 Aug 2004 04:08:47
Message: <4125b18f@news.povray.org>
Raphael <roo### [at] localhostlocaldomain> wrote:
>         What is a token and why do I care how many there are?
>         And if I don't care why am I being told?

  Since the POV-Ray SDL is a turing-strong language, it's impossible
to predict in a general case how long it will take to parse and thus
show a percentage of how much has been parsed already (this is basic
computational theory).
  On the other hand, if POV-Ray shows no sign that it really is doing
something, it may look like it has hanged because nothing seems to be
happening.
  As a compromise POV-Ray shows the number of tokens it has parsed
so that the user gets visual feedback that it really is doing something
and how much it has done already.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.