Re: Garbage collection
"Eligiusz Narutowicz" <eligiuszdotnar u@hotmail.comwr ote in message
news:fv24na$cqu $1@registered.m otzarella.org.. .
Malloc can run out of memory.
Not using malloc can't! So the program can't fail for that reason.
--
Bartc
"Eligiusz Narutowicz" <eligiuszdotnar u@hotmail.comwr ote in message
news:fv24na$cqu $1@registered.m otzarella.org.. .
Flash Gordon <spam@flash-gordon.me.ukwri tes:
>
>
Why? If you are able to be programming and testing properly your
seemingly random restrictions seem more tailored to a low quality C
programmer than to produce a sensible and reliable program. Mallocing
memory is not dangerous at all when its correctly handled.
>
>jacob navia wrote, On 27/04/08 14:57:
>>
>Actually, I would prefer safety critical software not use *any*
>allocated memory, no recursion, and the maximum call depth and memory
>usage calculated and *proved* to fit in the available memory. I've
>done a significant amount of non-safety critical work with these
>restrictions so for certain classes of application it is entirely
>possible.
>>George Peter Staplin wrote:
>>>Some people are content with a few false references and thus the
>>>Boehm GC works for them. I hope that their software isn't used for
>>>something involving human lives, and that the allocations retained
>>>aren't large.
>>>>
>>>
>>Incredible. And you will trust your life to the ability of a programmer
>>to avoid bugs in MANUALLY done memory management?
>>>
>>I would prefer GC at any time!
>>>Some people are content with a few false references and thus the
>>>Boehm GC works for them. I hope that their software isn't used for
>>>something involving human lives, and that the allocations retained
>>>aren't large.
>>>>
>>>
>>Incredible. And you will trust your life to the ability of a programmer
>>to avoid bugs in MANUALLY done memory management?
>>>
>>I would prefer GC at any time!
>Actually, I would prefer safety critical software not use *any*
>allocated memory, no recursion, and the maximum call depth and memory
>usage calculated and *proved* to fit in the available memory. I've
>done a significant amount of non-safety critical work with these
>restrictions so for certain classes of application it is entirely
>possible.
Why? If you are able to be programming and testing properly your
seemingly random restrictions seem more tailored to a low quality C
programmer than to produce a sensible and reliable program. Mallocing
memory is not dangerous at all when its correctly handled.
Not using malloc can't! So the program can't fail for that reason.
--
Bartc
Comment