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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/valhalla-spec-experts/attachments/20180310/57e66a8f/attachment.html>


More information about the valhalla-spec-experts mailing list