[Ecls-list] ECL and Weak Pointers (trivial-garbage)

css css at swissjabber.ch
Sun Jan 20 17:07:52 UTC 2008


Hello.

As I have problems with writing and porting my code in a way that it
works under linux, windows and other minor systems, too, i decided to
try to port it to ECL, because speed is mostly not an issue, and the
gcc, on which it seems to base, is already ported onto many platforms.

I am very new to ECL and so not familiar with most of its features.
What I couldnt find is any Possibility of creating Weak Pointers, but
many existing foreign-library-bindings (i.e. lispbuilder-sdl) using
cffi use weak pointers in some way, mostly basing on the package
trivial-garbage.asd. Watching the Mailing List Archives, and since I
couldnt find any Documentation about it, it seems like there is non
support for weak pointers yet. Is this correct?

Is there anybody already trying to make weak-pointers accessible on
ECL? The documentation sais "Using ECL in existing application
sometimes involves keeping Lisp objects where the garbage collector
normally cannot see them."
(http://ecls.sourceforge.net/new-manual/ch23.html). What exactly does
that mean? If there was a possibility to keep Lisp objects from the
Garbage Collector, it should be possible to use this for creating weak
hash-tables (for example creating references the garbage collector
"doesnt know of"). Is this "keeping away from the gc" somehow related
to http://ecls.sourceforge.net/new-manual/ch20.html (and following
pages)? I couldnt find how to keep Objects away from the garbage
collector, but for me this seemed somehow related to the topic.

Thanks for any suggestions.

css




More information about the ecl-devel mailing list