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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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.66.82.103 with SMTP id h7mr1315685pay.11.1355759929277; Mon, 17 Dec 2012 07:58:49 -0800 (PST) Received: by 10.50.213.33 with SMTP id np1mr5459847igc.3.1355759929229; Mon, 17 Dec 2012 07:58:49 -0800 (PST) Path: s9ni44656pbb.0!nntp.google.com!kr7no7927002pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 17 Dec 2012 07:58:48 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.53.16.242; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 70.53.16.242 References: <5ced9166-5a29-4ad2-8270-6d24ddd0d0a1@googlegroups.com> <1rz66cdo8v1hv.j9eyg9eqqide$.dlg@40tude.net> <87db4d95-56ce-4254-8031-7bbbea515ff3@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Ada Library, called, returns and continues ? From: Patrick Cc: mailbox@dmitry-kazakov.de Injection-Date: Mon, 17 Dec 2012 15:58:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-17T07:58:48-08:00 List-Id: Hi Dmitry "100K lines of GUI code or 100K lines altogether? " The whole toolkit. I can understand this with difficulty. I was thinking ab= out reworking FLTK. I wanted to write a C wrapper around it's C++ core and = then bind to this. I was thinking the widgets could then be rewritten in Ad= a. I still might do this but my family demands have intensified again. I ha= ven't programmed in a month and I looking for something easier. I was thinking that if I could bind an Ada entry to C, I could use a gui to= olkits idle callback to retrieve information that could be processed in the= back ground such as data being collected from an instrument, a bitmap imag= e being generated from svg etc.. If a protected object and it's entries are bound to a C/C++ application wit= h it's own main, do you think the Ada threads will begin when the C main is= called or would I need to create an initialization for them? If they just = started, main C could call an entry or If I used a protected record I could= also access this as a struct and retrieve data this way. Do you think I co= uld send data back and forth through the protected record? '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. > I know eval is evil but if used > sparingly I think it could be quite powerful "No, it is not." Okay, I stay away from it. Thanks again for your feedback.