comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Ada in teaching
Date: Wed, 15 Jul 2009 11:08:54 -0400
Date: 2009-07-15T11:08:54-04:00	[thread overview]
Message-ID: <nospam-EA552D.11085415072009@news.aioe.org> (raw)
In-Reply-To: 4a5d17f2$0$30231$9b4e6d93@newsspool1.arcor-online.net

In article <4a5d17f2$0$30231$9b4e6d93@newsspool1.arcor-online.net>,
 Georg Bauhaus <rm.tsoh.plus-bug.bauhaus@maps.futureapps.de> wrote:

> > John B. Matthews wrote:

[...]
> Java arrays cannot fully take advantage of Java generics, in 
> particular compile time checking is basically off, so the sloppy 
> base type system strikes again.

It's an unfortunate legacy.

> Another language corner case that I imagine must be explained
> to students of the (Java) language at length.

The usual explanation is that arrays are covariant, with 
type-checking enforced at runtime; Java generic types are 
invariant, checked only at compile-time [1].
 
> > and task oriented support for concurrent programming [2].
> 
> Yes, task *oriented*.

Indeed. I think Java's original support for concurrent programming was 
offered at much too low a level. Ada 83's level may have been a bit too 
high, with protected types, for example, added in Ada 95 and enhanced 
in Ada 2005 [3].

In both areas, type-checking and concurrent programming, I see Ada and 
Java moving in similar directions, if not actually converging.

I don't teach except in the sense of occasionally being asked to guide 
students of one language in using the other. I'd be interested to learn 
of any reference that outlines corresponding features of the two 
languages.

Students (or teachers) of both languages may like to look at these 
simple projects done in both Ada [4, 5] and Java [6, 7], respectively.

[...]

[1]<http://java.sun.com/docs/books/effective/generics.pdf>
[2]<http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/
package-summary.html>
[3]<http://www.adaic.com/standards/05rat/html/Rat-1-3-4.html>
[4]<http://home.roadrunner.com/~jbmatthews/misc/groots.html>
[5]<http://home.roadrunner.com/~jbmatthews/jumble.html>
[6]<http://sites.google.com/site/drjohnbmatthews/polyroots>
[7]<http://sites.google.com/site/drjohnbmatthews/jumble>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>



  parent reply	other threads:[~2009-07-15 15:08 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-10 14:53 Ariane 5 Failure from 1996 John McCabe
2009-07-10 15:04 ` Martin
2009-07-10 15:09   ` John McCabe
2009-07-10 16:27     ` Hibou57 (Yannick Duchêne)
2009-07-10 18:17     ` John B. Matthews
2009-07-12 14:08       ` Marco
2009-07-12 14:34         ` Dmitry A. Kazakov
2009-07-13 10:03         ` John McCabe
2009-07-14  0:53         ` John B. Matthews
2009-07-14 13:49           ` Nicholas Paul Collin Gloucester
2009-07-14 15:16             ` John B. Matthews
2009-07-14 17:29               ` Nicholas Paul Collin Gloucester
2009-07-14 20:18               ` Ada in teaching (was: Ariane 5 Failure from 1996) Georg Bauhaus
2009-07-14 21:10                 ` Adam Beneschan
2009-07-14 22:36                 ` John B. Matthews
2009-07-14 23:42                   ` Ada in teaching Georg Bauhaus
2009-07-15  1:03                     ` (see below)
2009-07-15 15:08                     ` John B. Matthews [this message]
2009-07-15 15:36                       ` John McCabe
2009-07-15 18:28                         ` John B. Matthews
2010-01-08 13:19             ` Ariane 5 Failure from 1996 Nicholas Paul Collin Gloucester
2010-01-08 17:34               ` Hibou57 (Yannick Duchêne)
2009-07-10 16:01   ` Bjarne Bäckström
2009-07-14 20:50   ` sjw
2009-07-10 15:26 ` Albrecht Käfer
2009-07-10 15:38 ` Adam Beneschan
2009-07-10 15:45 ` jonathan
2009-07-10 18:29   ` John McCabe
2009-07-10 18:44     ` John McCabe
2009-07-10 20:10       ` jonathan
2009-07-11 16:54         ` John McCabe
2009-07-14 14:33           ` Nicholas Paul Collin Gloucester
2009-07-14 14:39             ` John McCabe
2009-07-10 19:46     ` Niklas Holsti
2009-07-11 14:21       ` Albrecht Käfer
2009-07-11 16:55         ` John McCabe
2009-07-10 21:51 ` jimmaureenrogers
replies disabled

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