<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
Wouldn't the best thing (at least for now) be to just accept the string how ever it comes in and not convert it unless needed?&nbsp; Perhaps make the different classes specific and the application designer can decide for his application.&nbsp; The UTF8String should probably not have an #at: message, so that users know they have to convert the string if they want random access to it.<br><br>&gt; From: cputney@wiresong.ca<br>&gt; Date: Sun, 10 Jun 2007 09:54:55 -0700<br>&gt; To: squeak-dev@lists.squeakfoundation.org<br>&gt; Subject: Re: UTF8 Squeak<br>&gt; <br>&gt; <br>&gt; On Jun 10, 2007, at 3:55 AM, Janko Mivšek wrote:<br>&gt; <br>&gt; &gt; I think that this way we can achieve most efficient yet fast  <br>&gt; &gt; support for all languages on that world. Because of fixed length  <br>&gt; &gt; those strings are also easy to manipulate contrary to variable  <br>&gt; &gt; length UTF-8 ones.<br>&gt; <br>&gt; "Most efficient yet fast" is a matter of perspective. For the apps I  <br>&gt; work on, UTF-8 is better than your scheme because space efficiency is  <br>&gt; more important than random access, and time spent encoding and  <br>&gt; decoding UTF-8 would dwarf time spent scanning for random access.<br>&gt; <br>&gt; As soon as you try to support more than 256 characters, there are  <br>&gt; trade-offs to be made. The "ideal" solution depends on your  <br>&gt; application. How important is memory efficiency vs. space efficiency?  <br>&gt; How about stream processing vs random access? What format is your  <br>&gt; input and output? Which characters do you need to support, and how  <br>&gt; many of them are there?<br>&gt; <br>&gt; A good string library will be flexible enough to allow its users to  <br>&gt; make those trade-offs according to the needs of the application.<br>&gt; <br>&gt; &gt; Conversion to/form UTF-8 could probably also be simpler with help  <br>&gt; &gt; of bit arithmetic algorithms, which would be tailored differently  <br>&gt; &gt; for each of proposed three string subclasses above.<br>&gt; <br>&gt; Yes, a couple of well designed primitives would help quite a bit.<br>&gt; <br>&gt; Colin<br><br /><hr />Play free games, earn tickets, get cool prizes! Join Live Search Club.   <a href='http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink' target='_new'>Join Live Search Club!</a></body>
</html>