comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada Library, called, returns and continues ?
Date: Tue, 18 Dec 2012 18:25:05 +0100
Date: 2012-12-18T18:25:05+01:00	[thread overview]
Message-ID: <1a69phv3aet5u$.1ejus4i3ca9h1$.dlg@40tude.net> (raw)
In-Reply-To: d99871e3-2d7d-4e5a-9726-fe79b984511c@googlegroups.com

On Tue, 18 Dec 2012 08:14:20 -0800 (PST), Patrick wrote:

> Yes we can make meta widgets in Ada-GTK but adding a lower level widget
> would likely involve C with Ada-GTK.

Not at all. C is not required for adding new widgets. You can create
composite widgets and, surprise, you can add new Ada proxies
(Gtk_XXX_Record types) to Gtk widgets missing in GtkAda without writing a
single line in C. For example, GtkAda contributions, which purpose is
largely mainly just this, does not have *any* C code.

> If all the widgets were coded in Ada
> and the primitives in the C/C++ core were nicely wrapped and isolated,
> then a new programmer could just learn Ada and not have to worry about
> C/C++.

Well, certainly it would be very nice to have 100% Ada cross-system
graphical framework. The problem is that Ada community is far too small to
accomplish such a Mammut task. Furthermore, there is no chance a firm would
develop it as commercial product. Because you cannot make any money selling
general-purpose libraries. This market was ruined decades ago.

> Again I have very limited experience with threading but I am
> guessing that if certain widgets were also protected, it would make
> writing a multi-threading GUI APP much nicer.

It is rather a long story. In short yes, Ada's tasking primitives could
help making GUI interfaces simpler. But there are many problems to solve,
like that task and protected types are not tagged, lack of multiple
inheritance to name few.

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



  reply	other threads:[~2012-12-18 17:25 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-16 19:21 Ada Library, called, returns and continues ? Patrick
2012-12-16 19:51 ` Simon Wright
2012-12-16 20:26 ` Dmitry A. Kazakov
2012-12-16 23:13   ` Patrick
2012-12-17  8:59     ` Dmitry A. Kazakov
2012-12-17 15:58       ` Patrick
2012-12-17 17:08         ` Simon Wright
2012-12-17 17:43           ` Patrick
2012-12-17 18:09         ` Dmitry A. Kazakov
2012-12-17 19:41           ` Patrick
2012-12-17 21:26             ` Dmitry A. Kazakov
2012-12-17 23:42               ` Patrick
2012-12-18  0:30                 ` Randy Brukardt
2012-12-18  1:36                   ` Patrick
2012-12-18 23:10                     ` Randy Brukardt
2012-12-18  9:17                 ` Dmitry A. Kazakov
2012-12-18 15:00                   ` Patrick
2012-12-18 15:37                     ` Dmitry A. Kazakov
2012-12-18 16:14                       ` Patrick
2012-12-18 17:25                         ` Dmitry A. Kazakov [this message]
2012-12-18 16:50                   ` Robert A Duff
     [not found]                 ` <2nr1d89tvkc3h0dvcd62tpsf1vujsdb09o@invalid.netcom.com>
2012-12-18 23:54                   ` Patrick
replies disabled

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