comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Thickening Ada GTK or Vala Binding ?
Date: Fri, 28 Dec 2012 08:57:24 +0100
Date: 2012-12-28T08:57:24+01:00	[thread overview]
Message-ID: <13mq4q166dvto.18m38jiqi1pv3$.dlg@40tude.net> (raw)
In-Reply-To: 5e5417ad-8e81-44f2-beeb-ac47360b37a3@googlegroups.com

On Thu, 27 Dec 2012 13:53:27 -0800 (PST), Patrick wrote:

> "Glib is essential to Gtk. You cannot write anything more or less elaborated
> without using GObject, GValue, GList etc. "
> 
> You really should look at Vala then.

AFAIK, Vala is a kind of yet-another-curly-braces programming language...

> Actually I can program just fine with C GTK. I can also eat worms fine
> too. I just don't want to

Ada bindings cannot improve Gtk, I mean sufficiently. You cannot change the
architecture of Gtk. Granted, GtkAda could use controlled handles instead
of pointers hiding the ugly way reference counting is done in Glib. Signal
handlers could use Ada 2005 interfaces rather than being generic instances,
but still ... breaded worms are worms...

> Programming GTK using dynamic bindings is super simple, PyGtk is
> particularly easy. C is also fairly easy but it's like eating worms.

What is wrong with thin bindings then? If C is "fairly easy" then thin
bindings should be OK. (GtkAda is rather middle-level)

> I would love to be able to do what Vala has done for people who like the C
> family languages but for the Ada community.

Hmm, to my limited understanding Vala represents GObject classes at the
language level. GObject is poor man's OO, because C is not an OOPL. Vala is
supposed to be an OOPL. If so, GtkAda already did all that. Each Gtk class
has a corresponding Ada class (T'Class), each Gtk object has a tagged Ada
counterpart. Hierarchy of GObject classes is mapped onto a hierarchy of
tagged Ada types.

> Ada should not only be for journeymen programmers, it has a lot to offer
> to everyone, I think the community needs more people working to lower the
> very high barrier to accomplishing something with it on the desktop.

I don't believe that bindings to any GUI framework (Gtk, Qt, Win32 etc)
could be improved to achieve that.

But if you have concrete proposals the maintainers would certainly like to
hear them.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2012-12-28  7:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-27 17:45 Thickening Ada GTK or Vala Binding ? Patrick
2012-12-27 19:07 ` Dmitry A. Kazakov
2012-12-27 21:53   ` Patrick
2012-12-28  7:57     ` Dmitry A. Kazakov [this message]
2012-12-28 23:51       ` Randy Brukardt
2013-01-13  6:24         ` gautier_niouzes
2013-01-15  0:34           ` Randy Brukardt
2012-12-27 22:58 ` Brian Drummond
2012-12-27 23:06   ` Patrick
2012-12-28  9:53     ` Brian Drummond
2012-12-28  0:53 ` Robert Matthews
2012-12-28  1:41   ` Patrick
2012-12-28  2:03     ` Robert Matthews
2012-12-28  5:22 ` Vadim Godunko
2012-12-28  7:38   ` Vadim Godunko
2013-02-07  9:34   ` Gour
2013-02-08  6:49     ` Gour
2012-12-28 11:34 ` Justin Time
2012-12-28 23:56   ` Randy Brukardt
2013-01-11  1:40     ` Saulo
2013-01-11 12:02       ` Jacob Sparre Andersen
2013-01-11 20:14         ` Dmitry A. Kazakov
replies disabled

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