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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.160.5 with SMTP id x5mr3756363ywg.22.1464211483857; Wed, 25 May 2016 14:24:43 -0700 (PDT) X-Received: by 10.157.39.1 with SMTP id r1mr105460ota.8.1464211483812; Wed, 25 May 2016 14:24:43 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!q32no388954qgq.0!news-out.google.com!h125ni1554ita.0!nntp.google.com!sq19no7448110igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 25 May 2016 14:24:43 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=174.112.65.102; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 174.112.65.102 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <25c43463-47ca-4021-82ee-299e6a075faa@googlegroups.com> Subject: Advice, tasking and hardware From: patrick@spellingbeewinnars.org Injection-Date: Wed, 25 May 2016 21:24:43 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:30479 Date: 2016-05-25T14:24:43-07:00 List-Id: Hi Everyone I don't want to troll the list, I need some honest advice and I need to be = honest about my goals, I hope I don't offend anyone. I spent almost every night in 2012 studying Ada. I bought/printed 53 lbs of= Ada books. I struggled to find a GUI binding I liked and I struggled to work with C. I= wanted to use Ada to avoid using C and I didn't understand C well. For the past few years I have been using GnuCOBOL. I absolutely love it. It= is much easier to interface to C with and it compiles to intermediate C so= it's easier to see what is happening rather then going from Ada to Assembl= y. While the interfaces.COBOL package is quite outdated and does not have k= nowledge of modern COBOL it does work well and I can mix the two languages. I am thinking about writing a backend in Ada again. I could do it in COBOL = but tasking and exceptions sound like a wise idea. I feel I am going to hav= e an easier time with C this time around. I don't have any experience with tasking though and while I have many examp= les of tasking in my books, none of them seem to call low level functions s= uch as drivers or driver-like functions. I am planning on using the Linux-G= PIB library. Sorry for the long introduction, to the point... Do you have any examples of tasking calling low level functions? Spark doesn't use tasking, are there many dangers in using tasking with har= dware? Would it be wise to wrap C driver calls in a protected object or are most d= rivers in Linux thread safe and suitable for being called from different th= reads? Could anyone give me some general guidelines? any pitfalls to avoid before = I set out to attempt this? Thanks for reading-Patrick