GSoC Immutable Strings proposal proposal

Nat Tuck nat at ferrus.net
Fri Apr 2 22:40:31 UTC 2010


On Fri, Apr 2, 2010 at 5:41 PM, chromatic <chromatic at wgz.org> wrote:

> On Friday 02 April 2010 at 13:22, Nat Tuck wrote:
>
> > In any case, here's a rough draft of an application for the Immutable
> > Strings project:
> >
> > http://pandion.ferrus.net/gsoc/proposal-immutable_strings.txt
>
> The draft says:
>
>    One problem that will have to be considered is the efficient
>    implementation of strings in languages that assume mutable strings
>    and are likely to do operations that make a copy per mutation
>    inefficient. The most obvious solution is to provide a character
>    array datatype they can use in place of normal strings. Whatever
>    the solution, making sure that it is fully supported with utility
>    functions and such is solidly in scope for this project.
>
> I suggest instead that high-level languages use a PMC to represent strings,
> as
> such a container can assume container semantics.
>
> With that said, it's reasonable to consider providing also a StringBuilder
> of
> some sort, but using a String PMC is a well-established pattern so far.
>
> -- c
>

String PMCs are exactly what I was looking for. I've updated the proposal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.parrot.org/pipermail/parrot-dev/attachments/20100402/d9038a63/attachment.htm>


More information about the parrot-dev mailing list