473,951 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SGCL - Garbage Collector for C++

SGCL is precise, parallel garbage collection library for C++ (at this time
for Windows 32/64 only). SGCL is free software published under University of
Illinois/NCSA Open Source License.

Get it at:
http://sourceforge.net/projects/sgcl/

Regards
Sebastian Nibisz

Feb 28 '08
72 3521
Jon Harrop wrote:
James Kanze wrote:
>On Mar 6, 12:54 am, Jon Harrop <use...@jdh30.p lus.comwrote:
>>James Kanze wrote:
I'm sorry, but it's frustrating. Somewhat upthread, someone
said "recursion" , doubtlessly ironically, since I do presume
that everyone would realize that explicitly recursing
1000000 times was a bad idea.
If you think there's something wrong with recursion then
there's something wrong with your chosen language(s) and
implementatio n(s)...
If you think you can recurse a 1000000 times in C or in C++,
you've got another think coming. It just won't work, at least
with the implementations I've got access to.

Exactly. That is a shortcoming of those languages and does not reflect upon
recursion.
It's not a short-coming of the languages, it's a QoI issue. Functional
languages translate such deep recursion into loops, because they have
to. Procedural languages provide looping constructs directly, so there
is not a compelling reason to perform such an optimization. If
recursion ever becomes a hyper-fashionable alternative to looping,
subsequent procedural language implementations likely will offer
guarantees about what sorts of recursion will be translated to loops.
In today's environment, though, as Peter Koch said, there is rarely (if
ever) a need for such deep recursion, anyway.
Mar 6 '08 #71
On 6 Mar., 14:56, Jon Harrop <use...@jdh30.p lus.comwrote:
James Kanze wrote:
On Mar 6, 12:54 am, Jon Harrop <use...@jdh30.p lus.comwrote:
James Kanze wrote:
I'm sorry, but it's frustrating. *Somewhat upthread, someone
said "recursion" , doubtlessly ironically, since I do presume
that everyone would realize that explicitly recursing
1000000 times was a bad idea.
If you think there's something wrong with recursion then
there's something wrong with your chosen language(s) and
implementation( s)...
If you think you can recurse a 1000000 times in C or in C++,
you've got another think coming. *It just won't work, at least
with the implementations I've got access to.

Exactly. That is a shortcoming of those languages and does not reflect upon
recursion.

--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.http://www.ffconsultancy.com/products/?u
Mar 6 '08 #72
On 6 Mar., 14:56, Jon Harrop <use...@jdh30.p lus.comwrote:
James Kanze wrote:
On Mar 6, 12:54 am, Jon Harrop <use...@jdh30.p lus.comwrote:
James Kanze wrote:
I'm sorry, but it's frustrating. *Somewhat upthread, someone
said "recursion" , doubtlessly ironically, since I do presume
that everyone would realize that explicitly recursing
1000000 times was a bad idea.
If you think there's something wrong with recursion then
there's something wrong with your chosen language(s) and
implementation( s)...
If you think you can recurse a 1000000 times in C or in C++,
you've got another think coming. *It just won't work, at least
with the implementations I've got access to.

Exactly. That is a shortcoming of those languages and does not reflect upon
recursion.
What do You mean? Do yo mean the inability to change a recursion to a
loop or the inability to have a large stack?

If it is the first case, then you're wrong: the loop in question could
not be reduced to a loop. If it the other case, youre also wrong
because there is nothing that demands that only a small stack should
be used.

/Peter
Mar 6 '08 #73

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.