More than Persistent Collections ❤️
Contain persistent(immutable) collections/Functional Data Structures 📌
vavr ❤️
, VΛVΓ (Vavr, formerly called Javaslang) is a non-commercial, non-profit object-functional library that runs with Java 8+. It aims to reduce the lines of code and increase code quality.
cyclops ❤️
, An advanced, but easy to use, platform for writing functional applications in Java 8.
Functional Java
, Functional programming in Java
procrastination
, A small, straightforward library bringing the benefits of functional programming to Java 11
- sophisticated
FP Languages ❤️ have built-in Persistent Collections support 📌
Scala ❤️
, Scala combines object-oriented and functional programming in one concise, high-level language. Scala's static types help avoid bugs in complex applications, and its JVM and JavaScript runtimes let you build high-performance systems with easy access to huge ecosystems of libraries.
Clojure ❤️
, Clojure is a dynamic, general-purpose programming language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language, yet remains completely dynamic – every feature supported by Clojure is supported at runtime. Clojure provides easy access to the Java frameworks, with optional type hints and type inference, to ensure that calls to Java can avoid reflection.
Persistent(immutable) Collections/Functional Data Structures 📌
PCollections
, A Persistent Java Collections Library
Capsule
, aims to become a full-fledged (immutable) collections library for Java 8+ that is solely built around persistent tries.
dexx
, Dexx Collections are a port of Scala's immutable, persistent collection classes to pure Java.
Paguro
, Type-safe versions of Clojure's immutable/persistent collections
java-immutable-collections
Efficient Immutable/Persistent Collections for Java
Primitive Collections/Type-specific Collections 💎
fastutil ❤️
, fastutil extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues with a small memory footprint and fast access and insertion; provides also big (64-bit) arrays, sets and lists, and fast, practical I/O classes for binary and text files.
eclipse-collections
, Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.
trove4j
, High performance collections for Java
hppc
, HPPC provides template-generated implementations of typical collections, such as lists, sets and maps, for all Java primitive types. The primary driving force behind HPPC is optimization for highest performance and memory efficiency.
High Performance/Sophisticated Collection(-ish) 🚄
JCTools ❤️
, offer some concurrent data structures currently missing from the JDK. JCTools offers excellent performance. It's stable and in use by such distinguished frameworks as Netty, RxJava and others.
disruptor ❤️
, A High Performance Inter-Thread Messaging Library. Achieve very low-latency and high-throughput with our Java platform. Performance testing showed that using queues to pass data between stages of the system was introducing latency, so we focused on optimising this area.
High Scale Lib ❤️
, Cliff Click's high scale lib.
caffeine ❤️
, Caffeine is a high performance, near optimal caching library based on Java 8. For more details, see our user's guide and browse the API docs for the latest release.
concurrentlinkedhashmap
, A high performance version of java.util.LinkedHashMap for use as a software cache.
- Caffeine is the Java 8 successor to ConcurrentLinkedHashMap and Guava's cache. Projects should prefer Caffeine and migrate when requiring JDK8 or higher. The previous caching projects are supported in maintenance mode.
- code repo: https://github.com/ben-manes/concurrentlinkedhashmap
Collections Backed by Storage 🗃
mapdb ❤️
, MapDB provides Java Maps, Sets, Lists, Queues and other collections backed by off-heap or on-disk storage. It is a hybrid between java collection framework and embedded database engine.
Collections with Distribution 🌏
Chronicle Map ❤️
, Chronicle Map is a super-fast, in-memory, non-blocking, key-value store, designed for low-latency, and/or multi-process applications such as trading and financial market applications.
Chronicle Queue ❤️
, Chronicle Queue is a Java project focused on building a persisted low-latency messaging framework for high performance and critical applications.
Contain Collections, but NOT Persistent 😱
eclipse-collections
, Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.
commons-collections4
, The Apache Commons Collections package contains types that extend and augment the Java Collections Framework.
guava
- it is well known that
guava is more than a collection lib
- Caffeine is the Java 8 successor to ConcurrentLinkedHashMap and Guava's cache. Projects should prefer Caffeine and migrate when requiring JDK8 or higher. The previous caching projects are supported in maintenance mode.
- code repo: https://github.com/google/guava
- contains immutable collections
Related Resources
- persistent (immutable) collections
- primitive collections
More than Persistent Collections ❤️
Contain
persistent(immutable) collections/Functional Data Structures📌vavr❤️Kotlinintegration 🍩: https://github.com/vavr-io/vavr-kotlincyclops❤️RxJava,Reactor,guava,vavr,functionaljava...Functional JavaprocrastinationFPLanguages ❤️ have built-in Persistent Collections support 📌Scala❤️Clojure❤️Persistent(immutable) Collections/Functional Data Structures 📌
PCollectionsCapsuledexxScala's immutable, persistent collection classes to pure Java.Kotlinintegration 🍩PaguroClojure's immutable/persistent collectionsjava-immutable-collectionsPrimitive Collections/Type-specific Collections 💎
fastutil❤️eclipse-collectionseclipse-collectionsis more than a primitive collection libtrove4jhppcHigh Performance/Sophisticated Collection(-ish) 🚄
JCTools❤️disruptor❤️High Scale Lib❤️caffeine❤️concurrentlinkedhashmapCollections Backed by Storage 🗃
mapdb❤️Collections with Distribution 🌏
Chronicle Map❤️Chronicle Queue❤️Contain Collections, but NOT Persistent 😱
eclipse-collectionsUnsupportedOperationException😱, not nice!commons-collections4guavaguavais more than a collection libUnsupportedOperationException😱, not nice!Related Resources
Maven Repository: collections https://mvnrepository.com/tags/collections
Functional Data Structures = immutable + persistent
Terrific share for Persistent Data Structures!! ❤️
https://greatpowerlaw.wordpress.com/2013/04/08/fastutil-vs-trove4j/
http://java-performance.info/primitive-types-collections-trove-library/
https://blog.juma.me.uk/tag/primitive-collections/
https://www.javamex.com/tutorials/memory/object_memory_usage.shtml