Repository navigation
Add a paragraph describing the prohibition on implicit TCO. - #387
Conversation
|
Wordsmith integrated. FutureFeatures.md section added. I rewrote "likely to be added" with "planned for the future" which is stronger without quite suggesting more commitment from all parties involved than I'm comfortable making in this PR. |
There was a problem hiding this comment.
To address the above objection, perhaps append "which would add an explicit tail-call operation with well-defined effects on stack introspection."?
6c047df to
58d223e
Compare
|
Sounds good to me. Updated. |
|
I discussed this with @titzer and @flagxor: we'd rather specify this positively instead of negatively. It would be better to say that the transform should eventually hit a limit, so an optimizer can do TCO but has to either prove that the corresponding loop terminates or keep an implementation-defined limit to model resource exhaustion (as detailed in Nondeterminism.md). |
|
@jfbastien If I remove the first sentence of the paragraph, does the rest satisfy your concern? I added the first sentence as a "plain language" version of what follows, since the theoretical mechanism being inventing here is somewhat abstract and subtle, and I didn't want users or implementors to miss the main point. But I'm open to suggestions on how to clarify it. |
|
@sunfishcode yes, dropping the first sentence is good. I'd also clarify this one:
Calls are already not portable because of their implementation-defined limit! I'd instead say something like:
|
4e55ab1 to
3683945
Compare
|
@jfbastien Ok, I removed the first sentence and rewrote the other sentence. Does this work for you? |
|
lgtm |
|
Merging with lgtm above and rough consensus in WebAssembly/spec#103. |
Add a paragraph describing the prohibition on implicit TCO.
This corresponds with WebAssembly/spec#103