comp.lang.ada
 help / color / mirror / Atom feed
* Help me compare Ada-95 OOP to Java
@ 1997-12-17  0:00 Van Snyder
  1997-12-19  0:00 ` Ben Brosgol
  0 siblings, 1 reply; 2+ messages in thread
From: Van Snyder @ 1997-12-17  0:00 UTC (permalink / raw)



Some people have argued that the intellectual simplicity of Java's
"extensibility implies polymorphism" model compensates for a lack of
control over run-time dispatch.

How expensive is run-time dispatch?  That is, what's the incremental cost
of a call if the actual arguments are <type>'class instead of just <type>?

How much more difficult is it to master the difference between monomorphic
extensibility and polymorphic extensibility?

Object oriented facilities are presently under design for addition to
Fortran in the 2002 standard.  I'm arguing for a model as much like the
Ada-95 model as will fit in the confines of compatibility to Fortran-95.

Others appear to prefer something more like a hybrid of C++ and Ada-95:
Data are either monomorphic or polymorphic, and calls only dispatch if
polymorphic actual arguments are associated to monomorphic formals, but
the procedure call syntax looks like reference to a component of a record --
the Smalltalk "Send a message to the object" paradigm -- and the type of
only one formal argument of a type-bound procedure "extends" when the
procedure is inherited into a child type (the "receiver" argument).

Others want to go even further and adopt something more like the Java
model:  Extensibility implies polymorphism -- all objects of extensible or
extended type are polymorphic.

Do you have an opinion (or, better yet, measurements) of the benefits and
costs of these features in Ada-95?

E-mail would help me most.

-- 
What fraction of Americans believe   |  Van Snyder
Wrestling is real and NASA is fake?  |  vsnyder@math.jpl.nasa.gov




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Help me compare Ada-95 OOP to Java
  1997-12-17  0:00 Help me compare Ada-95 OOP to Java Van Snyder
@ 1997-12-19  0:00 ` Ben Brosgol
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Brosgol @ 1997-12-19  0:00 UTC (permalink / raw)
  To: Van Snyder


The Tri-Ada '97 Conference Proceedings include a paper that I wrote, "A
Comparison of the Object-Oriented Features of Ada 95 and Java", that
sounds as though it might be relevant to the question that you pose :-)

If you do not have a copy of these proceedings, then ACM SIGAda will be
happy to fill this gap in your library.  Send e-mail to acmpubs@acm.org
and indicate ACM Order Number 825970.

Ben Brosgol, SIGAda Chair
brosgol@aonix.com




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-12-19  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-17  0:00 Help me compare Ada-95 OOP to Java Van Snyder
1997-12-19  0:00 ` Ben Brosgol

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