coroutine
How are coroutines implemented in smalltalk?
Can I implement coroutines in smalltalk? If your answer is 开发者_如何学Pythonno: why not? Or if its yes: can you give me an example?Most Smalltalk have stack manipulation methods on the thisContext[详细]
2023-03-16 03:31 分类:问答Can I express this as a generator / coroutine?
Suppose I have the following class: class MyGen(object): def next(self): return X() def send(self, x): return f(x)[详细]
2023-03-14 21:32 分类:问答CPS compiler for coroutine implementation
I used to work on IronLua in my spare time. Lexing and parsing is currently done. I kind of stopped working on it out of frustration since implementing Lua coroutines in .NET without resorting to dirt[详细]
2023-03-13 20:39 分类:问答Luabind and coroutines
I\'m having some trouble understanding how to use coroutines properly with luabind. There\'s a templated function:[详细]
2023-03-13 19:00 分类:问答Python generators and coroutines
I am studying coroutines and generators in various programming languages. I was wondering if there is a cleaner way to combine together two coroutines implemented via generators than yielding back at[详细]
2023-03-04 16:29 分类:问答Interpreter with "suspend" capability
Are there any language interpreters (e.g. a JavaScript interpreter, Lua inter开发者_如何学运维preter, Python interpreter, etc.) that have the ability for the script to suspend itself, and for the host[详细]
2023-03-01 20:18 分类:问答Coroutines with a growing stack in C
I want to use coroutines in C (Linux), but I don\'t want to waste lots of space for each one. I\'m wondering about allocating the space for the stack with mmap开发者_如何转开发() given MAP_GROWSDOWN,[详细]
2023-02-23 06:17 分类:问答Lua: preemtive (not cooperative) multitasking in Lua with thread-like structures
I was wondering whether Lua has any preemptive multitasking facilities built-in. I would like to have concurrent threads to use on my multi-core system.[详细]
2023-02-19 19:55 分类:问答Alternatives to coroutines
This example has been used in another question to illustrate how coroutines can be used to script cutscenes in a video game:[详细]
2023-02-17 16:40 分类:问答Can you dump a running Lua coroutine to a file for a later resume?
While thinking of load/save mechanics for a game using Lua coroutines a quite interesting question has arisen -- can you dump a running Lua state to file co开发者_C百科mpletely? Apart from the obvious[详细]
2023-02-15 18:09 分类:问答
加载中,请稍侯......