[OT] BASIC and GC (was: Why isn't multiple inheritance very useful?)
From: Stewart Gordon (smjg_1998_at_yahoo.com)
Date: 01/25/05
- Previous message: msalters: "Re: Is this valid code?"
- In reply to: Jerry Coffin: "Re: Why isn't multiple inheritance very useful?"
- Next in thread: Jerry Coffin: "Re: BASIC and GC (was: Why isn't multiple inheritance very useful?)"
- Reply: Jerry Coffin: "Re: BASIC and GC (was: Why isn't multiple inheritance very useful?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 Jan 2005 11:51:07 +0000
Jerry Coffin wrote:
> Stewart Gordon wrote:
<snip>
>> Two options come to mind:
>> - use GC, copy on write (maybe this is one instance in which
>> reference counting would be the more efficient option)
>
> Reference counting isn't an alternative to reference counting --
Whoever suggested that it should be?
Or is that a typo for "Reference counting isn't an alternative to
garbage collection" or vice versa? Again, I didn't mean to imply that
it was. Simply that reference counting might be the optimal method
(over mark-sweep or whatever) of GC in this instance. As the copying
can be skipped when the count is 1, saving some of the reallocation
overhead during string manipulations.
<snip>
> The bottom line: BASIC strings were designed with GC in mind, and
> essentially virtually every BASIC implementation ever has used
> exactly that. Theoretically there may be other options, but none of
> this changes the intent of the original design, nor the fact that the
> majority of BASIC implementations _have_ used GC. It is true that
> there have been quite a few BASIC interpreters, but it's also true
> that it was designed to be compiled, and many implementations have
> done exactly that.
I see. But now that some BASICs have dynamic arrays and even partial
OOP support, I guess GC in BASIC is taken to a new level.
Stewart.
-- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
- Previous message: msalters: "Re: Is this valid code?"
- In reply to: Jerry Coffin: "Re: Why isn't multiple inheritance very useful?"
- Next in thread: Jerry Coffin: "Re: BASIC and GC (was: Why isn't multiple inheritance very useful?)"
- Reply: Jerry Coffin: "Re: BASIC and GC (was: Why isn't multiple inheritance very useful?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|