home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.forth      Forth programmers eat a lot of Bratwurst      117,927 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 117,340 of 117,927   
   minforth to All   
   Re: OOS approach revisited   
   27 Jun 25 11:49:11   
   
   From: minforth@gmx.net   
      
   Am 27.06.2025 um 09:29 schrieb dxf:   
   > On 27/06/2025 12:16 pm, minforth wrote:   
   >> ...   
   >> IIRC DO..LOOPs had been a hack for computers in the 60s.   
   >> A rather ugly hack, born out of necessity, slow and   
   >> often cumbersome to use. That it still persists in Forth   
   >> half a century later speaks for Forth's progressiveness.   
   >   
   > Testing FOR NEXT on my DTC system showed 15% speed increase over   
   > DO LOOP.  Putting 5 NOOPs (executes forth's address interpreter)   
   > in the innermost loop brought it down to 6%.  Not worth it IMO.   
   >   
      
   It really depends on how counted loops are implemented.   
   Most CPUs have operators for register-based count-down loops   
   that are blazingly fast.   
      
   If they can be used within Forth-based loop constructs   
   I would expect a greater speed increase than what you measured.   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca