【发布时间】:2011-12-30 21:59:31
【问题描述】:
来自How does a stackless language work?
Haskell (as commonly implemented) does not have a call stack;
evaluation is based on graph reduction.
真的吗?这很有趣,因为虽然我自己从未体验过,但我读到如果你不使用严格版本的折叠函数然后强制评估无限折叠,你会得到堆栈溢出。当然,这表明存在堆栈。谁能澄清一下?
【问题讨论】:
-
让我道歉;我写了那个答案,有时我会编造一些听起来不错的废话:) 从那以后我了解到 Spineless Tagless G-machine 并不意味着 Stackless。
标签: haskell stack continuations stackless graph-reduction