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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c3768896d3e82ec X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "jsnX" Newsgroups: comp.lang.ada Subject: Re: Game Programming / Graphics Date: 3 Apr 2005 07:52:06 -0700 Organization: http://groups.google.com Message-ID: <1112539926.068726.93830@z14g2000cwz.googlegroups.com> References: <1112471680.276284.42140@o13g2000cwo.googlegroups.com> <271ug8iv5jlv.1fh0nt13vc9t7$.dlg@40tude.net> NNTP-Posting-Host: 12.217.232.143 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1112539930 28070 127.0.0.1 (3 Apr 2005 14:52:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 3 Apr 2005 14:52:10 +0000 (UTC) In-Reply-To: <271ug8iv5jlv.1fh0nt13vc9t7$.dlg@40tude.net> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=12.217.232.143; posting-account=TSsVgw0AAADgMy53Cv7DbAbJv9dhFFcn Xref: g2news1.google.com comp.lang.ada:10254 Date: 2005-04-03T07:52:06-07:00 List-Id: > Ada's numerics are based on a contract model. Ada's > numerics are true types. You can have different numeric > types and the compiler will prevent you from mixing them, > if you do not define corresponding operations. As > types they may have constrained subtypes with range > checks enforced. Other differences are that Ada has > fixed point binary and decimal numbers additionally to > the floating-point ones. sounds pretty neat, but is it computationally expensive? if i write numeric stuff in Ada (vector operations, special functions, physics stuff) will it be in general: a) slower than the same stuff written in good (templated) C++ b) faster than the same stuff written in good (templated) C++ c) hard to say - sometimes faster, sometimes slower d) hard to say - depends heavily on compiler e) other - please write in -- jsnX