comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: What is the best method for transmitting objects/tagged records?
Date: Thu, 9 Jun 2011 15:55:11 -0500
Date: 2011-06-09T15:55:11-05:00	[thread overview]
Message-ID: <isrbvk$ohj$1@munin.nbi.dk> (raw)
In-Reply-To: m2sjrj4mpe.fsf@pushface.org

"Simon Wright" <simon@pushface.org> wrote in message 
news:m2sjrj4mpe.fsf@pushface.org...
> "Randy Brukardt" <randy@rrsoftware.com> writes:
>
>> Right, but you don't need to use Ada.Tags (or anything tags) in order
>> to stream tagged types. Just use the provided T'Class'Input and
>> T'Class'Output attributes. For those to have portable results, you
>> need to specify your external tag values for your tagged types (we
>> previously discussed that).
>
> Not sure what you mean by 'portable' here, Randy; are compilers required
> to conform to standard representations on the wire? Because GNAT
> certainly doesn't out of the box (for example, it uses native byte
> order).

Good point; the byte order could change. As a matter of course, I would only 
put things (records) on the wire that already had representation clauses 
fully specifying their layout (and that includes external tag). In that 
case, your results will continue to work until/unless you have to change 
processors (the native byte order surely doesn't change).

Ada doesn't out of the box support any sort of hetrogeneous partitioning 
(the assumption is that all of the processors are similar) and if your 
implementation provides some it is doing so outside of Ada. (That is, if you 
have partitions with different native byte orders communicating, you are 
trying to do something Ada was not designed for.)

                                           Randy.





  reply	other threads:[~2011-06-09 20:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07  0:26 What is the best method for transmitting objects/tagged records? Shark8
2011-06-07  1:11 ` Jeffrey Carter
2011-06-07  1:24   ` Shark8
2011-06-07  2:53     ` tmoran
2011-06-07 14:18       ` Shark8
2011-06-07 18:06         ` tmoran
2011-06-08 23:16           ` Shark8
2011-06-09  0:49             ` Randy Brukardt
2011-06-09  1:12               ` Shark8
2011-06-09  5:07               ` Simon Wright
2011-06-09 20:55                 ` Randy Brukardt [this message]
2011-06-09 20:57                   ` Randy Brukardt
2011-06-09 23:42                     ` tmoran
2011-06-11 16:52                       ` Marco
2011-06-10  7:16                   ` Simon Wright
2011-06-10  9:40                     ` AdaMagica
2011-06-10 13:32                     ` Robert A Duff
2011-06-10 22:06                       ` Simon Wright
2011-06-10 23:05                         ` Robert A Duff
2011-06-07  3:25     ` Randy Brukardt
2011-06-07 14:19       ` Shark8
replies disabled

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