Donald Raab
@thedonraab.bsky.social
890 followers 400 following 470 posts
Java Champion. Writer of blogs. Creator of the OSS Java library Eclipse Collections. Author of Eclipse Collections Categorically (https://a.co/d/6KmhrNK) . Opinions are my own. Blog: https://donraab.medium.com/
Posts Media Videos Starter Packs
Reposted by Donald Raab
Yeah, ListN doesn't have a specialized spliterator implementation, so it uses AbstractList's RandomAccessSpliterator. It would probably be fairly simple to have it use ArraySpliterator. The difference is that the List RAS has a get() call vs direct array access. Seems like a moderate gain.
My latest blog: Spliterating Hairs Results in Spliterating Deja Vu

The story of a four day accidental rabbit hole self-extraction. I've fallen down this hole before. Who knows, maybe the blog will prove useful and lead to a small change in the #Java ListN class. 🤷‍♂️
donraab.medium.com/spliterating...
Spliterating Hairs Results in Spliterating Deja Vu
How a “Random” question led me down a Java Spliterator rabbit hole.
donraab.medium.com
It was a very nice surprise to see RAS getting actively used still today. I don't know why I never thought before to run our unit test suite with breakpoints just outputting. Oh well, I got to learn something new.
I spent way too much time looking at this as I was stuck in my home office past few nights quarantined. I decided to write down and share some of what I found. I literally just finished it and saw your responses. Hope it is helpful. 🙏
donraab.medium.com/spliterating...
Spliterating Hairs Results in Spliterating Deja Vu
How a “Random” question led me down a Java Spliterator rabbit hole.
donraab.medium.com
Reposted by Donald Raab
Have you encountered RandomAccessSpliterator in your #Java travels? I saw it is used 76 times running the Eclipse Collections unit test suite in the debugger. TIL that both ListN and List12 classes use it, except for 1️⃣ element Lists. It's nice to see it is used. 👍❤️
donraab.medium.com/traveling-th...
Traveling the road from Idea all the way to OpenJDK
See something. Say something. Prove something. Do something.
donraab.medium.com
Ok, I nerd sniped myself. I ran a benchmark comparing a simple summing of int values between ArrayList, Arrays . asList(), and ListN. The first two use ArraySpliterator, and ListN uses RandomAccessSpliterator.

Source: github.com/vmzakharov/r...
So, the million element question I have for @smarks.bsky.social is would it be better to have ListN return an ArraySpliterator instead of RandomAccessSpliterator? Of course, by "better" we should be able to measure a performance difference.

Part of my surprise here was that it doesn't already.
If it's not clear what ListN or List12 are in the JDK, the following example unit test will hopefully help.

* integersBig = ListN
* integersTwo = List12
* integersOne = List12

I have learned to read List12 as "List One or Two", not "List Twelve."
Have you encountered RandomAccessSpliterator in your #Java travels? I saw it is used 76 times running the Eclipse Collections unit test suite in the debugger. TIL that both ListN and List12 classes use it, except for 1️⃣ element Lists. It's nice to see it is used. 👍❤️
donraab.medium.com/traveling-th...
Traveling the road from Idea all the way to OpenJDK
See something. Say something. Prove something. Do something.
donraab.medium.com
Reposted by Donald Raab
Blog: 10 Billion Integers Walk Into an Array

I wrote this blog in October last year, and it has been my top blog for the past year based on number of views and reads. 🤷‍♂️

Enjoy! 🙏
donraab.medium.com/10-billion-i...
10 Billion Integers Walk Into an Array
How an experiment with 64-bit Pharo Smalltalk surprised me.
donraab.medium.com
Reposted by Donald Raab
You can’t join hallway track convos through a screen 😅 💬

Meet your people live at #Devnexus 2026 — Early Bird tickets end next week!

🎟️ Secure tickets today at devnexus.org
Open source works when you do.

Something I wrote down this week.
It's a beautiful day.
Go out and be you.
You're good enough.
Be better tomorrow.
By being you today.

🤗
Reposted by Donald Raab
Survival isn’t about holding on—it’s about understanding your brain. 🧠

@arthurdoler.com's inspiring keynote at #dev2next, Survival Under Fire, showed how to stay whole during adversity and prepare for the next challenge.

Photos from the keynote below!
#Resilience #WellBeing
Reposted by Donald Raab
There's one week left to read "Eclipse Collections Categorically" on Kindle Unlimited for free. Read the authors inside guide to reading first to find out how to make the most out of reading the book with limited time.
donraab.medium.com/the-authors-...
The Author’s Inside Guide to Reading Eclipse Collections Categorically
TL;DR — Read Chapters 1, 2, 3. Jump to 11. Skim 4–10. Dive in as desired.
donraab.medium.com
Tried 20 Billion Integers tonight with Pharo Smalltalk. This took more than the physical memory I had available. It took a long time to run, but the following code finished after 40 minutes or so.
Blog: 10 Billion Integers Walk Into an Array

I wrote this blog in October last year, and it has been my top blog for the past year based on number of views and reads. 🤷‍♂️

Enjoy! 🙏
donraab.medium.com/10-billion-i...
10 Billion Integers Walk Into an Array
How an experiment with 64-bit Pharo Smalltalk surprised me.
donraab.medium.com
Cup half full here.

The world's problems are too numerous for any one person to solve. Pick one or two and solve the 💩 out of them. Support and advocate for those who are working hard to solve other problems you care about. Thank you for doing what you do to make the world a better place for all. 🙏
I'm back home from #dev2next and am writing my first blog in over a month. I only wrote one blog in September, mostly because I was busy preparing and travelling to two developer conferences. Stay tuned!
So long Colorado. Good times had and memories made at #dev2next this year. Thank you @dev2next.bsky.social and @venkats.bsky.social ! 🙏 Below was my new sighting at Garden of the Gods this trip. Balanced with the force is this rock. An inspiration. Balance we must all find. ⚖️
Two cute. Miss these guys. They'll be keeping us up late tonight. 🐈‍⬛🐈‍⬛
Great explanation of what, why, and where is architect from @zakhav.bsky.social in "Escaping Architecture Ivory Tower with Architecture Pattern Catalog" at #dev2next. I loved this talk and the human drawn pictures on the slides. Well done! 👏
Vlad with title slide Slide for what is architect Vlad with slide of why is architect Slide for where is architect