This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "Current" solution for generalized set!


Mikael Djurfeldt <mdj@nada.kth.se> writes:

> 10. An implementation in the *current* Guile interpreter could be:
> 
>       i) Add new setter slot to all closures.  (Put a pair where the
>          current procedure properties live.  Let the car be the setter
>          slot and the cdr the property list.)
>      ii) A <getter-with-setter> is a closure with a non-#f setter slot.

and

iii) The getter is stored as the `getter' procedure property.

It would be good to run benchmarks comparing closures without
setter-slot or properties with the suggested closure representation.

One of the benchmarks should be closure-creation intense.

If the difference is significant we should try to find an alternative
implementation.

/mdj