ordered-collections 0.2.1
Fast, modern collections for Clojure. Set algebra up to 60× faster than sorted-set (work-optimal + parallel via fork-join), ropes with O(log n) structural editing (up to ~1200× vs PersistentVector at scale), parallel fold, and specialized types for interval overlap, range carve-out, segment aggregates, fuzzy lookup, priority queues, and multisets — all built from one shared kernel.
Highlights since 0.2.0:
• StringRope and ByteRope — persistent chunked text and binary. CharSequence interop for regex / clojure.string, streaming MessageDigest for ByteRope. 130× vs String / 128× vs byte[] on structural edits at 500K.
• Flat-mode for small ropes — under 1024 elements a rope lives as a raw PersistentVector / String / byte[], zero tree overhead.
[com.dean/ordered-collections "0.2.1"]
https://github.com/dco-dev/ordered-collections
@dpsutton did you have a look?
do you need faster sets? I can do faster! and 20% less memory
thats the whole point of this library. We should be able to customize collections however we want.
*and we shouldn't have to think about it too hard
I think the next (0.2.2) release will be for ordered-sets to allocate 20% less than sorted set. Its performance I've had sitting on the table for a while but was focused on other things. My guess is that it will have a measurable impact.
its not a big change https://github.com/dco-dev/ordered-collections/issues/19
the disadvantage was then I need to go back and update a lot of documentation lol
it is a good an example of the architectural layering though
i learned in a prior project, if you start out designing for sets and extend to maps, it can make things a lot harder than starting out with maps and then optimizing for sets.
looking at the ordered sets. love to see faster. are memory usage patterns pretty comparable?
yes, i have clj-memory meter comparison and we are the same memory within a few percent except in a couple of special cases (like primitive long / unboxed sets) where that naturally takes a couple more bytes per node
got the memory comparison automated in the tests https://github.com/dco-dev/ordered-collections/blob/master/test/ordered_collections/memory_test.clj
obviously there is no one answer of a data structure that is optimal in everything, but I just feel as though clojure has neglected its data structures
there isn't even a lot of community interest in ideas, let alone cognitect
so, i needed this for other projects
Clojure is so painful to extend data types in. Why is clojure.set not backed by a protocol?
we implement all Clojure and Java interfaces and protocols. drop in anywhere.
here's the architectural concept https://github.com/dco-dev/ordered-collections/blob/master/doc/concept/concept.md
the "manifesto" lol
dexter 0.1-alpha-6
Dexter is an interactive, browser-based tool for visualizing and exploring the artifact dependency graph of JVM projects.
https://github.com/hlship/dexter
Even trivial projects accumulate dozens, even hundreds, of transitive dependencies, making it impossible to produce a meaningful static graph or to easily diagnose version conflicts buried deep in the tree. Dexter addresses this by letting you navigate the dependency hierarchy interactively: select any artifact to see what depends on it (dependants) and what it depends on (dependencies), with version mismatches highlighted at a glance.
Version 0.1-alpha-6:
• Now works on OS X (Intel and ARM), and Linux (Intel)
• Fixed CMD-F not focusing on the search field
• Compatible/Incompatible/Unknown dependencies are now navigable (click link, or CMD-1, 2, or 3) - raises a search popup listing the targeted dependencies
Install using brew install hlship/brew/dexter.