From: Marius Amado Alves <amado.alves@netcabo.pt>
To: comp.lang.ada@ada-france.org
Subject: Re: Thick vs. Thin bindings
Date: Fri, 26 Nov 2004 16:55:56 +0000
Date: 2004-11-26T16:55:56+00:00 [thread overview]
Message-ID: <mailman.126.1101488161.10401.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <41a746a0@x-privat.org>
Jeff Houck wrote:
> As I continue to evaluate Ada in the role of a game dev language, I've
> run across references to "thick" and "thin" bindings and I'm a bit
> confused.
> My initial design goals are to keep the number of external dependancies
> to a minimum with most of the support code written in Ada. I would like
> the code interfaces to be as simple as possible to implement for a
> designer. I believe this would necessitate a "thick" binding. Is that
> correct? Would anyone like to elaborate on the pros and cons of these
> two binding methodologies? Further reading material? Tutorials? Thx!
Thick and thin are ends of a spectrum. Usually a binding is somewhere
inside the range but not exactly at one end. An Ada binding is an Ada
unit that represents some external system. Usually the Ada unit is a
package and the external system is a C function library. Here the thin
extreme of the spectrum would correspond to the most one-to-one mapping
you could make between the Ada entities and the C entities. My package
Pgsql [1] provides a nice pedagogical example. It has three software levels:
1. Ada package Pgsql
2. Ada package Libpq
3. C function library "libpq"
Unit 1 depends on 2 depends on 3. The binding 2-3 is the thinest, and
1-3 is the thickest.
[1] Pgsql is a minimal Postgres binding available at
http://www.liacc.up.pt/~maa/files/Pgsql.zip
next prev parent reply other threads:[~2004-11-26 16:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-26 15:07 Thick vs. Thin bindings Jeff Houck
2004-11-26 16:55 ` Marius Amado Alves [this message]
2004-11-27 18:13 ` Jeff Houck
2004-11-27 22:16 ` Marius Amado Alves
2004-11-26 19:32 ` David Botton
2004-11-27 7:25 ` Martin Krischik
2004-11-29 7:50 ` tmoran
2004-12-01 17:14 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox