~/talk

Novel but practical uses of Java

Talkat Joker 2020 · 2020-11-25..11-28· [java, creative-coding]
slides:none on file

OpenHFT examples show practical hacks: a class that extends Throwable for recorded stack traces to capture where resources are created or closed (useful for long‑lived file handles), deterministic cleanup of thread‑local caches via a thread wrapper using reflection, dynamic enums via Unsafe.allocateInstance for adding/altering enum-like IDs at runtime, 64‑bit time IDs unique per machine with micro/nano resolution, a lock‑free shared CharSequence cache, classValue metadata caching, safe‑point insertion and spin‑hint tricks, and a rethrow utility; currentTimeMicros measures ~30–50 ns and all work aims to remain Java 8 compatible.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:11Extending Throwable for stack traces
  3. 8:22Dynamic enums for serialization
  4. 17:46Java 8 vs newer versions
  5. 21:59Using double over BigDecimal
  6. 26:33ThreadLocal resource cleanup
  7. 36:03Unique timestamp generation
  8. 41:03Thread-safe object pooling
  9. 43:19Documenting runtime exceptions
  10. 50:02ClassValue for metadata caching
  11. 52:13Vacuous exceptions handling
  12. 58:14Safe points in profiling
  13. 1:05:15Exception handling and testing
  14. 1:08:04Q&A on Java features
~/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.