comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: C++0x and Threads - a poor relation to Ada's tasking model?
Date: Tue, 11 Aug 2009 13:51:35 -0700 (PDT)
Date: 2009-08-11T13:51:35-07:00	[thread overview]
Message-ID: <7961a91c-a5af-40e2-bbc0-6bf69a98176d@z31g2000yqd.googlegroups.com> (raw)
In-Reply-To: 7q2385104kihs87d79p8kfphuoki6r01vq@4ax.com

On 11 Sie, 17:30, John McCabe <j...@nospam.assen.demon.co.uk> wrote:

> I was just wondering if anyone here has been following the C++0x
> development, particularly wrt concurrency etc.

Yes.

> Obviously we all know that one of the big issues Ada compilers had in
> the early days was providing a supporting run-time system that was
> robust, efficient and reliable.

Right, we will come back to this statement.

> To be honest, I haven't been following the C++0x development but,
> based on what I have read about C++0x's threads stuff (based on
> Boost.Thread) am I right in assuming that all that's being proposed is
> a standardised abstraction of the threading functions of whatever OS
> that your C++ program is running on?

Yes. This basically standardizes the existing practice (which is very
good for users) and allows easier implementation (which is very good
for users).

> I'm fairly sure this is how many Ada implementations work anyway, but
> I believe there are (or have been) many Ada implementations developed
> for bare machines where the Ada vendor provided the run time system.

And there is absolutely nothing that could prevent the C++ vendor from
implementing a stand-alone run-time that will implement the given API.

> So, are we seeing something arriving in C++ that need only be
> supported by implementations running on a 3rd party OS

Absolutely not, see above. There is nothing that prevents vendors from
implementing stand-alone run-times. Actually, with the API that is
borrowed from *existing implementations* (read: maturity, industrial
experience, etc.), implementing such a stand-alone run-time is
actually much easier than being forced to work with API that is
constructed in isolation from the existing practise.
You might even pick a source code from the Linux kernel and build on
that. Why not? This is the comfort that Ada vendors did not have.

> or will threads need to be supported for bare machines
> as well?

No standard can force anybody to provide implementations. Vendors will
do it if they will see a business opportunity in it.

> Thanks for any responses.

You are welcome.

> This may seem like a C++ question, but it's
> more a question of "why will Ada's threading model remain vastly
> superior"!

Why do you think it is "vastly superior"? It is certainly more
complex, but the most visible effect of complexity is the cost (both
in time and money) of implementation and this is where we come back to
what you have stated at the beginning - the complexity of run-time has
*hurt* Ada heavily at the beginning and the consequences of it are
still visible in low adoption of the language.

Being complex does not guarantee higher expressiveness, either.

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com

Database Access Library for Ada: www.inspirel.com/soci-ada



  reply	other threads:[~2009-08-11 20:51 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11 15:30 C++0x and Threads - a poor relation to Ada's tasking model? John McCabe
2009-08-11 20:51 ` Maciej Sobczak [this message]
2009-08-12 12:25   ` John McCabe
2009-08-12 14:51     ` Maciej Sobczak
2009-08-12 15:56     ` REH
2009-08-12 16:59       ` John McCabe
2009-08-12 17:21         ` REH
2009-08-12 20:41           ` Robert A Duff
2009-08-12 21:15             ` REH
2009-08-13  1:28               ` Randy Brukardt
2009-08-13  2:08                 ` REH
2009-08-13  8:38                   ` Pascal Obry
2009-08-13  8:57                     ` Dmitry A. Kazakov
2009-08-13 11:32                       ` Pascal Obry
2009-08-13 12:28                         ` Dmitry A. Kazakov
2009-08-14  1:15                           ` Brian Drummond
2009-08-14 11:24                           ` Language checks (Was: C++0x and Threads - a poor relation to Ada's tasking model?) Jacob Sparre Andersen
2009-08-14 12:01                             ` Dmitry A. Kazakov
2009-08-14 13:33                               ` REH
2009-08-14 13:48                                 ` John McCabe
2009-08-14 14:51                                   ` John McCabe
2009-08-14 14:13                                 ` Dmitry A. Kazakov
2009-08-14 19:58                                   ` Language checks Robert A Duff
2009-08-15  0:10                             ` Language checks (Was: C++0x and Threads - a poor relation to Ada's tasking model?) Randy Brukardt
2009-08-14 13:10               ` C++0x and Threads - a poor relation to Ada's tasking model? Gautier write-only
2009-08-14 13:16                 ` REH
2009-08-12 21:24             ` REH
2009-08-13 13:51               ` John McCabe
2009-08-13 16:24                 ` REH
2009-08-14 11:09                   ` John McCabe
2009-08-14 13:00                     ` REH
2009-08-14 14:30                       ` John McCabe
2009-08-14 14:49                         ` REH
2009-08-14 14:54                           ` John McCabe
2009-08-14 15:35                             ` REH
2009-08-14 18:43                               ` Robert A Duff
2009-08-14 18:54                                 ` REH
2009-08-14 22:33                                   ` Robert A Duff
2009-08-15  1:15                                     ` REH
2009-08-15 14:24                                       ` Robert A Duff
2009-08-14 15:09                           ` Hyman Rosen
2009-08-14 15:12                             ` REH
2009-08-13 13:55           ` John McCabe
2009-08-13 16:45             ` REH
2009-08-14 11:14               ` John McCabe
2009-08-12 20:53         ` Maciej Sobczak
2009-08-11 23:53 ` jimmaureenrogers
2009-08-12  0:06   ` Jeffrey R. Carter
2009-08-12  7:26   ` Maciej Sobczak
2009-08-12  5:29     ` stefan-lucks
2009-08-12 15:00       ` Maciej Sobczak
2009-08-12  9:27     ` Ludovic Brenta
2009-08-12 15:14       ` Maciej Sobczak
2009-08-13 12:47         ` Peter C. Chapin
2009-08-13 13:57           ` John McCabe
2009-08-14  7:39           ` Maciej Sobczak
2009-08-14 11:13             ` John McCabe
2009-08-14 12:23               ` Dmitry A. Kazakov
2009-08-14 12:50                 ` John McCabe
2009-08-14 13:50                   ` Dmitry A. Kazakov
2009-08-14 13:58                     ` Niklas Holsti
2009-08-14 14:17                       ` Dmitry A. Kazakov
2009-08-14 22:25                       ` Brian Drummond
2009-08-14 12:56             ` John McCabe
replies disabled

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