comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Carroll <mtbc@bcs.org>
Subject: Re: Haskell, anyone?
Date: Sun, 15 Nov 2015 21:50:30 +0000
Date: 2015-11-15T21:50:30+00:00	[thread overview]
Message-ID: <87vb93rkyh.fsf@ixod.org> (raw)
In-Reply-To: c6ac0d2f-52af-4aa6-ba6f-34f61e3c93e8@googlegroups.com

On 15 Nov 2015, mockturtle wrote:

> I recently read in the Italian version of Linux Format an interview to Katie
> Miller. It got me intrigued the fact that when she talks about Haskell, she
> says things that usually Ada enthusiasts say about Ada ("when it compiles, it
> runs...", "the number of bugs is reduced...").

Katie is correct. Among other things, especially with the help of some
of the extensions, Haskell offers a strong static type system that is
very expressive and the compiler is good at checking those claims.
Getting my Haskell code to compile at all is most of the debugging work.
It is nice, for instance, to be able to declare things as numerical that
compile to simply being a basic number but in the source are different
types that the compiler's analysis won't let me mix up accidentally --
i.e. the type information can sometimes be used then discarded -- or to
be able to declare that two types have some relationship such that, in
the right context, if I know what one of the types is, I can then be
sure what the other is.

> I remembered that some time ago
> I met someone that was enthusiast both about Ada and Haskell (when I said that
> I program in Ada, he said something "Finally! Now I need to find someone who
> likes Haskell."
>
> The question should be obvious: it seems that Haskell and Ada would attract
> the same kind of person; does someone here know and like Haskell as well?

"As well" is strong, as I don't use Ada. (-: Partly because of Haskell's
run-time system and lazy-by-default evaluation, while it /can/ be fast
in the hands of skilled practitioner, and the modern compilers can do
impressive optimization (like stream fusion), and Haskell does offer
powerful concurrency such as software transactional memory, it would be
a challenge to use it for real-time systems for which one wants to be
sure of performance: I wouldn't want to be using it for programming an
anti-ballistic missile. Basically, Haskell /is/ really great for safety
and correctness but, unless fans of Haskell can correct me, I'd expect
that Ada has the edge when time and space really matter. Languages like
Idris might shine the light toward a way forward, but right now they're
research projects, not for production code.

-- Mark

  parent reply	other threads:[~2015-11-15 21:50 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-15 20:42 Haskell, anyone? mockturtle
2015-11-15 20:51 ` Paul Rubin
2015-11-15 20:53 ` Nasser M. Abbasi
2015-11-15 21:50 ` Mark Carroll [this message]
2015-11-15 22:11 ` mockturtle
2015-11-15 22:48   ` Nasser M. Abbasi
2015-11-15 23:05     ` Mark Carroll
2015-11-16  4:11       ` Paul Rubin
2015-11-16  5:17         ` Nasser M. Abbasi
2015-11-16  5:48           ` Paul Rubin
2015-11-16  5:59             ` Nasser M. Abbasi
2015-11-16  6:47               ` Paul Rubin
2015-11-16  8:45           ` Simon Wright
2015-11-16 14:38             ` Brian Drummond
2015-11-15 23:19     ` Jeffrey R. Carter
2015-11-16  9:36       ` J-P. Rosen
2015-11-16 18:14         ` Jeffrey R. Carter
2015-11-16  3:59   ` Paul Rubin
2015-11-16  8:33   ` Dmitry A. Kazakov
2015-11-16  9:33     ` mockturtle
2015-11-16  9:45       ` Paul Rubin
2015-11-16 10:25 ` Hadrien Grasland
2015-11-16 11:19   ` Simon Wright
2015-11-16 11:25     ` Hadrien Grasland
2015-11-16 13:59   ` G.B.
2015-11-16 20:24   ` Jeffrey R. Carter
2015-11-16 23:23   ` Paul Rubin
2015-11-17  8:26     ` Dmitry A. Kazakov
2015-11-17  9:10       ` Mark Carroll
2015-11-17 20:09         ` Dmitry A. Kazakov
2015-11-17 10:49     ` Hadrien Grasland
2015-11-17 12:01       ` G.B.
2015-11-17 16:43         ` Hadrien Grasland
2015-11-17 18:04           ` Paul Rubin
2015-11-17 21:42             ` Hadrien Grasland
2015-11-18  4:36               ` Paul Rubin
2015-11-18  8:48                 ` Hadrien Grasland
2015-11-18  9:23                   ` Paul Rubin
2015-11-18 10:44                     ` Hadrien Grasland
2015-11-18 11:02                       ` Dmitry A. Kazakov
2015-11-18 12:41                         ` G.B.
2015-11-18 23:06                       ` Randy Brukardt
2015-11-19  8:56                         ` Hadrien Grasland
2015-11-19  9:19                           ` Hadrien Grasland
2015-11-19 21:27                           ` Randy Brukardt
2015-11-24 12:03                           ` Jacob Sparre Andersen
2015-11-19  7:22                       ` Paul Rubin
2015-11-19  9:39                         ` Hadrien Grasland
2015-11-17 13:01       ` Thomas Løcke
2015-11-17 16:45         ` Hadrien Grasland
2015-11-18  0:11       ` Paul Rubin
2015-11-18  9:44         ` Hadrien Grasland
2015-12-06 12:59   ` David Thompson
2015-12-07  7:25     ` Hadrien Grasland
replies disabled

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