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,FREEMAIL_FROM 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!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Ada platforms and pricing, was: Re: a new language, designed for safety ! Date: Thu, 26 Jun 2014 20:20:42 +0200 Organization: Ada @ Home Message-ID: References: <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> <1d3612ad-f85a-489c-b4bc-0c23d5d67de3@googlegroups.com> <53abf03f$0$6612$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: sL8Mt6L5nmOdbSnd4AdJfA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:20622 Date: 2014-06-26T20:20:42+02:00 List-Id: Le Thu, 26 Jun 2014 12:04:47 +0200, G.B. = a =C3=A9crit: > On 26.06.14 04:50, Yannick Duch=C3=AAne (Hibou57) wrote: >> When I was using C, I used to implement per=E2=80=91coroutine stack (= with limit >> check!, cheese) and stack=E2=80=91switching for that purpose, but you= can't do >> it with Ada, as it does not allow this kind of low level hacking. > > Given that Ada allows hacking at a level lower than C > ---address arithmetic is not restricted by the type > of offsets, for example---what is it that you have been > doing in C that you think cannot be done in Ada? You can do low level with Ada (often better than with C), yes, except yo= u = can't (and that's for good) interfere with the runtime as much easily as= = you can with C. There is no setjump/longjump equivalent in Ada, and = switching between stacks allocated on the heap would be more hazardous = with an Ada compiler than with a C compiler. Anyway, that trick I used and which is not at all recommendable for = serious works, was surely not portable (I can't remember what the C = compiler was=E2=80=A6 DOS or Windows specific). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity