@pcwalton Scheme has both dynamic-wind and proper tail calls, so I'm skeptical of this claim.
-
-
-
@samth Does dynamic-wind cause frames to be promoted to heap? Not sure how it works without either preventing TCO or silently heapifying. - 2 more replies
New conversation -
-
-
@awelonblue If a dtor has side effects, whether TCO is performed affects the semantics of the code (you'd have to run dtors before the call)Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@awelonblue Functions that have no side-effecting dtors are fine though. With some effort we could make TCO work in those cases.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@pcwalton my compilers prof from college would have you killed for saying that :-) -
@snorp A lot of people would ;) It totally depends on the language! What's right for Scheme isn't necessarily right for C, C++, or Rust. - 1 more reply
New conversation -
-
-
@pcwalton with a little CPS everything is a tail call including destructors. But probably pushes too much to the heap for your needs. -
@jamesiry Yeah, heapifying stuff isn't compatible with the memory model. But I'd be in favor of trampolines + sugar to make CPS nice. - 1 more reply
New conversation -
-
-
@pcwalton i have never in my life given a crap about lacking TCOThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@pcwalton but for C / C++, you can't have general TCO anyway; since arguments on stack are cleaned by the caller.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.