~/talk

Escape from the Planet of the Collections

Talkat Devoxx Belgium 2024 · 2024-10-07..10-11· [java, functional-programming]
slides:none on file

Java Collections are 25 years old and the talk argues concrete fixes not slogans: use records plus defensive copies and set.copyOf or unmodifiable wrappers to preserve encapsulation; avoid subclassing ArrayList—extend AbstractList and delegate (the FixedFirstList example compiles and works); prefer composite-key records (TitleAuthor) instead of “fake” objects; beware differing equivalence relations (identity vs equals vs comparator); sizes hit the 2^31 limit (arrays and hash tables), linked nodes cost ~40B each and trees ~96B, and future directions point to Valhalla value classes and Panama memory segments.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.