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,8b7e315279c3f417 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.87.165 with SMTP id az5mr3375067wib.1.1355767765080; Mon, 17 Dec 2012 10:09:25 -0800 (PST) Path: l12ni135661wiv.1!nntp.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada Library, called, returns and continues ? Date: Mon, 17 Dec 2012 19:09:20 +0100 Organization: cbb software GmbH Message-ID: References: <5ced9166-5a29-4ad2-8270-6d24ddd0d0a1@googlegroups.com> <1rz66cdo8v1hv.j9eyg9eqqide$.dlg@40tude.net> <87db4d95-56ce-4254-8031-7bbbea515ff3@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-17T19:09:20+01:00 List-Id: 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