From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: An Example for Ada.Execution_Time
Date: Tue, 28 Dec 2010 21:10:30 -0600
Date: 2010-12-28T21:10:30-06:00 [thread overview]
Message-ID: <ife8r9$9m6$1@munin.nbi.dk> (raw)
In-Reply-To: ifbi5c$rqt$1@news.eternal-september.org
"BrianG" <briang000@gmail.com> wrote in message
news:ifbi5c$rqt$1@news.eternal-september.org...
...
> I asked for:
> >> An algorithm comparison program might look like:
> >>
> >> with Ada.Execution_Time ;
> >> with Ada.Execution_Time.Timers ;
> >Given the below program, please add some of the missing details to
> >show how this can be useful without also "with Ada.Real_Time".
> >Neither Execution_Time or Execution_Time.Timers provides any value
> >that can be used directly.
This seems like a totally silly question. There are a lot of well-designed
packages in Ada that don't do anything useful without at least one or more
other packages. Indeed, if you consider "Standard" to be a separate package
(and it is), there are hardly any packages that *don't* require some other
package to be useful.
More to the point, you probably need Ada.IO_Exceptions to use
Ada.Directories effectively (use of any package without error handling is
toy use); Ada.Streams.Stream_IO require use of Ada.Streams (a separate
package, which you will need separate use clauses for even if you get it
imported automatically); Ada.Strings.Maps aren't useful for anything unless
you combine them with one of the string handling packages, and so on.
Perhaps you would have been happier if Ada.Execution_Time had been a child
of Ada.Real_Time (exactly as in the string case), but this wouldn't change
anything.
The odd thing is that Duration is defined in Standard, rather than some more
appropriate package. Giving this some sort of religious importance is beyond
silly...
Randy.
next prev parent reply other threads:[~2010-12-29 3:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-27 18:26 An Example for Ada.Execution_Time anon
2010-12-28 2:31 ` BrianG
2010-12-28 13:43 ` anon
2010-12-29 3:10 ` Randy Brukardt [this message]
2010-12-30 23:51 ` BrianG
2010-12-31 9:11 ` Dmitry A. Kazakov
2010-12-31 12:42 ` Niklas Holsti
2010-12-31 14:15 ` Dmitry A. Kazakov
2010-12-31 18:57 ` Niklas Holsti
2011-01-01 13:39 ` Dmitry A. Kazakov
2011-01-01 20:25 ` Niklas Holsti
2011-01-03 8:50 ` Dmitry A. Kazakov
2010-12-31 13:05 ` Simon Wright
2010-12-31 14:14 ` Dmitry A. Kazakov
2010-12-31 14:24 ` Robert A Duff
2010-12-31 22:40 ` Simon Wright
2011-01-01 0:07 ` 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