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: Continuations are not so good, delimited continuation are far better Date: Mon, 21 Jul 2014 17:41:21 +0200 Organization: Ada @ Home Message-ID: NNTP-Posting-Host: 7CVqBR+5hdEkou+4SI4wTA.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:21091 Date: 2014-07-21T17:41:21+02:00 List-Id: Hi out there, I'm posting this here, after some previous talks about the wish to get = coroutines in Ada. Coroutines are related to continuations. Continuation is well know = abstraction in the functional programming world, which often forget abou= t = real world limitations, something Ada is necessarily aware of. While = mathematically correct, continuations are not so good in practice. I was questioning myself about continuation's implementation in SML = compilers (like MLton), and landed onto something worth to be forwarded = in = an Ada newsgroup: a multi=E2=80=91page document about continuations, whe= re the = author argues against classical continuation and argues in favour of = delimited continuation. Somewhere in these pages, he notes an = implementation or compiler, will anyway have to determine a delimited = continuation for each continuation, to implement continuations = efficiently. That's what I had in mind too, and that's why I enjoy this = = document (I have not read all of it yet). See: [Continuations and delimited = control](http://okmij.org/ftp/continuations/index.html) -- = =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