comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <mcondic.auntie.spam@acm.org>
Subject: Re: Creating tempfile takes too long: GNAT or Windows bug?
Date: Sat, 12 Oct 2002 09:14:50 -0400
Date: 2002-10-12T13:15:34+00:00	[thread overview]
Message-ID: <ao979m$blc$1@slb2.atl.mindspring.net> (raw)
In-Reply-To: slrnaqdm6m.4ob.randhol+news@kiuk0152.chembio.ntnu.no

Preben Randhol <randhol+news@pvv.org> wrote in message
news:slrnaqdm6m.4ob.randhol+news@kiuk0152.chembio.ntnu.no...
>
> So your point is that one should use C and the Microsoft libraries in
> stead? Last time I checked I don't even have a C compiler for my Window
> OSes and I certainly cannot compile it on Linux. :-) It seems a bit
> unfair that for Ada one have to make everything both platform and
> compiler independant while for C one doesn't when one compare the two.
>
I was thinking more along the linds of this: "I have a c compiler. My OS is
written in C. The C function interfaces are sitting right there. Hack a
program to make an OS call or two..." That as opposed to: "I have an Ada
compiler. My OS is written in C. I've got to play around with building a
binding to whatever it is I need from the OS or at least use some binding
that may be there and is "unnatural" for Ada (can't just use strings and
integers and such - got to go create pointers and things from Interfaces.C).
It becomes more work, so why didn't I just hack the little job in C?"

It may not be a far stretch to hack a lot of things in Ada - I've done it
enough times myself. I'm just observing that people have a tendency to go
down the path of least resistance and if everything surrounding you is C,
its less likely that the job is going to be done in Ada.

Note that this works two ways - if the OS and everything surrounding it is
in Ada, it would be less likely one would end up doing things in C, right?
;-)


> Besides it isn't that hard to use the GNAT.OS_Lib with another compiler
> I should think.
>

I suppose, but if you had the Gnat code, chances are you have Gnat so why
would you be using another compiler? Its not so much an issue of a portable
library for Ada and no insistance on a portable library for C. Its more a
case of observing that when the surrounding environment is done with a given
language, it tends to promote use of that language. Although, to whatever
extend Ada can provide a portable library of things to interface to the
native OS, the better off it is, I think.

MDC
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jast.mil/

Send Replies To: m c o n d i c @ a c m . o r g

    "I'd trade it all for just a little more"
        --  Charles Montgomery Burns, [4F10]
======================================================================






  reply	other threads:[~2002-10-12 13:14 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-09 11:58 Creating tempfile takes too long: GNAT or Windows bug? Mário Amado Alves
2002-10-09 14:15 ` BREHMER Philippe,
2002-10-09 16:43 ` tmoran
2002-10-09 17:14 ` Warren W. Gay VE3WWG
2002-10-09 18:40   ` Preben Randhol
2002-10-10 12:06     ` Marin David Condic
2002-10-10 12:29       ` Preben Randhol
2002-10-10 17:29         ` Creating tempfile takes too long: GNAT or Windows bug? (& GtkAda) Warren W. Gay VE3WWG
2002-10-10 19:43           ` Stephen Leake
2002-10-11 10:59             ` Preben Randhol
2002-10-11 10:46           ` Preben Randhol
2002-10-14 22:51             ` Warren W. Gay VE3WWG
2002-10-15 10:08               ` Preben Randhol
2002-10-11 12:00           ` Marin David Condic
2002-10-11 11:38         ` Creating tempfile takes too long: GNAT or Windows bug? Marin David Condic
2002-10-11 13:57           ` Preben Randhol
2002-10-12 13:14             ` Marin David Condic [this message]
2002-10-12 15:01               ` Preben Randhol
2002-10-10 19:44       ` Jeffrey Carter
2002-10-14 12:42         ` Simon Clubley
2002-10-10 14:02   ` Creating tempfile takes too long: GNAT or Windows bug? Solved Mário Amado Alves
2002-10-09 18:56 ` Creating tempfile takes too long: GNAT or Windows bug? Pascal Obry
2002-10-12  4:45 ` James Ross
replies disabled

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