From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: UTF-8 Output and "-gnatW8"
Date: Tue, 29 Mar 2016 17:35:20 -0500
Date: 2016-03-29T17:35:20-05:00 [thread overview]
Message-ID: <ndevv9$smu$1@loke.gir.dk> (raw)
In-Reply-To: 6406289c-06a8-46d1-a633-8a1c8a22f79b@googlegroups.com
"Michael Rohan" <michael@zanyblue.com> wrote in message
news:6406289c-06a8-46d1-a633-8a1c8a22f79b@googlegroups.com...
...
>It does, however, feel like there is something missing where it's
>"difficult" to have
>a Wide_String literal without having to have extra meta data for compiler
>(-gnatW8)
>or having a relatively cumbersome concatenation of Wide_Character's based
>on
>code points. BTW, the performance of GNAT for such a concatenated string
>is
>pretty dismal.
Both of these are clearly implementation issues as opposed to language
issues. The language standard can have nothing to say about what incantation
it takes to compile a program, and how one identifies the source format is
just a small part of that. (As I previously said, a new compiler would
probably make UTF-8 format the default, but changing the default on an
existing compiler could cause trouble for many existing customers - I
wouldn't expect such a change to be made lightly.) Usability of a compiler
is completely out of bounds for a language standard (*any* language
standard). (Janus/Ada doesn't support character values > 255 in any format;
it still conforms to the older Ada Standards.)
And performance, of course, is clearly an implementation issue. (I also
would be quite surprised if that was an issue for truly constant strings. I
could see how it might be an issue if part of the string is calculated from
some variable, but since Ada defines and requires static strings in some
circumstances, an Ada compiler has the machinery to avoid any runtime costs
for static string expressions.)
In any case, GNAT /= Ada.
Randy.
next prev parent reply other threads:[~2016-03-29 22:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-24 17:23 UTF-8 Output and "-gnatW8" Michael Rohan
2016-03-24 22:09 ` Randy Brukardt
2016-03-24 22:34 ` Michael Rohan
2016-03-25 19:15 ` Randy Brukardt
2016-03-25 5:54 ` rieachus
2016-03-25 19:18 ` Randy Brukardt
2016-03-28 22:48 ` Michael Rohan
2016-03-29 7:44 ` Dmitry A. Kazakov
2016-03-29 8:39 ` G.B.
2016-03-29 22:35 ` Randy Brukardt [this message]
2016-04-04 10:52 ` G.B.
2016-04-05 0:39 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox