From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=BAYES_00,XPRIO autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada and Unicode Date: Tue, 12 Apr 2022 01:13:08 -0500 Organization: A noiseless patient Spider Message-ID: References: <607b5b20$0$27442$426a74cc@news.free.fr> <86mttuk5f0.fsf@stephe-leake.org> <62515f7a$0$25324$426a74cc@news.free.fr> <3962d55d-10e8-4dff-9ad3-847d69c3c337n@googlegroups.com> Injection-Date: Tue, 12 Apr 2022 06:13:09 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="8fde082ee3f0ae2a21e197452c3adfd5"; logging-data="9152"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AB+uKnlppNkpxgMIBwsya2esjNij5o6w=" Cancel-Lock: sha1:ci59KMKBmkw2l3RFdurLE8eIBSg= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 X-RFC2646: Format=Flowed; Original X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-Priority: 3 X-MSMail-Priority: Normal Xref: reader02.eternal-september.org comp.lang.ada:63733 List-Id: "Vadim Godunko" wrote in message news:3962d55d-10e8-4dff-9ad3-847d69c3c337n@googlegroups.com... ... >I think ((Wide_)Wide_)(Character|String) is obsolete for modern systems and >programming languages; more cleaner types and API is a requirement now. ...which essentially means Ada is obsolete in your view, as String in particular is way too embedded in the definition and the language-defined units to use anything else. You'd end up with a mass of conversions to get anything done (the main problem with Ada.Strings.Unbounded). Or I suppose you could replace pretty much the entire library with a new one. But now you have two of everything to confuse newcomers and you still have a mass of old nonsense weighing down the language and complicating implementations. >The only case when old character/string types is really makes value is low >resources embedded systems; ... ...which of course is at least 50% of the use of Ada, and probably closer to 90% of the money. Any solution for Ada has to continue to meet the needs of embedded programmers. For instance, it would need to support fixed, bounded, and unbounded versions (solely having unbounded strings would not work for many applications, and indeed not just embedded systems need to restrict those -- any long-running server has to control dynamic allocation) >...in other cases their use generates a lot of hidden issues, which is very >hard to detect. At least some of which occur because a string is not an array, and the forcible mapping to them never worked very well. The Z-80 Pascals that we used to implement the very earliest versions of Ada had more functional strings than Ada does (by being bounded and using a library for most operations) - they would have been way easier to extend (as the Python ones were, as an example). Randy.