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: Mon, 17 Dec 2012 19:09:20 +0100
Date: 2012-12-17T19:09:20+01:00	[thread overview]
Message-ID: <v8i1ody29yor.l1qz8u7u8puy.dlg@40tude.net> (raw)
In-Reply-To: a73b16fa-27d2-4946-bd04-11b3691408f0@googlegroups.com

On Mon, 17 Dec 2012 07:58:48 -0800 (PST), Patrick wrote:

> "100K lines of GUI code or 100K lines altogether? "
> 
> The whole toolkit.

There should be some hidden code somewhere else.

> I was thinking that if I could bind an Ada entry to C, I could use a gui
> toolkits idle callback to retrieve information that could be processed in
> the back ground such as data being collected from an instrument, a bitmap
> image being generated from svg etc..

GtkAda contributions which does something close to this, you could use it
as a template for your code. However, as Simon wrote, using Ada with the
C++'s main requires additional work of initializing Ada's run-time. 

>> 'You also need support for unsolicited calls from Ada tasks. Consider a
>> progress bar indicator driven by an Ada task. At some point it should send
>> a message to the main thread to update the bar state. The main thread has
>> no idea about when and if that could happen. "
> 
> yes, I don't know how to do this but perhaps I can do this in a year or so
> when I am further along.

Or come to the conclusion that this cannot be done. When you say that a
tool kit X is simpler than the tool kit Y, this implies that you already
know how to accomplish all necessary tasks in X.

This is a typical mistake - look, how easy to create a window with a button
in it using X! Yes it is easy and you probably could accomplish 80% of the
project in 20% less time than in Y. The caveat is that the rest 20% could
require 1000% as much, if ever doable.

I know nothing about your toolkit X, I only warn you for this sort of
mistakes.

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



  parent reply	other threads:[~2012-12-17 18:09 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 [this message]
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
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