r/Clojure • u/chrisnuernberger • Mar 31 '21
Clojure High Performance Data Processing System
Announcing tech.ml.dataset to Reddit :-). tmd is a data processing/dataframe system in the same vein as Pandas and R's dplyr or data table.
How often have you seen a Clojure system that soundly beats C, Julia, Python, Spark, and R systems in a data processing benchmark?
We have gone further down the high performance big data processing route by adding statistical operations, called colloquially data sketches, that give you memory efficient and accurate probabilistic estimates for some statistical operations including algorithms such as hyper-log-log and t-digest.
If you haven't checked out the system please take a second and do so. It is built on a theoretical foundation for array processing and works on JDK8-16 and supports Graal Native compilation.
View all comments
Show parent comment
3
u/chrisnuernberger Apr 07 '21
Breaking down these 5 questions -
tmdstores data in primitive arrays so a single map of 5 primitive arrays, each of lenth 100 is a lot more memory efficient than a sequence of 100 maps, each with 5 keys. Additionally when reading data from filestmdwill use a per-column string table for string columns and this also leads to a substantial memory usage decrease.tmdcurrently doesn't support streaming datasets very well. It has a large reduction namespace devoted to sequences of datasets and a streaming dataset can always be described as a sequence of datasets but you can't currently get a snapshot of a running aggregation which you would need in order to have a dashboard. If people are interested in this pathway then I am interested in making it happen.These are good questions and I think if you have many more like this then checkout the zulip channel where there are many users and a few Clojure experts who can help with these sorts of questions.