Peter Strömberg

Results 545 comments of Peter Strömberg

See also: * #162 Where there is some more discussion and benchmark results for Clojure and Java.

Thanks, @Gkodkod ❤️ I have spent a significant amount of time in this repo rejecting contributions that go for, memoization, tail recursion, and iteration, since it is not in the...

Thanks again! It's a new year here now. 🎉 The problem with using direct recursion is that it generates a different, less performant, way of doing the function call. Here...

Found a solution. It ain't pretty. 😄 ```clojure (ns code (:gen-class)) (set! *unchecked-math* :warn-on-boxed) (definterface IFib (^long fib [^long n])) (deftype Fibonacci [] IFib (fib [_ n] (if (or (zero?...

It also seems my M1 loves Clojure extra much (not strange, I've been coding Clojure a lot on it for three years). On M4 Clojure does not win, even if...

> I believe we should try to optimize the Java, Scala, C, C++, and other languages to the same degree To clarify my changes. They were only needed because the...

Java PGO compiles are enabled now. Make Java move in among the top tier of 1B loops: ![image](https://github.com/user-attachments/assets/3caef9cc-d471-4ffc-9d56-abf74cbbc7d8) Doesn't still outperform the Clojure Fibonacci: ![Java PGO Fibonacci](https://github.com/user-attachments/assets/0c52ea84-77bf-4dcb-ba04-5486bfa8348d) (Probably we can...

Here's a PR aimed at fixing this issue: * https://github.com/bddicken/languages/pull/365 It is a start, with reference implementations of tooling and all benchmarks for Clojure, Java, and C. I'm thinking that...

You can also help by digging through the issues and PRs talking about specific languages and add a comment pointing to that #371 needs attention for that language (unless it...