comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Drummond <brian_drummond@btconnect.com>
Subject: Re: Why I hate Gtk+/GNOME (from the perspective of an Ada supporter)
Date: Thu, 24 Jan 2008 15:55:45 +0000
Date: 2008-01-24T15:55:45+00:00	[thread overview]
Message-ID: <hkbhp317q3cg5f89243pdnkaevc79edrvt@4ax.com> (raw)
In-Reply-To: 183a03c8-5379-4bfb-b311-f6e014e88719@1g2000hsl.googlegroups.com

On Thu, 24 Jan 2008 03:04:14 -0800 (PST), Ludovic Brenta
<ludovic@ludovic-brenta.org> wrote:

>The one thing I'm wondering is why you guys want to rebuild GTK+ in
>the first place? Are there no suitable prebuilt binaries anywhere so
>you can concentrate on GtkAda?

Speaking as a user who tried GTKada about six months ago...

I had a little time between projects to evaluate Ada for future development; the
language was attractive, GTKada looked attractive for cross-platform GUI
development, and the "testgtk" demo package built easily (on Windows).

(Downloads from libre : Gnat 2007, GTKada for Windows from Gnat 2006. 
OS : Win2000 SP4)

BUT... there are so many ways to crash TestGTK (on Windows 2000) just by
pressing buttons. It may be rock solid on Linux but I have my doubts...
Some of the bugs were easy to find and fix at the Ada level, which was actually
reassuring; the demo thus (accidentally, I presume!) illustrated how Ada really
does help to promote reliable programs.

Other bugs however were quickly traced into the C level stuff, which disappered
into the GTK library. These were pretty fundamental bugs ; massive memory leaks
and crashes.

For example, in the "Plot 3D" demo, pressing the "Rotate" buttons had three
unexpected effects on my system; both with the pre-built "Testgtk" executable
and my build. 
(1) Some of the buttons disappear : not very serious, probably fixable within
Ada. (not attempted; I'd probably have had to understand the signalling model to
tell the buttons to redraw themselves)
(2) About 300K memory leak for each press of a Rotate button..
(3) The 32nd press exited the program with a PROGRAM ERROR : Exception Access
Violation which the stack trace suggested came from below the GTK interface.

To deal with them any further I would have had to find the GTK 2.8.0 sources,
and learn to build that on Windows.(Unfortunately, other work then intervened,
as it does)

So I concluded, albeit without having got very far into the evaluation:

There are no suitable prebuilt binaries anywhere (I can find at least) so
I could concentrate on GtkAda.

- Brian





  parent reply	other threads:[~2008-01-24 15:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-23  8:54 [blog] Why I hate Gtk+/GNOME (from the perspective of an Ada supporter) Martin Krischik
2008-01-23 12:35 ` petter_fryklund
2008-01-23 16:15   ` Martin Krischik
2008-01-23 16:22 ` [blog] " Ludovic Brenta
2008-01-23 16:39   ` Tero Koskinen
2008-01-24  7:40     ` Martin Krischik
2008-01-24  7:44   ` Martin Krischik
2008-01-24  9:13     ` Maxim Reznik
2008-01-24 11:04       ` Ludovic Brenta
2008-01-24 11:50         ` Martin Krischik
2008-01-24 15:55         ` Brian Drummond [this message]
2008-01-24 17:08           ` Martin Krischik
2008-01-24 17:21           ` Pascal Obry
2008-01-25  7:28             ` Martin Krischik
2008-01-25  8:37               ` Ludovic Brenta
2008-01-25 10:45                 ` Martin Krischik
2008-01-25 10:56                   ` Pascal Obry
2008-01-25 12:17                     ` Martin Krischik
2008-01-25 13:09                       ` Ludovic Brenta
2008-01-25 15:05                         ` Martin Krischik
2008-01-25 15:53                         ` Stefan Bellon
2008-01-26  9:53                     ` Martin Krischik
2008-01-24 11:52       ` Martin Krischik
replies disabled

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