Re: ANN: SDOM project development release 0.4

2005-12-31 Thread Julian Graham
On 12/31/05, Neil Jerram <[EMAIL PROTECTED]> wrote: > I'm afraid that doesn't help me much ... unless there are JDOM > applications that I could refer to as examples? I think this is turning into a defense of the DOM spec itself, which I think would answer most of your questions. When it comes to

Re: C structures

2005-12-31 Thread Mike Gran
Yeah. There's a bit of overhead in getting a SMOB set up, but, it has the advantage that you aren't keeping duplicate copies (a C copy and a Scheme copy) of your information in memory. --- Neil Jerram <[EMAIL PROTECTED]> wrote: > Leonardo, > > Based on your replies to other people on the list,

Re: ANN: SDOM project development release 0.4

2005-12-31 Thread Neil Jerram
Julian Graham <[EMAIL PROTECTED]> writes: > Hi Neil, > Well, maybe I don't understand the question, but I'd say you could > use SDOM pretty much anywhere you'd use, say, JDOM, I'm afraid that doesn't help me much ... unless there are JDOM applications that I could refer to as examples? > but w

Re: memoizing interpreter

2005-12-31 Thread Neil Jerram
Leonardo Lopes Pereira <[EMAIL PROTECTED]> writes: > I read that guile is a "memoizing interpreter", what that means? It means that when Guile evaluates a source code expression for the first time, it changes ("memoizes") some parts of the expression so that they will be quicker to evaluate when

Re: C structures

2005-12-31 Thread Neil Jerram
Leonardo, Based on your replies to other people on the list, it sounds as though you probably want a SMOB. A SMOB is a way of passing a C pointer (such as to an arbitrary struct) around opaquely in Scheme, and the way to use them in quite well documented in a couple of places in the Guile manual

Re: Smobs & garbage collecting

2005-12-31 Thread Christian Mauduit
Han-Wen Nienhuys a écrit : > In article <[EMAIL PROTECTED]>, > Christian Mauduit <[EMAIL PROTECTED]> wrote: > >>The funny thing is that if I stop calling (display %my-smob) then all >>the smobs are correctly freed when calling scm_gc(). > > > There was a memory leak in the display routines, whi