From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Your wish list for Ada 202X Date: Thu, 27 Mar 2014 18:54:39 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <7f1c01c5-3563-4b94-9831-152dbbf2ecdc@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 28 Mar 2014 01:54:41 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="bd5e647da89610f9b7b0763dacbc65f9"; logging-data="30885"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/peh1M3e4KanGof8jhGDLlFAj01c0SNU0=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: Cancel-Lock: sha1:Agsbag6foac+RQh+3mAXFBVrCq0= Xref: number.nntp.dca.giganews.com comp.lang.ada:185386 Date: 2014-03-27T18:54:39-07:00 List-Id: On 03/27/2014 02:50 PM, Randy Brukardt wrote: > > After all, if storage space is not a concern, Wide_Wide_String is the most > universal (and efficient) representation. It seems that it makes the most > sense to do operations in terms of that type and convert for storage -- > since that's what will happen naturally most of the time. (Presuming you're > not so American-centric that you don't care about anything beyond type > String. :-) I guess storage space is not a concern for Erlang. The string "ABC" is shorthand for the list [65, 66, 67], and apparently each "character" takes 8 bytes: 4 for the number, and 4 for the pointer to the next element in the list. Using 4 bytes for the character is sometimes called support for Unicode. Why not define Character as 32 bits and get rid of the Wide_ guys? -- Jeff Carter "My brain hurts!" Monty Python's Flying Circus 21