Using a Continuation Twice and Its Implications for the Expressive Power of Call/CC

نویسنده

  • Hayo Thielecke
چکیده

We study the implications for the expressive power of call/cc of upward continuations , speciically the idiom of using a continuation twice. Although such control eeects were known to Landin and Reynolds when they invented J and escape, the forebears of call/cc, they still act as a conceptual pitfall for some attempts to reason about continuations. We use this idiom to refute some recent conjectures about equivalences in a language with continuations, but no other eeects. This shows that rst-class continuations as given by call/cc have greater expressive power than one would expect from goto or exits.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Typeful Normalization by Evaluation

We present the first typeful implementation of Normalization by Evaluation for the simply typed λ-calculus with sums and control operators: we guarantee type preservation and η-long (modulo commuting conversions), β-normal forms using only Generalized Algebraic Data Types in a general-purpose programming language, here OCaml; and we account for finite sums and control operators with Continuatio...

متن کامل

Hydrothermal Optimal Power Flow Using Continuation Method

The problem of optimal economic operation of hydrothermal electric power systems is solved using powerful continuation method. While in conventional approach, fixed generation voltages are used to avoid convergence problems, in the proposed algorithm, they are treated as variables so that better solutions can be obtained. The algorithm is tested for a typical 5-bus and 17-bus New Zealand networ...

متن کامل

Representing Control: A Study of the CPS Transformation

This paper investigates the transformation of v-terms into continuation-passing style (CPS). We show that by appropriate-expansion of Fischer and Plotkin's two-pass equational speciication of the CPS transform, we can obtain a static and context-free separation of the result terms into \essential" and \administrative" constructs. Interpreting the former as syntax builders and the latter as dire...

متن کامل

Your Call Could not be Completed as Dialled: Why Truth Does not Speak to Power In Global Health; Comment on “Knowledge, Moral Claims and the Exercise of Power in Global Health”

This article contends that legitimacy in the exercise of power comes from the consent of those subject to it. In global health, this implies that the participation of poor country citizens is required for the legitimacy of major actors and institutions. But a review of institutions and processes suggests that this participation is limited or absent. Particularly because of the complex political...

متن کامل

Continuation calculus

Programs with control are usually modeled using lambda calculus extended with control operators. Instead of modifying lambda calculus, we consider a different model of computation. We introduce continuation calculus, or CC, a deterministic model of computation that is evaluated using only head reduction, and argue that it is suitable for modeling programs with control. It is demonstrated how to...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Higher-Order and Symbolic Computation

دوره 12  شماره 

صفحات  -

تاریخ انتشار 1999