comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: OT: GUI
Date: 15 Apr 2004 19:52:26 -0400
Date: 2004-04-15T19:52:26-04:00	[thread overview]
Message-ID: <mailman.6.1082073163.314.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <c5mcrc$94f$1@sparta.btinternet.com>

"Martin Dowie" <martin.dowie@btopenworld.com> writes:

> "Preben Randhol" <randhol+valid_for_reply_from_news@pvv.org> wrote in
> message
> news:slrnc7sr4a.15k.randhol+valid_for_reply_from_news@rong.nt.ntnu.no...
> > On 2004-03-27, Martin Dowie <martin.dowie@btopenworld.com> wrote:
> > > "Jacob Sparre Andersen" <sparre@nbi.dk> 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




  parent reply	other threads:[~2004-04-15 23:52 UTC|newest]

Thread overview: 104+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-16 21:50 Ann: TeXCAD 4.1 Gautier Write-only
2004-03-17  9:30 ` Preben Randhol
2004-03-17 13:54   ` Georg Bauhaus
2004-03-17 14:08     ` Preben Randhol
2004-03-17 18:21       ` Georg Bauhaus
2004-03-17 18:36         ` Preben Randhol
2004-03-18 10:54           ` OT: GUI [was:]Ann: " Georg Bauhaus
2004-03-18 11:37             ` Preben Randhol
2004-03-18 14:41               ` Georg Bauhaus
2004-03-18 15:22                 ` Preben Randhol
2004-03-18 15:25                   ` Preben Randhol
2004-03-18 17:11                   ` Georg Bauhaus
2004-03-18 18:57                     ` Preben Randhol
2004-03-19 11:27                       ` Georg Bauhaus
2004-03-19 12:18                         ` Preben Randhol
2004-03-19 15:14                           ` Georg Bauhaus
2004-03-19 18:09                             ` Preben Randhol
2004-03-19 22:24                               ` Georg Bauhaus
2004-03-19 20:27                           ` Randy Brukardt
2004-03-20  0:30                             ` Ada Tutorials [was:] " Georg Bauhaus
2004-03-20  8:28                             ` Preben Randhol
2004-03-18 20:46                     ` Randy Brukardt
2004-03-24 12:50                     ` chris
2004-03-24 13:10                       ` Preben Randhol
2004-03-24 15:19                         ` Martin Dowie
2004-03-24 17:20                           ` Preben Randhol
2004-03-25  8:22                             ` Martin Dowie
2004-04-02 10:45                             ` Martin Dowie
2004-03-25 18:00                           ` Pascal Obry
2004-03-26 23:25                           ` OT: GUI Jacob Sparre Andersen
2004-03-27 18:29                             ` Martin Dowie
2004-03-27 19:40                               ` Ludovic Brenta
2004-03-27 19:52                                 ` Frank J. Lhota
2004-03-27 20:08                                   ` Ludovic Brenta
2004-03-27 20:33                                     ` Georg Bauhaus
2004-03-27 22:15                                   ` Robert I. Eachus
2004-04-15 11:05                               ` Preben Randhol
2004-04-15 16:22                                 ` Martin Dowie
2004-04-15 21:39                                   ` Jacob Sparre Andersen
2004-04-15 23:52                                   ` Stephen Leake [this message]
2004-04-16  7:14                                   ` Preben Randhol
2004-04-16 13:08                                     ` Martin Dowie
2004-04-16 15:24                                       ` Preben Randhol
     [not found]                                   ` <u7jwgol39.fsf@acm.org>
2004-04-16  7:18                                     ` Preben Randhol
2004-03-24 17:52                         ` OT: GUI [was:]Ann: TeXCAD 4.1 chris
2004-03-25  7:34                           ` Preben Randhol
2004-03-25 13:38                             ` chris
2004-03-25 13:52                               ` Preben Randhol
2004-03-25 14:42                                 ` chris
2004-03-25 16:13                                   ` Preben Randhol
2004-03-26 10:43                                     ` Stephen Leake
2004-03-26 11:48                                       ` Preben Randhol
2004-03-26 12:47                                         ` Marius Amado Alves
2004-03-26 12:54                                           ` Georg Bauhaus
2004-03-26 14:25                                             ` Marius Amado Alves
2004-03-26 14:26                                             ` Marius Amado Alves
2004-03-27  0:25                                               ` Ludovic Brenta
2004-03-26 14:27                                             ` Marius Amado Alves
2004-03-26 17:35                                           ` Björn Persson
2004-03-26 18:09                                             ` Marius Amado Alves
2004-03-27  0:29                                               ` Ludovic Brenta
2004-03-26 19:36                                             ` Preben Randhol
2004-03-26 23:34                                               ` chris
2004-03-26 23:59                                                 ` Preben Randhol
2004-03-27  0:49                                                   ` Björn Persson
2004-03-27  2:32                                                     ` Georg Bauhaus
2004-03-27  7:33                                                     ` Simon Wright
2004-04-15 11:08                                                       ` Preben Randhol
2004-04-17  6:37                                                         ` Simon Wright
2004-03-27 13:48                                                     ` Stephen Leake
2004-03-27 22:03                                                     ` Robert I. Eachus
2004-04-16  7:20                                                     ` Preben Randhol
     [not found]                                                     ` <20040416072020.GE2922@pvv.org>
2004-04-17 13:19                                                       ` Stephen Leake
2004-03-27  0:27                                             ` Ludovic Brenta
2004-03-27  7:26                                             ` Simon Wright
2004-03-27 13:44                                             ` Stephen Leake
2004-03-27 14:11                                               ` Georg Bauhaus
2004-03-27 17:22                                                 ` Stephen Leake
2004-03-27 19:28                                                   ` Georg Bauhaus
2004-03-28 13:52                                                     ` Stephen Leake
2004-03-28 14:33                                             ` Björn Persson
2004-04-16 15:30                                               ` Preben Randhol
2004-03-26 21:34                                         ` Randy Brukardt
2004-03-26 21:56                                           ` Dale Stanbrough
2004-03-26 23:50                                           ` Preben Randhol
2004-03-27  2:42                                             ` Georg Bauhaus
2004-04-16 15:39                                               ` Preben Randhol
2004-03-24 18:00                         ` Georg Bauhaus
2004-03-25  7:42                           ` Preben Randhol
2004-03-25 13:58                             ` Georg Bauhaus
2004-03-25 14:00                               ` Preben Randhol
2004-03-25 14:14                                 ` Georg Bauhaus
2004-03-25 16:18                                   ` Preben Randhol
2004-03-25 17:31                                     ` Georg Bauhaus
2004-03-25 20:08                                       ` Preben Randhol
2004-03-26 22:29                                       ` Florian Weimer
2004-03-27  0:32                                         ` Ludovic Brenta
2004-03-27  2:45                                         ` Georg Bauhaus
2004-03-25 14:46                               ` chris
2004-03-25 17:05                                 ` Georg Bauhaus
2004-03-25 20:09                                   ` Preben Randhol
2004-03-25 22:27                                     ` Georg Bauhaus
2004-03-24 13:29                       ` Georg Bauhaus
2004-03-20  0:49                 ` Neat (Pascal) and Scruffy (C) Languages [was:] " Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox