Re: [Gauche-devel] Thinking again about parameters in the VM
R7RS Scheme scripting engine
Status: Beta
Brought to you by:
shirok
From: Kiril Z. <k....@me...> - 2012-01-15 03:45:57
|
Shiro, have you already started working on this, or should I put something together? I think it might be possible to implement entirely in Scheme without touching any C code. Maybe not =) On 2012-01-14, at 1:28 AM, Shiro Kawai <sh...@la...> wrote: > From: Kirill Zorin <k....@me...> > Subject: Re: [Gauche-devel] Thinking again about parameters in the VM > Date: Fri, 13 Jan 2012 23:08:03 -0500 > >> One way would be to create a global table that holds all parameters >> ever initialized (per module, I suppose, since the module system is >> global as well) paired with their initial values. > > Yes, that's what I have in mind now. > >> The only thing that's probably bad is that now parameter creation is >> serialized... I'm not sure how much of a handicap it is in >> practice. > > I don't think it's much problem, for typical parameters are > create at toplevel, when a module is loaded. That happens only > once per module. > > Parameters can be created locally, but that's not common, and > Gauche's current implementation doesn't handle such case well > anyway (for example, parameters won't be GC-ed) > > --shiro > > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Mar 27 - Feb 2 > Save $400 by Jan. 27 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev2 > _______________________________________________ > Gauche-devel mailing list > Gau...@li... > https://lists.sourceforge.net/lists/listinfo/gauche-devel |