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!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Ada platforms and pricing, was: Re: a new language, designed for safety ! Date: Wed, 25 Jun 2014 20:24:20 +0300 Organization: Tidorum Ltd Message-ID: References: <1402308235.2520.153.camel@pascal.home.net> <85ioo9yukk.fsf@stephe-leake.org> <255b51cd-b23f-4413-805a-9fea3c70d8b2@googlegroups.com> <5ebe316d-cd84-40fb-a983-9f953f205fef@googlegroups.com> <2100734262424129975.133931laguest-archeia.com@nntp.aioe.org> <5156oy7vhg99.17wu6q2ef45ke.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net NorFw1I/LBa1EOqRCxd6qwFcinVQ599G6zsQokD+UGLDKTdq67 Cancel-Lock: sha1:vuTKCVrAyOYIQEeR/NAddmnbmyA= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <5156oy7vhg99.17wu6q2ef45ke.dlg@40tude.net> Xref: news.eternal-september.org comp.lang.ada:20594 Date: 2014-06-25T20:24:20+03:00 List-Id: On 14-06-23 10:42 , Dmitry A. Kazakov wrote: > On Mon, 23 Jun 2014 09:18:11 +0300, Niklas Holsti wrote: > >> I am currently working on an Ada project with a null run-time and a >> proprietary small multi-threading kernel. > > Wouldn't it be helpful to have user-defined tasking for such cases? I haven't felt a need for that. > Because there is another important case for this - co-routines. I don'like them, at least not as substitutes for tasking. They can be a way to interface and interleave two or more sequential algorithms in one task, in a controlled way. > When implementing > stuff like network communication (e.g. HTTP servers) and parallel > processing we frequently have a set of state machines (one per connection) > too expensive to handle from OS tasks. Programming a state machine is > turning all design upside down. If there were user-defined task support one > could program this as if it were in proper tasks. The proposals for "lightweight" tasks that I have seen have more constraints and ugly limitations than I would like. Even Ravenscar constraints are often annoying. Better OS support for Ada tasking would be preferable. I'm not convinced that the best and fastest designs for Ada tasking systems have been discovered yet. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .