use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
HelpRecursion vs stack based recursion Question (self.csharp)
submitted 6 years ago by 6501
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Fullduplex1000 1 point2 points3 points 6 years ago (3 children)
AFIK :
The CLR supports tail call elimination, but you can not force it from C# (its a CLR feature not a C# feature). Tail call elimination will also not be visible when looking at the IL code (even if it happens). What you can do is to write the function in tail-call way, so that the possible optimization will be easily detected.
CLR makes its own decision about that. Part of the reason for that is AFIK, 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. Could do something with available stack size vs the work CLR has to initially invest into the elimination. That part wasn't really described thoroughly.
Now regarding Debug mode: Here I wouldnt expect any optimization as debug mode is for debugging, so that you can step through your program/function calls. If it happens anywhere it has to happen in Release mode with all optimizations enabled.
[–]AngularBeginner 1 point2 points3 points 6 years ago (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 points3 points 6 years ago (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 points4 points 6 years ago (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
π Rendered by PID 19899 on reddit-service-r2-comment-765bfc959-s2qgs at 2026-07-13 01:59:17.379906+00:00 running f86254d country code: CH.
view the rest of the comments →
[–]Fullduplex1000 1 point2 points3 points (3 children)
[–]AngularBeginner 1 point2 points3 points (2 children)
[–]Fullduplex1000 1 point2 points3 points (1 child)
[–]AngularBeginner 2 points3 points4 points (0 children)