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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e793d50ead4087cc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.24.130 with SMTP id u2mr7286231wif.6.1356681451562; Thu, 27 Dec 2012 23:57:31 -0800 (PST) Path: l12ni249261wiv.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Thickening Ada GTK or Vala Binding ? Date: Fri, 28 Dec 2012 08:57:24 +0100 Organization: cbb software GmbH Message-ID: <13mq4q166dvto.18m38jiqi1pv3$.dlg@40tude.net> References: <0c94b952-2bdf-4f25-98a3-91a67ed2355d@googlegroups.com> <1b6lxwgy1k8dv.80a4pq6ce32b$.dlg@40tude.net> <5e5417ad-8e81-44f2-beeb-ac47360b37a3@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 6/SyjDFvQ5V7ZR2+GYgbDQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-12-28T08:57:24+01:00 List-Id: 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