[squeak-dev] Smalltalk string API

Levente Uzonyi leves at elte.hu
Tue Feb 22 05:28:55 UTC 2011


On Mon, 21 Feb 2011, Eliot Miranda wrote:

> On Sun, Feb 20, 2011 at 4:46 PM, Levente Uzonyi <leves at elte.hu> wrote:

snip

>> Collection >> join: delimiter
>>
>>        ^String streamContents: [ :stream |
>>                self
>>                        do: [ :each | each putOn: stream ]
>>                        separatedBy: [ delimiter putOn: stream ] ]
>>
>
> +1.  This is pellucidly clear and elegant.  It might not be super fast but
> Marcus and I are working on adaptive optimization/speculative inlining
> precisely to optimize cases like this into fast executable code.  Hopefully
> we'll be able to demonstrate automatic optimization of code like this into
> flatter faster code this year.  Keep writing beautiful code and somehow
> we'll figure out how to make it go fast.

Great. Is the developement open?


Levente

snip



More information about the Squeak-dev mailing list