[Cuis-dev] UTF-8 Unicode editors

Gerald Klix cuis.01 at klix.ch
Mon May 2 07:00:48 PDT 2022


AFIR, PyPy does the same (using ropes), Strings in Python are immutable.

On May 2 2022, at 3:58 pm, ken.dickey--- via Cuis-dev <cuis-dev at lists.cuis.st> wrote:
> On 2022-05-02 06:10, Juan Vuletich via Cuis-dev wrote:
> > On 5/1/2022 1:59 AM, Douglas Brebner via Cuis-dev wrote:
> ..
> >> What about using Ken's Ropes?
> >
> > I think this is independent of Ropes. Ropes are great for very large
> > text. Rope fragments should be sequences of UTF-8 bytes. So Ropes
> > should be a third representation, and should be completely compatible
> > with StringUTF8. Applications should be able to pick their preferred
> > representation.
>
> Quick note. As Ropes are immutable, changes/updates return a new Rope.
> This is great for multicore (no locking required), and great for "undo"
> (just go back to the previous rope), but no mutation means no mutation
> in place.
>
> So updates look like
> textStr := textStr at: 37 put: $%.
> or some such.
>
> An application can choose which style to use, but must be aware to use
> the proper style. Undo is easier, but different.
>
> Cedar Mesa is an example of a significant IDE/system which only used
> Ropes, never Strings.
>
> HTH,
> -KenD
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220502/07ae1e44/attachment.htm>


More information about the Cuis-dev mailing list