Iterators vs. Cursors: A Case Study in Objects vs. Values

John Rose john.r.rose at oracle.com
Sun Mar 11 02:56:29 UTC 2018


I've been talking for a long time about using value classes
for representing cursor-like data, where part of the value
is constant (like a base address) and part is variable
(like an index).  I decided to write up a case study about
value-based cursors as a replacement to iterators, as
well as with some reflections on how this fits into the
larger schemes of Valhalla.

Enjoy!

http://cr.openjdk.java.net/~jrose/values/iterator-vs-cursor.html <http://cr.openjdk.java.net/~jrose/values/iterator-vs-cursor.html>

— John



More information about the valhalla-spec-observers mailing list