A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/348383.html below:

Software bugs aren't inevitable

Software bugs aren't inevitable Software bugs aren't inevitableSteven D'Aprano steve at REMOVETHIScyber.com.au
Thu Sep 15 07:56:06 EDT 2005
On Wed, 14 Sep 2005 12:23:00 -0700, Paul Rubin wrote:

> Steven D'Aprano <steve at REMOVETHIScyber.com.au> writes:
>> It is a "mere implementation detail" that (for most computer systems, and
>> most programming languages) stack space is at a premium and a deeply
>> recursive function can run out of stack space while the heap still has
>> lots of free memory.
> 
> Every serious FP language implementation optimizes tail calls and thus
> using recursion instead of iteration doesn't cost any stack space and
> it probably generates the exact same machine code.

Are you saying that the recursion done by "serious" languages is a fake?
That it is actually implemented behind the scenes by iteration?

It seems to me that if recursion and iteration produce "the exact same
machine code", the argument for preferring recursion over iteration is
gutted.


-- 
Steven.


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4