Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #2359

Re: Streamlining Applesoft - The garbage collector

From "Anton Treuenfels" <teamtempest@yahoo.com>
Newsgroups comp.sys.apple2.programmer
References <7ad02214-d93e-4511-bb3d-c80e40614d5c@googlegroups.com> <6f8f2b6f-3c25-4030-893a-a5573dcad824@googlegroups.com>
Subject Re: Streamlining Applesoft - The garbage collector
Date 2016-02-22 17:55 -0600
Message-ID <AaSdncL-pM2aPVbLnZ2dnUU7-S2dnZ2d@earthlink.com> (permalink)

Show all headers | View raw


Memory limited. You can have arrays of strings, which means that the limited 
number of identifiers is irrelevant to how many total strings there can be.

"Michael Pohoreski" <michael.pohoreski@gmail.com> wrote in message 
news:6f8f2b6f-3c25-4030-893a-a5573dcad824@googlegroups.com...
On Saturday, February 20, 2016 at 9:33:11 PM UTC-7, gid...@sasktel.net 
wrote:
> Another version of garbage collection?  Or, just a better one?

This is great work!

>  This would give us and allow for 256 string pointers through each pass 
> through the variable tables.  I apologize for mis-leading you to think we 
> are only collecting 128 strings at a time, but such is the suspense of 
> story telling.

Question that is tangential to this:

Is there a limit on the number of strings Applesoft can handle, aside from a 
memory one? 256 max strings? i.e. if LOMEM was set to something ridiculous 
so that Applesoft had ~32K available, is there a hard limit to the number of 
strings or is strictly memory limited?

Since variables only use the first 2 characters of the identifiers:

a) What are valid identifier names?
b) The first letter has to be an uppercase or lowercase letter, right?

c) Let's assume you can use the characters $40 .. $7F which is around $40 
choices for the first character of the identifier.  Ignoring that you can 
use numbers for the second character of the identifier, does this mean 
Applesoft can process $40 * $40 = $1000 strings?


I probably should re-read this consolidated Applesoft disassembly again to 
see where/how  strings are handled ...

http://jamtronix.com/files/applesoft.html

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Streamlining Applesoft - The garbage collector gids.rs@sasktel.net - 2016-02-20 20:33 -0800
  Re: Streamlining Applesoft - The garbage collector Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-02-22 13:58 -0800
    Re: Streamlining Applesoft - The garbage collector "Anton Treuenfels" <teamtempest@yahoo.com> - 2016-02-22 17:55 -0600
    Re: Streamlining Applesoft - The garbage collector gids.rs@sasktel.net - 2016-02-22 21:46 -0800
      Re: Streamlining Applesoft - The garbage collector Benoit0123 <bgilon@free.fr> - 2016-02-23 15:33 +0000
        Re: Streamlining Applesoft - The garbage collector gids.rs@sasktel.net - 2016-02-23 08:09 -0800
          Re: Streamlining Applesoft - The garbage collector Benoit0123 <bgilon@free.fr> - 2016-02-23 18:08 +0000
            Re: Streamlining Applesoft - The garbage collector Michael J. Mahon <mjmahon@aol.com> - 2016-02-23 12:52 -0600
              Re: Streamlining Applesoft - The garbage collector Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-02-23 12:15 -0800
                Re: Streamlining Applesoft - The garbage collector Michael J. Mahon <mjmahon@aol.com> - 2016-02-24 00:46 -0600
            Re: Streamlining Applesoft - The garbage collector gids.rs@sasktel.net - 2016-02-23 21:47 -0800
      Re: Streamlining Applesoft - The garbage collector Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2016-02-28 04:51 -0600
        Re: Streamlining Applesoft - The garbage collector D Finnigan <dog_cow@macgui.com> - 2016-02-29 23:09 +0000
          Re: Streamlining Applesoft - The garbage collector Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-03-01 09:05 -0800
            Re: Streamlining Applesoft - The garbage collector D Finnigan <dog_cow@macgui.com> - 2016-03-01 18:04 +0000
              Re: Streamlining Applesoft - The garbage collector Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-03-01 12:22 -0800
    Re: Streamlining Applesoft - The garbage collector Michael J. Mahon <mjmahon@aol.com> - 2016-02-23 12:40 -0600

csiph-web