I was reading this awesome post about why this guy appreciates erlang.
And this paragraph caught my eye.
I just thought it would be a cool little mini project to try and re implement Python and or Ruby strings to act like Erlang strings (the linked list of bytes versus contiguous). I am kind of using this as a note to myself since writing things down in other places just gets lost a lot of the time..
It would be cool to do this though and then compare the new ruby build with the previous in a bunch of different speed string tests.
After talking to some friends at work I realized that this already done. Using the rope data structure. A cool implementation, librope is a very interesting read.
After checking the librope implementation out I realized that using these strings would only be a benfit in very specific situations, long modifiable strings.
However, having an implementation accessbile in a standard library would deff be a cool thing to have. I could see this being super helpful when doing something like building a website response from templates.
Actually from a quick google it sounds like this is how PyPy implemented strings.