Quantcast
Viewing all articles
Browse latest Browse all 65

Inline Thinking | Patricia Aas – Programmer

I wasn’t aware that Java has some some catch-up and now supports user definable inline types: [Wayback/Archive] Inline Thinking | Patricia Aas – Programmer

Inline Thinking

97 Things Every Java Programmer Should Know

Patricia Aas, 16 January 2020
Computers changed. They changed in many ways, but for the purpose of this text they changed in one significant way: The relative cost of reading from RAM became extremely high.
These “cache friendly” behaviors are already present in Java when using so called “primitive types”, like ints and chars. “Primitive types” are “inline types” and come with all of their advantages. So even though inline types may seem foreign in the beginning, you have worked with them before, you just might not have thought of them as objects. So when “inline classes” seem confusing, you could try to think: “What would an int do?”

Via:

The rest of the thread is filled with cool messages around CPU caches and how they affect big O, so I saved it at [Wayback/Archive] Thread by @pati_gallardo on Thread Reader App.

–jeroen


Viewing all articles
Browse latest Browse all 65

Trending Articles