Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Be *excellent* to each other." -- Bill, or Ted, in Bill and Ted's Excellent Adventure


devel / comp.lang.ada / Re: [ANN] UXStrings package available (UXS_20220226).

SubjectAuthor
* [ANN] UXStrings package available (UXS_20220226).Blady
`* Re: [ANN] UXStrings package available (UXS_20220226).Vincent D.
 `* Re: [ANN] UXStrings package available (UXS_20220226).Blady
  `* Re: [ANN] UXStrings package available (UXS_20220226).Vincent D.
   `* Re: [ANN] UXStrings package available (UXS_20220226).Simon Wright
    `- Re: [ANN] UXStrings package available (UXS_20220226).G.B.

1
[ANN] UXStrings package available (UXS_20220226).

<svm0pl$1tdr$2@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6685&group=comp.lang.ada#6685

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!94hOaNt1XeBftaF4GXC1Fg.user.46.165.242.75.POSTED!not-for-mail
From: p.p...@orange.fr (Blady)
Newsgroups: comp.lang.ada
Subject: [ANN] UXStrings package available (UXS_20220226).
Date: Tue, 1 Mar 2022 21:47:49 +0100
Organization: Aioe.org NNTP Server
Message-ID: <svm0pl$1tdr$2@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="62907"; posting-host="94hOaNt1XeBftaF4GXC1Fg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.4.1
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Blady - Tue, 1 Mar 2022 20:47 UTC

Hello,

The objective of UXStrings is Unicode and dynamic length support for
strings in Ada.

UXStrings API is inspired from Ada.Strings.Unbounded in order to
minimize adaptation work from existing Ada source codes.

Changes from last publication:
- Ada.Strings.UTF_Encoding.Conversions fix is no longer needed with GNAT
CE 2021
- A few fix

Available on GitHub (https://github.com/Blady-Com/UXStrings) and also on
Alire (https://alire.ada.dev/crates/uxstrings.html).

Feedback is welcome on actual use cases.

Regards, Pascal.

Re: [ANN] UXStrings package available (UXS_20220226).

<52dec3b7-d1ab-4637-a96e-7bde3cab95f4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6718&group=comp.lang.ada#6718

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:9e17:0:b0:67e:cd1:c852 with SMTP id h23-20020a379e17000000b0067e0cd1c852mr17949744qke.615.1648028560442;
Wed, 23 Mar 2022 02:42:40 -0700 (PDT)
X-Received: by 2002:a81:524e:0:b0:2e5:e690:3538 with SMTP id
g75-20020a81524e000000b002e5e6903538mr22920642ywb.145.1648028560295; Wed, 23
Mar 2022 02:42:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Wed, 23 Mar 2022 02:42:40 -0700 (PDT)
In-Reply-To: <svm0pl$1tdr$2@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=90.63.246.187; posting-account=hya6vwoAAADTA0O27Aq3u6Su3lQKpSMz
NNTP-Posting-Host: 90.63.246.187
References: <svm0pl$1tdr$2@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <52dec3b7-d1ab-4637-a96e-7bde3cab95f4n@googlegroups.com>
Subject: Re: [ANN] UXStrings package available (UXS_20220226).
From: vincent....@gmail.com (Vincent D.)
Injection-Date: Wed, 23 Mar 2022 09:42:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Vincent D. - Wed, 23 Mar 2022 09:42 UTC

Le mardi 1 mars 2022 à 21:47:51 UTC+1, Blady a écrit :
> Feedback is welcome on actual use cases.

Hello Pascal,
Thank you very much for this great improvement over Unbounded Strings !
Sure a short string optimization, such a the one implemented in GNATColl.XStrings, would be appreciated.
As a personnal taste, I would appreciate to have a UXCharacter type that is a Wide_Wide_Character, and an ASCII_Character, or a Char that is a subtype of it.
I think that the ASCII_String could be a derived type of UXString since it is a proper subtype, that specializes the UXString to only ASCII Characters.. Some primitive operations can then be overriden to take advantage of the direct mapping between bytes and characters.
Regards,
Vincent

Re: [ANN] UXStrings package available (UXS_20220226).

<t1imts$cac$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6731&group=comp.lang.ada#6731

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!NfdNc+Wt3EVimQY6QC0FdA.user.46.165.242.75.POSTED!not-for-mail
From: p.p...@orange.fr (Blady)
Newsgroups: comp.lang.ada
Subject: Re: [ANN] UXStrings package available (UXS_20220226).
Date: Thu, 24 Mar 2022 22:13:31 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t1imts$cac$1@gioia.aioe.org>
References: <svm0pl$1tdr$2@gioia.aioe.org>
<52dec3b7-d1ab-4637-a96e-7bde3cab95f4n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="12620"; posting-host="NfdNc+Wt3EVimQY6QC0FdA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.4.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Blady - Thu, 24 Mar 2022 21:13 UTC

Le 23/03/2022 à 10:42, Vincent D. a écrit :
> Le mardi 1 mars 2022 à 21:47:51 UTC+1, Blady a écrit :
>> Feedback is welcome on actual use cases.
>
> Hello Pascal,
> Thank you very much for this great improvement over Unbounded Strings !
> Sure a short string optimization, such a the one implemented in GNATColl.XStrings, would be appreciated.
> As a personnal taste, I would appreciate to have a UXCharacter type that is a Wide_Wide_Character, and an ASCII_Character, or a Char that is a subtype of it.
> I think that the ASCII_String could be a derived type of UXString since it is a proper subtype, that specializes the UXString to only ASCII Characters. Some primitive operations can then be overriden to take advantage of the direct mapping between bytes and characters.

Hello Vincent,

I had some thoughts about "generic" Character concept and felt the user
would mostly choose Unicode representation (same as Wide_Wide_Character)
which brings the maximum available character set at a small cost of 4 bytes.
Ada standard library comes will all sort of conversion subprograms to
ASCII, Latin-1...
Thus, for UXStrings, I choose Unicode_Character type as "generic"
character (which renames Wide_Wide_Character), see for instance:
https://github.com/Blady-Com/UXStrings/blob/master/src/uxstrings1.ads#L58

May you be more specific?
What advantages for the user would bring a UXCharacter type?

egards, Pascal.

Re: [ANN] UXStrings package available (UXS_20220226).

<773fc0a2-e7d9-4967-a7e9-bd1d167c5539n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6773&group=comp.lang.ada#6773

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:caa:b0:441:2e8f:f398 with SMTP id s10-20020a0562140caa00b004412e8ff398mr31007624qvs.61.1648645375795;
Wed, 30 Mar 2022 06:02:55 -0700 (PDT)
X-Received: by 2002:a05:620a:2728:b0:680:d667:9e8b with SMTP id
b40-20020a05620a272800b00680d6679e8bmr10821233qkp.275.1648645375344; Wed, 30
Mar 2022 06:02:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!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: Wed, 30 Mar 2022 06:02:55 -0700 (PDT)
In-Reply-To: <t1imts$cac$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=90.63.246.187; posting-account=hya6vwoAAADTA0O27Aq3u6Su3lQKpSMz
NNTP-Posting-Host: 90.63.246.187
References: <svm0pl$1tdr$2@gioia.aioe.org> <52dec3b7-d1ab-4637-a96e-7bde3cab95f4n@googlegroups.com>
<t1imts$cac$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <773fc0a2-e7d9-4967-a7e9-bd1d167c5539n@googlegroups.com>
Subject: Re: [ANN] UXStrings package available (UXS_20220226).
From: vincent....@gmail.com (Vincent D.)
Injection-Date: Wed, 30 Mar 2022 13:02:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 22
 by: Vincent D. - Wed, 30 Mar 2022 13:02 UTC

Le jeudi 24 mars 2022 à 22:13:40 UTC+1, Blady a écrit :
> Thus, for UXStrings, I choose Unicode_Character type as "generic"
> character (which renames Wide_Wide_Character), see for instance:
> https://github.com/Blady-Com/UXStrings/blob/master/src/uxstrings1.ads#L58
>
> May you be more specific?
> What advantages for the user would bring a UXCharacter type?

Hello Pascal,
We agree that a type for Unicode Code Point is mandatory. I find the name Wide_Wide_Character clumsy, and I would appreciate to have shorter names so as a personal taste I would simply prefer "Unicode" to "Unicode_Character".
Then I realize - and hence I contredict my own previous post - that the important concept for the user is the Grapheme cluster . So in fact a UXCharacter should simply be a subtype of UXString storing one Grapheme Cluster.
Just my 2 cents.
Regards,

Vincent

Re: [ANN] UXStrings package available (UXS_20220226).

<lyv8vvtdy8.fsf@pushface.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6774&group=comp.lang.ada#6774

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!vNObJwB5W4WN632vBkQn9g.user.46.165.242.75.POSTED!not-for-mail
From: sim...@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: [ANN] UXStrings package available (UXS_20220226).
Date: Wed, 30 Mar 2022 20:53:03 +0100
Organization: Aioe.org NNTP Server
Message-ID: <lyv8vvtdy8.fsf@pushface.org>
References: <svm0pl$1tdr$2@gioia.aioe.org>
<52dec3b7-d1ab-4637-a96e-7bde3cab95f4n@googlegroups.com>
<t1imts$cac$1@gioia.aioe.org>
<773fc0a2-e7d9-4967-a7e9-bd1d167c5539n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="21475"; posting-host="vNObJwB5W4WN632vBkQn9g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin)
Cancel-Lock: sha1:kMLXkgpXdS5Zhbi6eO6n89PUhk8=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Simon Wright - Wed, 30 Mar 2022 19:53 UTC

"Vincent D." <vincent.diemunsch@gmail.com> writes:

> Then I realize - and hence I contredict my own previous post - that
> the important concept for the user is the Grapheme cluster . So in
> fact a UXCharacter should simply be a subtype of UXString storing one
> Grapheme Cluster.

Personally I like the semantic - I know this[1] is a macOS problem, but
it comes to something when you get a warning like

páck3.ads:1:10: warning: file name does not match unit name,
should be "páck3.ads"

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81114#c1

Re: [ANN] UXStrings package available (UXS_20220226).

<t24bl8$uo7$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6775&group=comp.lang.ada#6775

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bauh...@notmyhomepage.invalid (G.B.)
Newsgroups: comp.lang.ada
Subject: Re: [ANN] UXStrings package available (UXS_20220226).
Date: Thu, 31 Mar 2022 15:51:35 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <t24bl8$uo7$1@dont-email.me>
References: <svm0pl$1tdr$2@gioia.aioe.org>
<52dec3b7-d1ab-4637-a96e-7bde3cab95f4n@googlegroups.com>
<t1imts$cac$1@gioia.aioe.org>
<773fc0a2-e7d9-4967-a7e9-bd1d167c5539n@googlegroups.com>
<lyv8vvtdy8.fsf@pushface.org>
Reply-To: nonlegitur@notmyhomepage.de
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 31 Mar 2022 13:51:36 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f37465336c3d2fc93d27ed8270466124";
logging-data="31495"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wGXG8YAllWN0X8W/Gxd+2FO0ZnikrW08="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.7.0
Cancel-Lock: sha1:hDdkb/dZthuX5TR6mb9yYXHOqsQ=
In-Reply-To: <lyv8vvtdy8.fsf@pushface.org>
Content-Language: en-US
 by: G.B. - Thu, 31 Mar 2022 13:51 UTC

On 30.03.22 21:53, Simon Wright wrote:

> Personally I like the semantic - I know this[1] is a macOS problem, but
> it comes to something when you get a warning like
>
> páck3.ads:1:10: warning: file name does not match unit name,
> should be "páck3.ads"
>
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81114#c1

Slightly OT, varying the PR:

"Right. And people should use sane floating point types
(and sane CPUs to begin with)."

7-bit people have created much work in the past,
by insisting that human beings should succumb to ASCII.
Learn how to type. Start at LE vs BE if flexibility vexes you.
Even C was ahead of its time by defining plain char.
See gcc's -funsigned-char vs libraries.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor