dev-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dev-serveez] guile adventures


From: stefan
Subject: Re: [dev-serveez] guile adventures
Date: Mon, 16 Jul 2001 01:17:38 +0200 (CEST)

On Sat, 14 Jul 2001, Martin Grabmueller wrote:

> >  * 3. smob
> >    The most performant solution would be a small object pointing to a
> >    structure like this:
> >    struct svz_binary_data {
> >      unsigned char * data;
> >      unsigned long length;
> >      int garbage;
> >    }
> >    The problem about this is garbage collection (when really creating the
> >    data pointer in guile). But I think it is explained in the guile
> >    documentation, just some work. Yet another problem will be the accessor
> >    function from guile, even more work.
> 
> Hm, I think smobs are quite easy to use, and not that much work.
> Guile's conservative GC takes a lot of burden from you, because you
> don't have to tell him where you store variables (as long as it's on
> the stack.)

Thus I think we will use a smob finally. And it will be help ful to have a
look at the vector implementation in srfi-4. 

Cheers,
        address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]