Re: How come Ada isn't more popular?



Maciej Sobczak <no.spam@xxxxxxxxxxx> writes:
OK. What about refcounting with smart pointers?

This form of GC actually works against your determinism goal. It simply is a
poor form of GC, can't handle cycles, and has unpredictable execution times.

A "real" GC smoothes out the collection costs.

But your main points of needing scoped-based resource control I indeed agree
with. My thing is convenience: sometimes that is simple wrappers with
destructors to cleanup after any possible scope exit, sometimes that is the
"WithResource" wrapper function pattern.

--
Cheers, The Rhythm is around me,
The Rhythm has control.
Ray Blaak The Rhythm is inside me,
rAYblaaK@xxxxxxxxxxxxxxxxxx The Rhythm has my soul.
.



Relevant Pages

  • Re: How come Ada isnt more popular?
    ... Dmitry A. Kazakov wrote: ... poor form of GC, can't handle cycles, and has unpredictable execution times. ... The former might have ownership cycles between nodes, but not the latter, where ownership is an acyclic relation between graph and nodes. ...
    (comp.lang.ada)
  • Re: How come Ada isnt more popular?
    ... poor form of GC, can't handle cycles, and has unpredictable execution times. ... For handling cycles there are weak pointers. ...
    (comp.lang.ada)