From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: System calls - GNAT library vs. direct bindings
Date: Sat, 02 Jun 2007 05:35:41 GMT
Date: 2007-06-02T05:35:41+00:00 [thread overview]
Message-ID: <Nk78i.82501$n_.2452@attbi_s21> (raw)
In-Reply-To: <1180730725.902452.161820@m36g2000hse.googlegroups.com>
Maciej Sobczak wrote:
>
> Bingo. And calling system API directly also requires a wrapper - at
> least for convenience. Interestingly, for funcions as simple as read/
> write/listen/etc., both wrappers will have comparable complexity.
> Note that no matter how the wrapper is written, it isolates two
> parties and as such can be later used to achieve freedom from both
> compiler and system.
IIRC, you were talking about a thin binding. To my mind, at least, a
thin binding is not comparable to a portable wrapper. Depending on
circumstances, a thin binding can sometimes be a single package spec
with some pragma-Import subprograms (probably not in this case). Many
difficult issues are left to the client.
More importantly, a binding, thin or otherwise, has to deal with the
vagaries of interfacing to C, and is more difficult to get right than a
wrapper around an Ada library, which is simply Ada calling Ada.
--
Jeff Carter
"Propose to an Englishman any principle, or any instrument, however
admirable, and you will observe that the whole effort of the English
mind is directed to find a difficulty, a defect, or an impossibility
in it. If you speak to him of a machine for peeling a potato, he will
pronounce it impossible: if you peel a potato with it before his eyes,
he will declare it useless, because it will not slice a pineapple."
Charles Babbage
92
prev parent reply other threads:[~2007-06-02 5:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-31 14:58 System calls - GNAT library vs. direct bindings Maciej Sobczak
2007-05-31 15:06 ` Ludovic Brenta
2007-05-31 15:23 ` Maciej Sobczak
2007-05-31 16:14 ` Ludovic Brenta
2007-05-31 19:08 ` Michael Bode
2007-05-31 19:48 ` Markus E Leypold
2007-05-31 20:07 ` Simon Wright
2007-05-31 21:10 ` Georg Bauhaus
2007-06-01 19:50 ` Simon Wright
2007-06-01 6:27 ` Maciej Sobczak
2007-06-01 19:29 ` Simon Wright
2007-06-01 6:59 ` anon
2007-06-01 10:17 ` Markus E Leypold
2007-06-01 13:01 ` Maciej Sobczak
2007-06-01 20:13 ` Pascal Obry
2007-06-01 20:35 ` Pascal Obry
2007-06-01 17:42 ` Jeffrey R. Carter
2007-06-01 19:32 ` Simon Wright
2007-06-01 20:45 ` Maciej Sobczak
2007-06-02 5:35 ` Jeffrey R. Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox