delimited-continuations Questions

1

Solved

I found an example of shift-reset delimited continuations in Haskell here: resetT $ do alfa bravo x <- shiftT $ \esc -> do charlie lift $ esc 1 delta lift $ esc 2 return 0 zulu x T...

2

Solved

The following is a simple example of using delimited continuation (reset/shift): import Control.Monad import Control.Monad.Trans import Control.Monad.Trans.Cont test :: Integer test = evalCont . r...
Workman asked 1/7, 2022 at 18:48

1

Back in the day, I thought I understood call/cc. These days I'm seeing a lot more references to "delimited" continuation operators, which seem to come in pairs like shift/reset, pro...

1

I am not sure I understand the difference between the delimited continuation operator pairs prompt/control and reset/shift. I understand some basic examples of use, but in those examples their beha...
Walsingham asked 4/11, 2020 at 21:45

1

Solved

The topic of delimited continuations was barely discussed among programming language enthusiasts in the 1990s. It has recently been re-emerging as a major thing in programming language discussions....
Stettin asked 9/7, 2020 at 15:2

7

Solved

I just finished Programming in Scala, and I've been looking into the changes between Scala 2.7 and 2.8. The one that seems to be the most important is the continuations plugin, but I don't understa...
Dermatosis asked 3/10, 2009 at 5:54

1

Solved

I study delimited continuations and am currently playing with discarding them to obtain an effect similar to raising exceptions. Here is what causes me trouble: const structure = type => c...

2

Solved

While trying to build some intuition for the ContT monad transformer I (perhaps unsurprisingly) found myself confused. The issue lies with the shiftT operation which doesn't seem to do anything use...
Steffin asked 29/4, 2017 at 12:20

1

Solved

I'm trying to decipher the documentation call-with-continuation-prompt Applies proc to the given args with the current continuation extended by a prompt. The prompt is tagged by prompt-tag, w...
Vallation asked 24/4, 2015 at 3:43

2

Solved

Scala newbie here, I just downloaded Eclipse 3.6.2 and Scala IDE 2.0.0-beta4 (with Scala 2.9.0.final). I create a new Scala project to try delimited continuations: package delimCCTests import sca...
Cursed asked 19/5, 2011 at 22:30

1

There is a well known issue that we cannot use forall types in the Cont return type. However it should be OK to have the following definition: class Monad m => MonadCont' m where callCC' :: (...
Unloose asked 16/6, 2014 at 6:20

1

Solved

I'm wondering what's the relationship between the async/await pattern (as known from Scala, F#, C#, etc.) and continuations: Is the async/await pattern a limited subset of full-blown continuation...

1

Solved

I realize this is counter to the usual sense of SO questions, but the following code works even though I think it should not work. Below is a small Scala program that uses continuations with a whil...
Legislator asked 21/12, 2013 at 1:38

1

Solved

I'm studying Oleg's and Asai's delimited continuations "for dummies" paper(http://pllab.is.ocha.ac.jp/~asai/cw2011tutorial/main-e.pdf) but this paper uses the shift/reset formalism instead of the p...

2

Solved

Interested in the concept of continuation, I started reading wikis, posts, and came to this "simple" example: reset { ... shift { k: (Int=>Int) => // the continuation k will be th...
Galiot asked 13/1, 2012 at 10:18

2

Solved

I think I understand (in general) what shift and reset mean. However I do not understand why they are named so ? What do shift and reset as Delimited Continuation primitives have to do with "shift"...
Daubigny asked 13/5, 2011 at 9:35

3

Is anyone using delimited continuations for Haskell development, specifically web development? I find the topic fascinating I need something more accessible than what I've been studying. Here are ...
Hydrocellulose asked 13/6, 2011 at 20:26
1

© 2022 - 2024 — McMap. All rights reserved.