comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: [announcement] SYSAPI and SYSSVC for Windows
Date: Mon, 22 Dec 2003 09:02:51 GMT
Date: 2003-12-22T09:02:51+00:00	[thread overview]
Message-ID: <%qyFb.4408$eE3.518@nwrdny03.gnilink.net> (raw)
In-Reply-To: <bs3t1u$tkn$1@online.de>

Ekkehard Morgenstern wrote:
> Some concepts require the use of pointers, such as linked lists,
> and pointers to instances of objects.

How many times are you going towrite a linked list?
Are you going to have hundreds of linked list implementations
in your program? Is std::list unsuitable for som ereason?

As for pointers to instances, if you mean many pointers to some
single object, then you can copy those pointers around willy-nilly
anyway, so you still don't need custom copy and assignment.

> That's not a bad design to create a pointer to a instance of an object.
> It's a perfectly normal C++ way of programming.

It's a perfectly normal way of C programming.
In C++, it's much more suspect.

> I don't know what kind of programs you deal with, but you seem
> somehow detached from the real world of programming.

I've been doing nothing professionally but programming for twenty years.

> Well, some documents say that access types can be garbage collected by
> the runtime system.

Only if the compiler implements it. By far the vast majority do not,
except for implementations which target JVMs. C++ implementations could
do the smae as well, and many programs use the Boehm conservative collector
in just such a fashion.

> Copying a pointer value is about the worst thing you can do, 
> unless you know exactly what you're doing.

Some of us do, you know.

> That really depends on what kind of class you're dealing with.
> Not all pointers can be held in smart pointers, nor be copied.

Neither of those statements is true.

> As if that would be a major software-engineering task.

Sigh. You may want to look up the discussions on auto_ptr, and have a
look at the implementation of the Boost smart pointers before making
remarks like that. You remind me of those inexperienced mountain climbers
who die on mountains that are far beyond the range of their abilities,
because they do not even know enough to know what things are dangerous.

> They're not the same. The value might be the same, but it depends
> on floating-point accuracy. But to prevent such problems, one
> could postulate they aren't the same.

I'm awaiting with eagerness the ensuing discussions here on c.l.a.
where I get to defend why x<1.0 + 1.0> is different from x<2.0>.

> This would definitely take more time (understanding all that code,
> plus modifying and porting it), than writing an all-new compiler.
> 
> I like writing compilers and so that will not be a major effort for me.

I will now invite the people in this newsgroup who have actually worked
on Ada compilers to respond to this. I'll be over there banging my head
against the wall. Holler if you need me. (Oh, and if your compiler will
target x86 architecture, don't forget to write to Intel and AMD for the
manuals on how to optimize code for each different version of the Pentium
and Athlon procesors.)

> Like, a compiler might be huge for you, but for me it's just medium-scale.

Be sure to let me know when you're done.



  reply	other threads:[~2003-12-22  9:02 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-17 19:17 [announcement] SYSAPI and SYSSVC for Windows amado.alves
2003-12-17 19:56 ` Georg Bauhaus
2003-12-18  9:08 ` Dmitry A. Kazakov
2003-12-18 12:14   ` Ekkehard Morgenstern
2003-12-18 13:31     ` Georg Bauhaus
2003-12-19 10:45       ` Ekkehard Morgenstern
2003-12-19 17:12         ` Georg Bauhaus
2003-12-19 17:22           ` Vinzent 'Gadget' Hoefler
2003-12-20  0:21           ` Ekkehard Morgenstern
2003-12-20  2:18             ` Georg Bauhaus
2003-12-20  4:40               ` Ekkehard Morgenstern
2003-12-21  3:45                 ` Georg Bauhaus
2003-12-21 19:01                   ` Piracy was " Robert I. Eachus
2003-12-18 14:32     ` Dmitry A. Kazakov
2003-12-19 11:11       ` Ekkehard Morgenstern
2003-12-19 15:15         ` Hyman Rosen
2003-12-19 15:50           ` Ekkehard Morgenstern
2003-12-19 16:48             ` Hyman Rosen
2003-12-19 16:57               ` Hyman Rosen
2003-12-20  1:17               ` Ekkehard Morgenstern
2003-12-21  2:19                 ` Hyman Rosen
2003-12-21 10:34                   ` Ekkehard Morgenstern
2003-12-22  9:02                     ` Hyman Rosen [this message]
2003-12-22 15:17                       ` Ekkehard Morgenstern
2003-12-22 15:08                     ` Hyman Rosen
2003-12-22 15:31                       ` Ekkehard Morgenstern
2003-12-22 16:35                         ` Ekkehard Morgenstern
2003-12-23  1:47                           ` Hyman Rosen
2003-12-23  8:40                             ` Ekkehard Morgenstern
2003-12-23  9:05                               ` Stephen Leake
2003-12-19 17:06         ` Dmitry A. Kazakov
2003-12-20  1:49           ` Ekkehard Morgenstern
2003-12-20 11:13             ` Dmitry A. Kazakov
2003-12-20 13:40               ` Ekkehard Morgenstern
2003-12-20 17:21                 ` Dmitry A. Kazakov
2003-12-20 19:52                   ` Ekkehard Morgenstern
2003-12-21  4:24                     ` Georg Bauhaus
2003-12-21 13:42                     ` Dmitry A. Kazakov
2003-12-21 15:48                       ` Ekkehard Morgenstern
2003-12-21 17:46                         ` Michal Morawski
2003-12-21 18:05                           ` Ekkehard Morgenstern
2003-12-22  0:50                             ` Robert I. Eachus
2003-12-23 23:02                       ` Robert A Duff
2003-12-24 11:20                         ` Dmitry A. Kazakov
2003-12-24 16:57                           ` Robert A Duff
2003-12-25 14:00                             ` Dmitry A. Kazakov
2003-12-28  1:49                       ` Dave Thompson
  -- strict thread matches above, loose matches on Subject: below --
2003-12-15 14:18 Ekkehard Morgenstern
2003-12-15 15:10 ` Ekkehard Morgenstern
2003-12-15 17:10 ` Jeffrey Carter
2003-12-15 18:38   ` Ekkehard Morgenstern
2003-12-16  0:25     ` Stephen Leake
2003-12-16  0:56       ` Ekkehard Morgenstern
2003-12-16  2:47         ` Ludovic Brenta
2003-12-16 17:45           ` Ekkehard Morgenstern
2003-12-16 19:54             ` Ludovic Brenta
2003-12-16 22:09               ` Ekkehard Morgenstern
2003-12-17 15:24                 ` Ludovic Brenta
2003-12-17 23:23                   ` Ekkehard Morgenstern
2003-12-19 18:14                   ` Warren W. Gay VE3WWG
2003-12-16  5:36         ` tmoran
2003-12-16 17:30           ` Ekkehard Morgenstern
2003-12-15 20:44 ` David Marceau
2003-12-16  0:34   ` Ekkehard Morgenstern
2003-12-17 12:05 ` Dmitry A. Kazakov
2003-12-17 15:00   ` Ekkehard Morgenstern
2003-12-20 19:24 ` Ekkehard Morgenstern
replies disabled

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