java 19 and 20 features

Abstract

Amber project:

  • record patterns
  • pattern matching for switch

Panama project:

  • foreign function & memory API
    • alternative to java.nio.ByteBuffer
  • vector API

Loom project:

  • virtual threads
  • structured concurrency
  • scoped values