Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×

Comment: Re:Best support stories page (Score 5, Informative) 1177

by mrpotato (#15663322) Attached to: Your Favorite Support Anecdote
There's a good reason why you want to be able to support more than 16,384 local variables in a C function. Some compilers for functional languages (say Scheme) can compile a whole Scheme module to a single C function. The idea is that Scheme features tail-calls optimization, so it allows you to implement some function calls as a C goto (which is very efficient).

Such machine-generated code can get quite big. It would really sucks to have a silly hard-fixed limit for the number of variables in a function.

Now I understand that in the case of the anecdote the programmer might really have had more than 16,384 variables in a function for hand-written code. That would be /very/ scary.

Optimization hinders evolution.

Working...