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=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:ad4:5965:0:b0:440:fee0:bef2 with SMTP id eq5-20020ad45965000000b00440fee0bef2mr22833807qvb.68.1649570329949; Sat, 09 Apr 2022 22:58:49 -0700 (PDT) X-Received: by 2002:a81:e24c:0:b0:2eb:4513:3793 with SMTP id z12-20020a81e24c000000b002eb45133793mr20842567ywl.204.1649570329733; Sat, 09 Apr 2022 22:58:49 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 9 Apr 2022 22:58:49 -0700 (PDT) In-Reply-To: <62515f7a$0$25324$426a74cc@news.free.fr> Injection-Info: google-groups.googlegroups.com; posting-host=2a02:c207:2020:5933:0:0:0:1; posting-account=niG3UgoAAAD7iQ3takWjEn_gw6D9X3ww NNTP-Posting-Host: 2a02:c207:2020:5933:0:0:0:1 References: <607b5b20$0$27442$426a74cc@news.free.fr> <86mttuk5f0.fsf@stephe-leake.org> <62515f7a$0$25324$426a74cc@news.free.fr> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3962d55d-10e8-4dff-9ad3-847d69c3c337n@googlegroups.com> Subject: Re: Ada and Unicode From: Vadim Godunko Injection-Date: Sun, 10 Apr 2022 05:58:49 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:63727 List-Id: On Saturday, April 9, 2022 at 1:27:08 PM UTC+3, DrPi wrote: >=20 > On the Ada side, I've still not understood how to correctly deal with=20 > all this stuff.=20 >=20 Take a look at https://github.com/AdaCore/VSS=20 Ideas behind this library is close to ideas of types separation in Python3.= String is a Virtual_String, byte sequence is Stream_Element_Vector. Need t= o convert byte stream to string or back - use Virtual_String_Encoder/Virtua= l_String_Decoder. I think ((Wide_)Wide_)(Character|String) is obsolete for modern systems and= programming languages; more cleaner types and API is a requirement now. Th= e only case when old character/string types is really makes value is low re= sources embedded systems; in other cases their use generates a lot of hidde= n issues, which is very hard to detect.