From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,15edb893ef79e231 X-Google-Attributes: gidfac41,public X-Google-Thread: f4fd2,23202754c9ce78dd X-Google-Attributes: gidf4fd2,public X-Google-Thread: 103376,15edb893ef79e231 X-Google-Attributes: gid103376,public X-Google-Thread: 114809,15edb893ef79e231 X-Google-Attributes: gid114809,public X-Google-ArrivalTime: 2002-02-11 09:53:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.bc.tac.net!news.bc.tac.net!not-for-mail Sender: blaak@TORUS Newsgroups: comp.lang.lisp,comp.lang.ada,comp.lang.eiffel,comp.lang.smalltalk Subject: Re: True faiths ( was Re: The true faith ) References: <3C4DE336.3080102@worldnet.att.net> From: Ray Blaak Message-ID: Organization: The Transcend X-Newsreader: Gnus v5.7/Emacs 20.7 Date: 11 Feb 2002 09:50:13 -0800 NNTP-Posting-Host: 208.181.209.61 X-Complaints-To: news@bctel.net X-Trace: news.bc.tac.net 1013449976 208.181.209.61 (Mon, 11 Feb 2002 09:52:56 PST) NNTP-Posting-Date: Mon, 11 Feb 2002 09:52:56 PST Xref: archiver1.google.com comp.lang.lisp:26248 comp.lang.ada:19876 comp.lang.eiffel:5657 comp.lang.smalltalk:19485 Date: 2002-02-11T09:50:13-08:00 List-Id: dkcombs@panix.com (David Combs) writes: > [...] from one or more places in the program written in the > language-with-gc, you want to call out to something written in a *different* > language, which also has a *different* memory-mngt scheme -- maybe gc, maybe > not. [...] > And you want to pass a ref to a data structure > owned by the first progtam into the second program. [...and what happens if this shared data is collected while still in use in the second program?] You need support from the gc-language to "lock" objects to that the gc will not collect them. That is, you need a way of marking objects as being under manual memory management. Many gc-languages provide such hooks. The Java Native Interface, for example, allows the programmer to add/remove references to Java objects from outside Java, so as to control whether or not they are gc'd. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, blaak@telus.net The Rhythm has my soul.