Question about circular references

David Alayachew davidalayachew at gmail.com
Tue Jul 4 13:28:35 UTC 2023


Hello Duncan,

Thank you for your response!

I'll address your point as a whole and say, I think we both agree, that
right now, Java makes it so that indirection is the only real, viable way
to represent this type of model. And even then, I am of the opinion that it
doesn't scale nearly as easily as the direct variant would (unless you try
to do in the edges format like Ron suggested here --
https://mail.openjdk.org/pipermail/amber-dev/2023-July/008137.html).

But for a better example of what I was looking for, take a look at Brian
Goetz's Data-Oriented Programming article. In it, he draws out a Binary
Tree using Nodes. The representation is direct, just like in a linked list.
I was hoping for a similar level of directness, but permitting circular
references.

Also, please see my last 2-3 paragraphs on this link (
https://mail.openjdk.org/pipermail/amber-dev/2023-July/008149.html) for
what I think a possible future solution might look like.

Thank you for your time and help!
David Alayachew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20230704/8373d2d4/attachment-0001.htm>


More information about the amber-dev mailing list