comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent Guerby <guerby@acm.org>
Subject: Re: newbie can't get exceptions to work!
Date: 13 Apr 2001 01:23:43 +0200
Date: 2001-04-12T23:16:56+00:00	[thread overview]
Message-ID: <86d7ahpurk.fsf@acm.org> (raw)
In-Reply-To: Pine.BSF.4.21.0104111922290.5032-100000@shell5.ba.best.com

Brian Rogoff <bpr@shell5.ba.best.com> writes:
> You should know that nothing is obvious when you're discussing the
> OCaml type system :-). OK, that's not fair. It is obvious when
> considered in the context of mathematically sound type systems. If
> you're not well versed in the theory of such type systems, simple
> explanations won't be helpful.  Check the caml-list for the mail of
> the past few weeks titled "The Future of Labels" or somesuch.

I'm not super-versed in those things (I've read a whole bunch of
papers and FP conference proeedings over the years but never
implemented anything), but as I see it, raw labeled arguments
are a near syntactic feature. Let's say you have:

f x y = x + y

Then either you don't use labels

z = f 2 3

or you use them for all args

z = f (y => 3, x => 2)

The compiler finds out the special => syntax, looks up for a matching
function name and labels, and then just reorders according to declaration

z = f 3 2

And you're back to the regular thing (you need to be a bit smart in
your match to handle currying, but you can drop that if it's too much
of a problem). If the labeled syntax can be recognized without too
much fuss, it won't interfere at all with the regular type analysis
since it will be separate prior pass.

> Which idiotic platforms?

All commercial UNIXes (AIX, IRIX, Solaris, OSF1) and VMS, plus NT, all
with threading correctly supported.

> I believe you made the right decision. It was a brave one too, since
> I bet there was a strong push for C++. Ada would be my choice too,
> given what you told me.

I didn't tell you the major thing ;-), namely that most of the team
writing the software are not trained software engineers but financial
and numerical people. C/C++ is just suicide in this environment (no
array bound checking, pointers all over the place, awful error
messages and brain-dead syntax...). I spent one whole year of my life
chasing out of bound access, memory management errors and random hard
to find crashes in a >500KSLOC of C software with crapping debugging
technology (Visual C++ released compiled software bugs usually go away
when you compile in debug mode, I still don't know how people tolerate
this...), I think this qualifies me for having an opinion on the topic
;-).

As for the strong push for C++, that was everyone but two people, but
management did trust us and choosed Ada after three monthes of
reflexion.  Now the C++ people are all saying C++ is legacy and doing
Java, and Java people are right now wondering about C#... Needless to
say their technology opinion is now 0 weighted as far as my management
is concerned. The software survived one merger, introduction of
distributed computations, growth of the team and is greatly satisfying
to business.

But even if written in Ada, the code keeps FP-like technique like
being stateless, having non mutable objects and provably not leaking
reference counting GC scheme (no cycles can be created with non
mutable objects).

> I trust the support has been good? 

Ups and downs, but our bugs do get fixed, our technical questions
about use of the technology get excellent and timely answer, and the
GNAT technology is definitely evolving in the right direction over the
years (new tools, new platforms).

Talking about support in the software tool business is kinda tricky,
for example I know about no other tools used here where users get
fixes from the vendor at all except at the mandatory update to new
versions.

Aren't you worried about lack of formal support for OCaml in your
company?

