continuation-passing
Real-world usage of Lua co-routines/continuation serialization to simplify async logic?
The Pluto library for Lua claims to be able to serialize Lua co-routines. I interpret this as meaning \'serializeable continuations\', which is an important feature for making asyncronous programming[详细]
2023-02-16 01:01 分类:问答Continuation-Passing Style in Scheme?
I ran into this code on Wikipedia: (define (pyth x y k) (* x x (lambda (x2) (* y y (lambda (y2) (+ x2 y2 (lambda (x2py2)[详细]
2023-02-12 19:31 分类:问答CPS in curried languages
How does CPS in curried languages like lambda calculus or Ocaml even make sense? Technically, all function have one argument. So say we have a CPS version of addition in one such language:[详细]
2023-02-01 07:12 分类:问答Is there macros for rewrite CPS?
For example I have two async methods (get-a 10 (lambda (a) (get-b a (lambda (b) (display b))) but I want to write something similar to[详细]
2023-01-29 01:47 分类:问答How could the new async feature in c# 5.0 be implemented with call/cc?
I\'ve been following the new announcement regarding the new async feature that will be in c# 5.0. I have a basic understanding of continuation passing style and of the transformation the new c# compil[详细]
2023-01-23 04:03 分类:问答Is MapReduce one form of Continuation-Passing Style (CPS)?
As the title says. I was reading Yet Another Language Geek: Continuation-Passing Style and I was sort of wondering if MapReduce can be categorized as one form o开发者_C百科f Continuation-Passing Style[详细]
2022-12-29 15:42 分类:问答nested CPS "reset"
using the CPS compiler-p开发者_运维知识库lugin of Scala 2.8, there are the two magic controls reset and shift. Reset delimits the continuation and shift captures the continuation.[详细]
2022-12-28 07:30 分类:问答What exactly are administrative redexes after CPS conversion?
In the context of Scheme and CPS conversion, I\'m having a little trouble deciding what administrative redexes (lambdas) exactly are:[详细]
2022-12-17 17:11 分类:问答