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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Advice, tasking and hardware Date: Thu, 26 May 2016 09:13:53 +0100 Organization: A noiseless patient Spider Message-ID: References: <25c43463-47ca-4021-82ee-299e6a075faa@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="fa27e9c62dd412c1b6adffaac11b940a"; logging-data="20870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18fo1o54Dxx1nj9dRM+cGZzDpgX+wS0prE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:R/nGlKbsyCoXdWFcER4Di5YM2DM= sha1:svGrSTUEcWtDJ9v+Xq7NsgV7HTI= Xref: news.eternal-september.org comp.lang.ada:30483 Date: 2016-05-26T09:13:53+01:00 List-Id: "Jeffrey R. Carter" writes: >> Spark doesn't use tasking, are there many dangers in using tasking >> with hardware? > > SPARK 2014 includes Ravenscar > tasking. (http://docs.adacore.com/spark2014-docs/html/lrm/tasks-and-synchronization.html) But SPARK GPL 2015 doesn't support tasking. We live in hope that SPARK GPL 2016 will. I'm not sure of the best way to delegate tasking to the non-SPARK part of a program while maintaining SPARK for as much as possible. I suppose you'd have to be very restrained in your use of tasking (e.g. perhaps only use Ravenscar tasking, have the task call a SPARK subprogram to do the work). I had a program with a large PO/task job dispatcher with multiple entries and requeues in the PO, which was hugely improved when I had to reimplement under Ravenscar.