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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,578bd4d051bc4686 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-15 16:54:24 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: OT: GUI Date: 15 Apr 2004 19:52:26 -0400 Organization: Cuivre, Argent, Or Message-ID: References: <40577688.2A8B9832@fakeaddress.nil> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1082073164 70164 212.85.156.195 (15 Apr 2004 23:52:44 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 15 Apr 2004 23:52:44 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:7177 Date: 2004-04-15T19:52:26-04:00 "Martin Dowie" writes: > "Preben Randhol" wrote in > message > news:slrnc7sr4a.15k.randhol+valid_for_reply_from_news@rong.nt.ntnu.no... > > On 2004-03-27, Martin Dowie wrote: > > > "Jacob Sparre Andersen" wrote in message > > > news:plptaz2ntn.fsf_-_@sparre.crs4.it... > > >> But would that be any better than GtkAda? Just another non-native GUI > > >> library. > > > > > > Well, Claw is atleast native on Win32 platforms - is Gtk(Ada) native on > > > anything? I don't mean to be rude, I really just don't know! > > > > What is your definition of native? Is Ada native on anything or should > > one use assembly? > > Native as in not having to go through a large binding to access the > underlying opertion. Claw is "native" as it sits (almost) directly on top > of the Windows calls. Yes. But Claw is itself a "large binding". So are applications written using Claw "native windows"? I think this is a moot point. The issue is what is gained by a native binding. Usually, the desired gains are execution speed, and ease of porting other "native" applications. Any thick binding will be slower than a thin binding, but some are slower than others. Gtk is noticably slower than Windex, and I suspect than Claw. Ease of porting will always be low, between any two thick bindings; porting an app from Windex to Claw is probably as hard as porting from Windex to GtkAda. > But GtkAda on Windows isn't native as it doesn't use the underlying > OS GUI routines Of course it does! > (or at least not in any way that could be described as close). Well, that's the whole issue, isn't it? What, exactly, do you mean by "close". Let's see, we could measure the number function calls. Suppose I do 'Set_Text (widget, "foo");' in Windex, Claw, and GtkAda. How many function calls does that go thru before it gets to Win32 API Settext? Well, Windex.Windows.Edit_Text.Put_Text is a direct binding to Win32 API Send_Message (WM_SETTEXT). I guess that's pretty "close". I'm not familiar enough with the Gtk source to actually trace this. I bet it is more calls, though. But then, if I resize a window, and want all the child windows to automatically resize to fit, GtkAda is _way_ more efficient than Windex, because it is already done, and it "just works"; any code I write to do the same thing will not be as good. No binding that provides that feature will be "close" to the Win32 API. So it depends heavily on what features you measure, to get a definition of "close". -- -- Stephe