comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.s.sandberg@bahnhof.se>
Subject: Re: Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?)
Date: Wed, 8 Aug 2018 08:39:38 +0200
Date: 2018-08-08T08:39:38+02:00	[thread overview]
Message-ID: <LewaD.910619$aC7.586128@fx03.fr7> (raw)
In-Reply-To: <pkd6jt$lr1$1@franka.jacob-sparre.dk>



On 08/08/18 00:31, Randy Brukardt wrote:
> "Per Sandberg" <per.s.sandberg@bahnhof.se> wrote in message
> news:FS9aD.1212605$Vv2.679376@fx06.am4...
> ...
>> Yes these source-code libraries are strongly associated with GNAT, but
>> most of the code is compilable with "any" ada-12 compiler without change
>> and they are battle proven so whey not use them instead of reinventing the
>> wheel.
> 
> (1) There aren't any other full Ada-2012 compilers, so this is an empty
> statement. Portable Ada code has to be in Ada 2005 at most.
> (2) Code that is truly portable has to be have been compiled with multiple
> Ada compilers. Every Ada compiler has bugs, and some of those bugs include
> allowing too much. (Experience is that around 20% of new ACATS tests for
> existing features fail on existing compilers; that seems pretty constant
> regardless of whose compiler you are talking about. Errors of omission are
> extremely difficult to detect.)
> 
> You can't really know if you've used some feature that isn't supposed to be
> legal until you've at least tried the code on other compilers. You also
> can't easily see if you've unintentionally used compiler-specific stuff.
> Most of the GNAT libraries I've looked at are full of 'Img and
> 'Unrestricted_Access and similar non-Ada things.
> (3) I personally only care about things that will compile with Janus/Ada
> (90% of what I write starts there), and it is (intentionally) weird enough
> that nothing much will work. For instance, Integer is 16-bit on Janus/Ada,
> and that seems to break about 100% of outside code I try on it.
> 
>                                                   Randy.
> 
> 
> 
Randy,
I think you put the finger on the problem with time, and that is that 
time implies change. And to require every newly written software to be 
compatible with every previous compiler does not work since that would 
mean freezing time. However to require new compilers to accept old code 
(sometimes with minor modification due to new keywords for example) is 
complete different story.
And time still ticks with the Ada202x reference manual available as draft.

Its exactly the same with C++ where we got C++98, C++03, C++11, C++14, 
C++17, and C++20 lurking in the shadows, where the where the main 
difference compared to Ada is that the pain to throw C++98-code on an 
C++19-compiler is huge whereas the pain to throw Ada83-code to 
Ada12-compiler is fairly negligible.
And to throw C++17 code on an C++03 compiler is completely unthinkable.

/Per


  reply	other threads:[~2018-08-08  6:39 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-04  1:37 Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?) Hazz
2018-08-04  1:59 ` Lucretia
2018-08-04  2:21 ` Hazz
2018-08-04  9:07 ` Jeffrey R. Carter
2018-08-06  6:35   ` briot.emmanuel
2018-08-06 22:15     ` Randy Brukardt
2018-08-07  5:12       ` Per Sandberg
2018-08-07 22:31         ` Randy Brukardt
2018-08-08  6:39           ` Per Sandberg [this message]
2018-08-08 17:59             ` Randy Brukardt
2018-08-08 18:28               ` Dmitry A. Kazakov
2018-08-08 19:23                 ` Dan'l Miller
2018-08-07  8:33       ` Dmitry A. Kazakov
2018-08-07 13:59         ` Dan'l Miller
2018-08-07 22:36         ` Randy Brukardt
2018-08-09 17:08           ` G. B.
2018-08-07  0:01 ` Aurele
2018-08-12 20:56   ` Matt Borchers
2018-08-13 10:23     ` Aurele Vitali
2018-08-16  9:58       ` alby.gamper
2018-08-16 12:29         ` Aurele Vitali
2018-08-16 12:52           ` alby.gamper
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox