7 ms·
Optimizing Hash-Array Mapped Tries for Fast Immutable JVM Collections (2015) [pdf]
- maxpert 9y agoI wish the paper carried a GitHub link to the repo of reference implementation.
- tixzdk 9y agoHere's one: https://github.com/ponylang/ponyc/blob/master/packages/collections/persistent/map.pony https://github.com/ponylang/ponyc/blob/master/packages/colle...
- e12e 9y agoIndeed, wasn't easy to track down: https://github.com/msteindorfer/oopsla15-artifact https://github.com/msteindorfer/oopsla15-artifact Still trying to find out if there's a video of the OOPSLA15 presentation.
- prospero 9y agoHere's another one: https://github.com/lacuna/bifurcan/blob/master/src/io/lacuna/bifurcan/nodes/MapNodes.java https://github.com/lacuna/bifurcan/blob/master/src/io/lacuna...
- jcdavis 9y agoThe author presented a talk about this at the JVM Language Summit last year: https://www.youtube.com/watch?v=pUXeNAeyY34&list=PLX8CzqL3ArzUY6rQAQTwI_jKvqJxrRrP_&index=4 https://www.youtube.com/watch?v=pUXeNAeyY34&list=PLX8CzqL3Ar... Github repo for those interested: https://github.com/usethesource/capsule/ https://github.com/usethesource/capsule/
- agumonkey 9y agoInteresting talk in a way but god the amount of wasted neurons from java-like OOP.. all this to xi..xn,yi...yn instead of xi,yi...,xn,yn ..
- VHRanger 9y agoWhat is the real world use case for a HAMT data structure? Tree based associative arrays (like c++'s std::map) tend to have poor real world performance
- chongli 9y agoThey are used to implement Clojure's immutable map and set structures. They are absolutely critical to the philosophy of the language.
- FreakLegion 9y agoDepending on the use case, of course. Sometimes you need a structure that's both associative and ordered, for example, in which case std::map is handy.
- masklinn 9y agoHAMT are not intrinsically ordered or sorted.
- FreakLegion 9y agoThe comment obviously refers to std::map, which it mentions explicitly and which guarantees ordering.
- masklinn 9y agoBut the entire discussion is about HAMT not std::map, the parent comment only talks about std::map as an example of performance issues in tree-based maps in asking how that relates to HAMT, it doesn't actually care a whit about std::map.
- jcdavis 9y agoImmutable maps that have efficient update semantics
- gshayban 9y ago
- didibus 9y agoDoes this add something that the Clojure implementation doesn't?
- zokier 9y agoSo would this be a good structure to store the recently discussed password hash dump, basically a fixed set of 300 million SHA1-sums where the only interesting operation is checking if the sum is or is not contained in the set?
- lord_jim 9y agoIt would probably be better to use a trie directly, maybe a radix trie or a b-trie.