Re: How come Ada isn't more popular?



On Wed, 07 Feb 2007 08:54:58 +0100, Maciej Sobczak wrote:

Dmitry A. Kazakov wrote:

For handling cycles there are weak pointers.

Not only. If you have cycles, then you'd better rethink the design.
The difference is between a) graph treated as a mesh (or mess) of nodes
which "own" each other and b) graph treated as a collection of nodes.
The former might have ownership cycles between nodes, but not the
latter, where ownership is an acyclic relation between graph and nodes.
I agree that this kind of restructuring is not always possible, but for
me it is conceptually cleaner and worth trying from the beginning.

I would say that in all cases all references within it should be
non-controlled. The argumentation could go as follows:

A controlled reference (subject of GC) expresses the life-time relation
"not before me." [*] This relation is obviously transitive (due to nature
of time). Ergo, there cannot be any cycles, per definition.

From this stand point I would claim that a cycle of controlled references
manifests either a bug or a design problem. That a buggy program continues
to function as-if there were no bug, barely should be attributed as an
advantage of GC systems.

-----------------
* One cannot say that the relation is "before or together with me,"
because nothing can happen simultaneous. Even if two [collection] actions A
and B could happen concurrently, then A and B were independent, thus there
could be no any time constraint between them.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages

  • Re: recursive classes
    ... Java is okay with many kinds of cycles in class dependency graphs. ... If you're looking for a better two-pass implementation then you'll have ... you may want to consider whether there is a better design. ...
    (comp.lang.java.programmer)
  • Re: looking for research partner [block cipher design]
    ... > I have a design for a block cipher that is intended to be used in CTR ... > clocks per byte ratio [roughly 1.0625 cycles per byte]. ... After the first eight rounds the pipeline is filled ...
    (sci.crypt)
  • Re: How would you ride this?
    ... cycles in a bus lane. ... Apart from that cycles and buses are ... Most buses wish to move at a relatively high speed for short ... Design, a Department for Transport publication due out this summer, should ...
    (uk.rec.cycling)
  • Re: 24-bit SPI?
    ... >>> able to transfer the data from the SPI and access the memory in 8 bit ... assembly code and counting cycles, and when it is a useful tool and when ... If it becomes essential to count the cpu cycles when ... stage of the design, then it is ...
    (comp.arch.embedded)
  • Bird Flu and "Bugging Out"
    ... couple of years for those cycles to complete. ... That is an awfully long time to "bug out". ... I think the best case scenario in an H5N1 pandemic is a vaccine ... Barry goes into great depth not only about the ...
    (misc.survivalism)