Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: GC API from discussion: msg#00193

lang.perl.perl6.language

Subject: Re: GC API from discussion

On Mon, 15 Aug 2005 12:40:05 +0100, Adrian Howard <adrianh@xxxxxxxxxxxxxx>
wrote:
> On 15 Aug 2005, at 02:13, David Formosa ((aka ? the Platypus)) wrote:
>
>> After a very fruitful discussion I've rewritten my suggested GC API.
>> Comments please.
> [snip]
>
> I'm speaking from complete ignorance since I've only been vaguely
> following the subject... but four additional things that strike me as
> useful (because I found them so in Pop-11 when I used it) would be:

Stealing usefull things from other langagues is good.

> 1) Some way of declaring objects as being "fixed" so we can pass them
> to external code without having to worry about the GC moving them
> around.

I think that the FFI would take care of that via handels.

[...]

> 2) Some way of being able to tell the garbage collector to ignore the
> current contents of the heap for the purposes of GC. One Pop-11 idiom
> was to do something like:

Part of that is why we have the GC::tardy traint and C<no GC::delay>.
But C<no GC::destroy> preventing the desctruction of objects in its
lexical scope.

[...]

> 3) Some way of marking structures/fields so their reference doesn't
> count. Weakrefs basically.

I have strongly thought about adding weakrefs into the API. However I
recall $larry basically saying the need for weak refs means you have
got your design wrong. However google doesn't seem to find it.
Unless I hear words otherwise I'll add it in the next revision.

> 4) Hooks to run code before/after GC. Occasionally very useful. (e.g.
> with the gc hooks and heap locking/unlocking you could implement your
> own ephemeral GC system in Pop-11).

Not all GC's have before and after concepts. (pure refcounting and
mulithreaded models for example). I think that these hooks would be
added via the object interface.

> Hopefully this makes some vague sort of sense.

Thankyou it was helpfull.

--
Please excuse my spelling as I suffer from agraphia. See
http://dformosa.zeta.org.au/~dformosa/Spelling.html to find out more.
Free the Memes.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation