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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 04 Jul 2018 08:37:54 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Strange crash on custom iterator Date: Wed, 04 Jul 2018 09:37:54 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <1ce9b9c8-b9cb-4ff4-b4c7-fe4827fea15b@googlegroups.com> <1f634e80-a1e7-4fb1-8cdf-5db6a773f36d@googlegroups.com> <9524b7ed-b3c4-4775-9e62-7455bf1633c1@googlegroups.com> <7180e44d-6e11-4df3-ae01-96829298c03c@googlegroups.com> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-jX8PdVWRxeo88gvImhdZqnljMrOZp6ihAo8jcTSjj3CIf1pQq+SdGDLoz8KpkIAXmKYcI+Qd+ns2Ybi!9cKWZ0mg7kFJRdJrOHl6hkKEGwFsCHx9Bo51icZHZjfG8n14HgtAiAtaRdHEoMHOWV4afO9s X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3250 Xref: reader02.eternal-september.org comp.lang.ada:53585 Date: 2018-07-04T09:37:54-04:00 List-Id: On Tue, 3 Jul 2018 18:59:57 -0700 (PDT), Lucretia declaimed the following: > >I've just read it. Yeah, I agree that Ada should be able to extend records with data, not functions/procedures, but I don't see how the lack of that is a hindrance to creating a decent unicode lib. The fact that he refuses to answer such a simple question, i.e "WTF are you on about?" explains a lot. Ah, but what IS a "decent unicode lib(rary)"? There is a regular over in comp.lang.python who tends to rant that Python 3.2 (maybe 3.1) "broke" unicode handling because some of his non-real-world benchmarks run slower. Current Python3 internally uses 1, 2, or 4 bytes per character in a string based upon the widest individual character. If everything fits in 8-bits, it uses 1-byte/char strings. If even one character requires 16-bits, the entire string will use 2-byte/char. Of course, since strings are immutable in Python, there is no concern about replacing one char in a 1-byte/char string with a 2-byte char -- one has to create a whole new string, which operation detects the presence of a 2-byte char and allocates all characters as 2-byte wide. The scheme allows for direct indexing of characters -- no confusion of indexing a prefix byte, or misinterpreting a suffix byte. I don't think such a string type would go far in Ada: one loses mutation in place, and also can not define memory usage limits ahead of time (unless one provides for worst case 4-byte/char -- in which case one might just use that all the way through and retain in place mutation). -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/