From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a0be06fbc0dd71f1 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.de!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: The future of Ada is at risk From: Georg Bauhaus In-Reply-To: References: <20071229040639.f753f982.coolzone@it.dk> <878x3436pj.fsf@ludovic-brenta.org> <1199531506.9355.8.camel@K72> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1199539751.9355.46.camel@K72> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Date: Sat, 05 Jan 2008 14:29:11 +0100 Organization: Arcor NNTP-Posting-Date: 05 Jan 2008 14:29:13 CET NNTP-Posting-Host: b7f89d36.newsspool3.arcor-online.net X-Trace: DXC=[>KDJnG\hXAWDmlTRbh@=IMcF=Q^Z^V3H4Fo<]lROoRAgUcjd<3m<;B`=ZLKMBbfABPCY\c7>ejVH?7;@9lF9QLLQmZWdoZk9:H X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:19212 Date: 2008-01-05T14:29:13+01:00 List-Id: On Sat, 2008-01-05 at 12:40 +0100, Dmitry A. Kazakov wrote: > On Sat, 05 Jan 2008 12:11:46 +0100, Georg Bauhaus wrote: > > > For those who have to write portable DB software, > > and who for some reason must not disclose their software, > > GNADE is not really an option because it is effectively written > > in what might be called the GNAT language. > > I think that can be fixed. Yes. I'm not that sure this is what is wanted... > > It also uses 64bit types. > > Hmm, how would you deal with SQLBIGINT otherwise? Using a Big_Integer type corresponding to the DB's big integers and make SQLBIGINT correspond to this type. Not straight forward, not nice, not easy, but not impossible. The GMP library might be of use in several ways. Currently we have type SQLBIGINT is range -(2 ** 63) .. +(2 ** 63) - 1; for SQLBIGINT'Size use 64; We'd need an alternative user defined type that provides the integer operations and that can be input from and output to the DB in the same way. > that they pursue a philosophy > alien to Ada. Rather than to describe a DB in a higher-level way > independently on the target DB, they try to stay as DB-close as possible. What would be the higher level? GNADE includes embedded SQL. While that's not DBI or LINQ, it still offers a nice integration and is pretty standard. OTOH, I trust that DBI or JDBC might win a popularity contest. Or something like SOCI ;-) Even more higher level bindings hiding the SQL nature of DB do what they promise. Not what I want because while they offer high level abstractions, the high level abstractions should be be problem domain abstractions, not database abstractions. Hypothesis: The more magic is put in the layer above the high level language SQL, the more difficult it is to actually use that language, hiding all advantages of SQL[*]. [*] Actually, if you use one of the CRUD frameworks and you want the effect of an "advanced" SQL command (JOIN, sub-SELECT, etc.), chances you'll find yourself writing high level SQL at the low level of the framework...