comp.lang.ada
 help / color / mirror / Atom feed
From: jayessay <nospam@foo.com>
Subject: Re: Ada 2005?
Date: 22 Dec 2004 13:02:26 -0500
Date: 2004-12-22T13:02:26-05:00	[thread overview]
Message-ID: <m3sm5yw6rx.fsf@rigel.goldenthreadtech.com> (raw)
In-Reply-To: 1ttqv5msigzua$.12l6jurw2zmd6$.dlg@40tude.net

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> >> I doubt that CLOS seriously approaches the problem.
> > 
> > That's an odd statement, and it is just uninformed opinion which
> > happens to be factually incorrect.
> 
> Maybe

There is no "maybe" about it.  You clearly have not studied this and
therefore any comment you make on it is indeed uninformed opinion.


> , but the very first page introduces "no-applicable-method". It is a
> non-starter for me. In my view the goal of safe MD design is to make
> dispatch failures impossible (checked at compile time).

For true MD, that requires solving the halting problem in any Turing
complete setting.  Good luck on your hopeless quest.  OTOH, if you
restrict things enough, what you are talking about is simply
overloading.  Ada already has that.


> BTW, I am deeply unsatisfied with Ada's "MD" raising run-time
> exceptions. It is tolerable because there was no better way, and
> only as an intermediate state to be replaced by a "right" MD in the
> future.

First, raising runtime exceptions is not only reasonable, it is the
only thing possible in non trivial situations.

Second, Ada has no MD.  That is a fact.  I make the prediction that it
will never have an MD.  Not because it is not possible to get "right"
(a context sensitive notion if there ever was one), but because the
language simply does not have the proper machinery to support it.  You
basically require a MOP and that will never be added to Ada for many
reasons, not the least of which is that it would simply be "too hard".


> > If you really would like to
> > understand the issues you should read the hyperspec sections noted
> > above as a start.  This will give you a programmer's (user's) view of
> > things albeit from a language specification angle.
> >
> > More information as to the what, hows, and wherefores can be found in
> > (1) and further insight and rationale is detailed in the MOP (2).
> > 
> > It's worth noting that CLOS method combination is actually
> > programmable.  There are several versions supplied as part of the
> > specification (including the 'standard method combination'), but the
> > protocol and semantics of how to define others is also defined and
> > specified.
> 
> I don't think it is a good idea. I believe that there must be one right
> way.

There is no such thing as "one right way" in any non trivial problem
solving context.  It has long been known in problem solving (not just
computation) that multiple ways of attacking a problem, and shifting
among those ways, tends to yield the the better solutions.

I thought Ada folks understood this (Ada being a multiparadigm
language).  The position you state looks much more like a Pythonista,
where the above is not just a mantra but the central dogmatism.  If
you like the idea of "the one right way" for any
computational/software issue, Python is definitely the place to be.
Not that they're "right", but they believe they are.


> Though, there might be some variations, in the case of commutative
> methods for example. But they should be "projections" of the main
> schemata.

I've seen situations where this claim is completely at odds with
reality.  Hence, your position would remove expressivity and force
programmers into pounding square pegs into round holes.  This is
_always_ a bad thing, though it is something that most language models
do impose.


> I really, wouldn't allow programmers to play with fire.

What you call "playing with fire", is simply another tool, with a well
defined and specified protocol.  Can it be abused?  Yes.  Does it
require someone above average to use it properly?  Most likely.  Can
it be exactly the right thing for an elegant solution to a thorny
problem?  Yes.

Being a denizen of cla I realize you are probably a B&D software
development proponent, and I suppose in certain contexts (mediocre
programmers, large beauracracies) your sentiment here makes sense.
But in general it is a bad idea which at best tends to produce what I
like to term "superior mediocrity" (which, to be fair, often wins big
in the "marketplace").


/Jon

-- 
'j' - a n t h o n y at romeo/charley/november com



  reply	other threads:[~2004-12-22 18:02 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-18  4:27 Ada 2005? conradwt
2004-12-18  8:08 ` Martin Dowie
2004-12-20 20:06   ` conradwt
2004-12-21  6:51     ` Martin Dowie
2004-12-18  8:47 ` christov
2004-12-19  3:28   ` Randy Brukardt
2004-12-19 19:11     ` christov
2004-12-19 22:07       ` Ada User Journal (was: Re: Ada 2005?) Dirk Craeynest
2004-12-19 22:34         ` Ada User Journal Florian Weimer
2004-12-20  9:19           ` Martin Krischik
2004-12-20 11:02             ` Florian Weimer
2004-12-20 12:22               ` Thomas Hühn
2004-12-27 13:16                 ` Florian Weimer
2004-12-21  0:15   ` Ada 2005? David Botton
2004-12-18  8:51 ` Martin Krischik
2004-12-18 16:03 ` Dmitry A. Kazakov
2004-12-20 18:49   ` conradwt
2004-12-20 20:10     ` Dmitry A. Kazakov
2004-12-20 23:44       ` jayessay
2004-12-21  1:26         ` Alexander E. Kopilovich
2004-12-21  8:31           ` Dmitry A. Kazakov
2004-12-21 17:24           ` jayessay
2004-12-21  8:11         ` Dmitry A. Kazakov
2004-12-21 17:10           ` jayessay
2004-12-21 17:12             ` Dmitry A. Kazakov
2004-12-21 21:42               ` jayessay
2004-12-22  8:55                 ` Dmitry A. Kazakov
2004-12-22 18:02                   ` jayessay [this message]
2004-12-22 19:10                     ` Dmitry A. Kazakov
2004-12-23 18:09                       ` jayessay
2004-12-24  9:41                         ` Dmitry A. Kazakov
2004-12-27 17:09                           ` jayessay
2004-12-27 19:44                             ` Dmitry A. Kazakov
2004-12-27 21:51                               ` Georg Bauhaus
2004-12-28  9:56                                 ` Dmitry A. Kazakov
2004-12-28 17:56                                   ` jayessay
2004-12-28 17:48                                 ` jayessay
2004-12-28 17:36                               ` jayessay
2004-12-21  8:33     ` Martin Krischik
2004-12-21 15:34       ` jimmaureenrogers
2004-12-21 15:53         ` Martin Krischik
2004-12-22  9:34           ` Larry Kilgallen
2004-12-22 11:01             ` Martin Krischik
2004-12-22 12:52               ` Larry Kilgallen
2004-12-22 16:38                 ` Martin Krischik
2004-12-23 23:05       ` conradwt
2004-12-24  9:24         ` Pascal Obry
2004-12-24  9:59         ` Martin Krischik
2004-12-18 19:31 ` Jeffrey Carter
2004-12-20 18:55   ` conradwt
2004-12-20 23:53     ` Jeffrey Carter
2004-12-21  0:25       ` David Botton
2004-12-19  3:16 ` Brian May
2004-12-20 23:38   ` jayessay
2004-12-21 21:42     ` Brian May
replies disabled

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