[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #16723] flattened serialization of lists
From: |
Per Bothner |
Subject: |
[Bug-kawa] [bug #16723] flattened serialization of lists |
Date: |
Thu, 1 Jun 2006 18:29:01 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2 |
Follow-up Comment #1, bug #16723 (project kawa):
I'm not really thrilled with this.
First and most critically, whatever we do here must continute to work with
the Kawa literals framework (gnu.expr.LitTable). See:
http://www.gnu.org/software/kawa/internals/code-generation.html#literals
This is not insurmountable; worst case we could special-case the handling of
pair literals.
Second, I don't care for allocating a ProperListWrapper object in the middle
of serialization: I don't think it's necessary, at least if we're willing to
give up serialization compatibility.
Third, it appears this approach doesn't handle sharing. It would be a shame
to lose that.
Now I am thinking about turning Pair into a more abstract class, with car/cdr
as virual methods. So we could perhaps define a custom subclass of Pair that
would be serialized differently. I don't know if that would work. Or as
part of the serialization process you could convert to list to a vector
(presumably much more compact) and back again.
But perhaps in that case a vector or extendable vector type would make more
sense? (I think lists are way over-used.)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=16723>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/