-- 
Laurent Guerby <guerby@acm.org>



  reply	other threads:[~2001-04-12 23:23 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-05  3:19 newbie can't get exceptions to work! Jeff Shipman
2001-04-05  4:25 ` Ed Falis
2001-04-05 11:00   ` martin.m.dowie
2001-04-05 14:21     ` Ted Dennison
2001-04-05 17:50       ` Fraser Wilson
2001-04-05  4:34 ` Jeff Shipman
2001-04-05  4:59 ` Wilhelm Spickermann
2001-04-05 14:14   ` Ted Dennison
2001-04-05 16:37     ` Wilhelm Spickermann
2001-04-06 13:09     ` Marc A. Criley
2001-04-06 15:04       ` Ted Dennison
2001-04-06 16:43       ` Robert A Duff
2001-04-06 17:39         ` Ted Dennison
2001-04-06 21:50           ` Robert A Duff
2001-04-06 20:11         ` Brian Rogoff
2001-04-06 22:20           ` Robert A Duff
2001-04-06 23:04             ` Brian Rogoff
2001-04-07  5:48               ` Jeffrey Carter
2001-04-10  1:29                 ` Robert A Duff
2001-04-07 19:30               ` Robert A Duff
2001-04-07 21:17                 ` Brian Rogoff
2001-04-07 21:25                   ` Ayende Rahien
2001-04-07 22:57                     ` David Starner
2001-04-08 12:10                       ` Ayende Rahien
2001-04-08  2:12                     ` Larry Hazel
2001-04-08 12:12                       ` Ayende Rahien
2001-04-09 16:20                         ` Larry Hazel
2001-04-10  2:38                           ` Ayende Rahien
2001-04-10  3:25                             ` James Rogers
2001-04-08 22:18                       ` Brian Rogoff
2001-04-09 15:14                         ` Ted Dennison
2001-04-09 17:23                           ` Brian Rogoff
2001-04-09 18:23                             ` Laurent Guerby
2001-04-09 19:15                               ` Brian Rogoff
2001-04-10 18:21                                 ` Laurent Guerby
2001-04-10 19:44                                   ` Brian Rogoff
2001-04-11 18:03                                     ` Laurent Guerby
2001-04-11 18:33                                       ` Samuel T. Harris
2001-04-14  0:06                                         ` Robert A Duff
2001-04-12  1:42                                       ` Mike Silva
2001-04-12  2:38                                       ` Brian Rogoff
2001-04-12 23:23                                         ` Laurent Guerby [this message]
2001-04-13  2:44                                           ` Brian Rogoff
2001-04-11 13:24                                   ` Ayende Rahien
2001-04-11 13:14                                     ` Mats Karlssohn
2001-04-11 15:08                                       ` Ayende Rahien
2001-04-11 21:42                                       ` Fraser Wilson
2001-04-12 23:55                                         ` Robert A Duff
2001-04-10  2:12                               ` Robert A Duff
2001-04-10  3:47                                 ` Brian Rogoff
2001-04-10 13:40                                 ` Ada keywords (was: Re: newbie can't get exceptions to work!) Marin David Condic
2001-04-10 14:26                                   ` Jean-Pierre Rosen
2001-04-09 20:49                             ` newbie can't get exceptions to work! Ted Dennison
2001-04-09 21:44                               ` Brian Rogoff
2001-04-09 21:59                                 ` Ted Dennison
2001-04-10  2:54                                   ` Ayende Rahien
2001-04-10 14:00                                     ` Ted Dennison
2001-04-10 17:44                                     ` Fraser Wilson
2001-04-10  6:59                               ` Mats Karlssohn
2001-04-10 14:18                                 ` Ted Dennison
2001-04-10 16:27                                   ` Mark Biggar
2001-04-11 11:55                                     ` Mats Karlssohn
2001-04-11 14:34                                       ` Samuel T. Harris
2001-04-11 15:50                                         ` Pat Rogers
2001-04-12  6:27                                         ` Mats Karlssohn
2001-04-11 11:49                                   ` Mats Karlssohn
2001-04-11 15:38                                     ` Robert A Duff
2001-04-13 16:12                             ` Matthew Woodcraft
2001-04-10  1:41                   ` Robert A Duff
2001-04-10  3:03                     ` James Rogers
2001-04-10  3:58                       ` Brian Rogoff
2001-04-10 21:48                         ` Ted Dennison
2001-04-11 15:09                           ` Ayende Rahien
2001-04-11 21:57                             ` James Rogers
2001-04-11 23:13                               ` Brian Rogoff
2001-04-12  6:33                                 ` Mats Karlssohn
2001-04-12 16:38                                   ` Brian Rogoff
2001-04-17  7:04                                     ` Mats Karlssohn
2001-04-17  9:08                                       ` Jean-Pierre Rosen
2001-04-12 15:16                               ` Ted Dennison
2001-04-12 21:22                                 ` James Rogers
2001-04-10  4:26                     ` Brian Rogoff
2001-04-11 15:30                       ` Robert A Duff
2001-04-11 17:33                         ` Brian Rogoff
2001-04-10  1:26               ` Robert A Duff
2001-04-10  2:11                 ` Brian Rogoff
2001-04-14  0:00                   ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2001-04-05  5:26 Christoph Grein
replies disabled

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