[Cuis] Ropes (functional strings)
Guido Stepken
gstepken at googlemail.com
Wed Feb 13 17:06:31 CST 2013
doesNotUnderstand: aMessage
Is the most stupid answer, a intelligent system can give. Humans can tell
not only that they didn'nt understand, but also why.
In a full reflecting language it should be totally easy to cache the last
message a object received and backtracking the line of last sends.
Just add a 'last sent' cache to Object and trace.
Why doesn't CUIS do that?
Tnx in advance
>
> "See what is missing from Ropes"
> Transcript log: (String streamContents: [:s | aMessage storeOn:
s]).
>
> "Do what a String would do"
> aMessage sendTo: (self asString)
>
>
> and then
>
>
> Rope class>>openTextEditor
>
>
> openTextEditor
>
> "
> Rope openTextEditor.
> "
> SystemWindow
> editText: (TextModel
> withText: (FlatRope fromString:
> 'Let us see what these Rope things can
do.'))
> label: 'Text Editor'
> wrap: true
>
>
> Kind regards
>
> Hannes
>
> On 2/13/13, Ken Dickey <Ken.Dickey at whidbey.com> wrote:
> > On Wed, 13 Feb 2013 00:37:31 -0300
> > Juan Vuletich <juan at jvuletich.org> wrote:
> >
> >> I must admit that I don't know when it makes sense to use it, but it is
> >> really interesting.
> >
> > The Cedar/Mesa language and IDE used only ropes.
> >
> > At least one Python implementation uses ropes internally for Unicode
> > strings:
> >
> > http://morepypy.blogspot.com/2007/11/ropes-branch-merged.html
> >
> >
> > The IBM Java Ropes performance is also interesting, particularly with
> > respect to regular expression search. [We could probably speed this up
with
> > Zippers, but I hate to get too functional here. ;^].
> >
> > http://www.ibm.com/developerworks/java/library/j-ropes/index.html
> >
> >
> >> BTW, I find it totally amazing that you could hook this into the
> >> existing TextModel and text editor _without modifying a single method_!
> >
> > I thought that it was pretty cool myself.
> >
> > Hey, that is the way good Smalltalk should be written.
> >
> > Cheers,
> > -KenD
> >
> > _______________________________________________
> > Cuis mailing list
> > Cuis at jvuletich.org
> > http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
> >
>
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20130214/6197cfa1/attachment-0002.html>
More information about the Cuis
mailing list