performancepaper
A reproducible, open examination of the paper "A performance comparison of Clojure and Java" by Gustav Krantz (by joinr)
performancepaper | icfpc2019 | |
---|---|---|
5 | 2 | |
59 | 17 | |
- | - | |
0.0 | 0.0 | |
about 3 years ago | almost 5 years ago | |
Clojure | Clojure | |
Eclipse Public License 2.0 | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
performancepaper
Posts with mentions or reviews of performancepaper.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-21.
- Notes on Optimizing Clojure Code: Overview
-
Why are imperative programs considered faster than their functional counterparts?
There is a review of the study at https://github.com/joinr/performancepaper. Basically by using optimization tricks (recur for recursive function call, unchecked math, using Java types, etc.) Tom meets/beats the performance of Java.
-
Making the LinkedIn experimentation engine 20x faster
I did a contrast with someone's graduate thesis that aimed to analyze clojure vs. java performance and made some weak claims. The rep is here, and it's really the org file. Sort of a worked example of optimizing code.
-
I rewrote a Clojure tool in Rust
I often see people knocking on Clojure saying its performance is bad when they are still not familiar with all the core library has to offer and what idiomatic performant Clojure can look like. Take a look here for some examples by joinr
icfpc2019
Posts with mentions or reviews of icfpc2019.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-12.
-
Advent of Clojure - looking for feedback
Regarding hashing, custom hash functions even for records (if all fields are longs for example) can help substantially if you are hashing points some notes here. Even then, depending on what you are doing, you may be better off using a primitive numeric representation and a dense collection (e.g. a primitive array) since the mechanical sympathy may be substantial. It is also possible to do well using nested maps (particularly for memoization) when the pieces of a compound key are already trivially hashed. E.g. clojure.core/memoize just defines a varargs wrapper around a function and caches the sequence of args in a map. For earlier reasons, this is a poor strategy for many functions and performance can be substantially improved (e.g. for a 1 or 2 arg function of numbers or keys or strings even) if we defined fixed arity paths that store keys in nested maps instead of hashing complex collections.
-
Making the LinkedIn experimentation engine 20x faster
There's a worked example of optimizing an ICFPC2019 entry here where the readme goes through a bevy of techniques and observations.
What are some alternatives?
When comparing performancepaper and icfpc2019 you can also consider the following projects:
ultrarand - a demo of random number generation in java, and clojure via performance optimization
clj-fast - Unpredictably faster Clojure
criterium - Benchmarking library for clojure
AdventOfCode2022 - My solutions for AoC 2022
mlton - The MLton repository
slingshot - Enhanced try and throw for Clojure leveraging Clojure's capabilities
clojure - The Clojure programming language
aoc-2021perfcomp - a fork of https://gitlab.com/slotThe/aoc-2021.git for a reddit exploration
RFCs - Design discussions about the OCaml language
julia - The Julia Programming Language
performancepaper vs ultrarand
icfpc2019 vs ultrarand
performancepaper vs clj-fast
icfpc2019 vs clj-fast
performancepaper vs criterium
icfpc2019 vs AdventOfCode2022
performancepaper vs mlton
performancepaper vs slingshot
performancepaper vs clojure
performancepaper vs aoc-2021perfcomp
performancepaper vs RFCs
performancepaper vs julia