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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,2c6139ce13be9980 X-Google-Attributes: gidfac41,public X-Google-Thread: f43e6,2c6139ce13be9980 X-Google-Attributes: gidf43e6,public X-Google-Thread: 109fba,2c6139ce13be9980 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,3d3f20d31be1c33a X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,2c6139ce13be9980 X-Google-Attributes: gid1108a1,public X-Google-Thread: 1014db,3d3f20d31be1c33a X-Google-Attributes: gid1014db,public From: jsa@alexandria.organon.com (Jon S Anthony) Subject: Re: Is Ada as good for graphics programming as C? (WAS: Re: Avoiding the second historic mistake) Date: 1997/06/19 Message-ID: #1/1 X-Deja-AN: 251190686 Distribution: world References: <33957A33.1C31AB44@oma.com> <865898351snz@nezumi.demon.co.uk> <339ED54C.215A5F85@oma.com> <5noc8u$a8m$3@miranda.gmrc.gecm.com> <33A032AC.2D8BA85C@oma.com> <5nrn86$cvo$3@miranda.gmrc.gecm.com> <33A1CBBB.B0602EC@oma.com> <5o2uls$ku3$2@miranda.gmrc.gecm.com> <33A6ADDA.2099EEB9@oma.com> <33A7D2DE.545B@polaroid.com> <33A9338D.10BB@polaroid.com> Organization: PSI Public Usenet Link Newsgroups: comp.object,comp.software-eng,comp.lang.ada,comp.lang.eiffel,comp.lang.c,comp.lang.c++ Date: 1997-06-19T00:00:00+00:00 List-Id: In article <33A9338D.10BB@polaroid.com> Mukesh Prasad writes: > Jon S Anthony wrote: > > > If I were to do heavy-duty graphics, compression, or image > > > processing involving implementation of state-of-the-art algorithms, > > > I would think very carefully before choosing Ada. > > > > Why? > > Well, I must admit that I haven't done anything > in Ada since 1983, and even then it was small programs. Well, that isn't even Ada anymore. ISO Ada => Ada95 since Jan'95, as implemented in Gnu Ada (GNAT), ObjectAda, etc. > The impression I recall mostly was that it was > highly typed (the word I reflexively thought of was .. > things I would do in C/C++ in implemeting a graphics > or compression algorithm would be cumbersome > or difficult to do efficiently. Nah. You can actually adopt the same sloppy style if that is what you want - right down to using the exact same "documentation" for C libs like X/Motif/Win32/etc. > you (or anybody else volunteering) > could post a brief segment on how one > would scan-convert a triangle and set up > the bits on a CGA (without taking advantage > of graphics libraries from vendors -- since Why? As I pointed out, it is simple to take advantage of such graphics libs or any other for that matter. I'm not a real UI type, and have only written interfaces with Ada using X/Motif and Java AWT (yes, you can directly write Java apps in Ada and use the various AWT commercial packages out there). > vendor libraries are in place.) Let us say > the platform is basic MSDOS (where C was Other people have certainly done this. There is even a free package that comes with the DOS version of GNAT. But, to be fair, I have never really done any DOS programming. Tell you what - since I'm not a real graphics whiz, it would be much simpler if you were to post some code showing the so called "difficult bits" so that it can be translated and shown to be about the same in Ada. /Jon -- Jon Anthony OMI, Belmont, MA 02178 617.484.3383 "Nightmares - Ha! The way my life's been going lately, Who'd notice?" -- Londo Mollari