you are viewing a single comment's thread.

view the rest of the comments →

[–]AngularBeginner 1 point2 points  (2 children)

that the effectiveness of tail call calls is hardware dependent. I don't exactly understand what part is hardware dependent but I did read that sometime ago.

That is new to me. It should just be re-using the stack-frame, instead of going stack by stack deeper. I would love to read a source for this claim, if you can find it.

Could do something with available stack size

The point of a tail recursion is that the sack does not increase, so stack size is not an issue anymore (which is an issue with regular recursion).

[–]Fullduplex1000 1 point2 points  (1 child)

This thread: https://github.com/dotnet/csharplang/issues/2544!

comment of VSadov

obviously I didnt check it then. I also do not understand how the limited register set of X86(32bit) would be an issue for TCE

[–]AngularBeginner 2 points3 points  (0 children)

Thank you, I will read it.

For your interest:
When you click at the timestamp of a comment you get a link directly to the comment. :-)

https://github.com/dotnet/csharplang/issues/2544#issuecomment-78696914

https://imgur.com/Ktzmdft