blog-2024-01-06-various

## modern java practices

https://github.com/binkley/modern-java-practices ^[HN](https://news.ycombinator.com/item?id=38875318)^

> Modern Java/JVM Build Practices is an article-as-repo on building modern Java/JVM projects using Gradle and Maven, and a starter project for Java.
> 
> The focus is best build practices and project hygiene.

## 1BRC: The 1 Billion Row Challenge

https://www.morling.dev/blog/one-billion-row-challenge/ ^[HN](https://news.ycombinator.com/item?id=38851337) / [github](https://github.com/gunnarmorling/1brc)^

read one billion rows of `city: temperature` duples and calculate the min/max/avg. i can't say i like it as it's almost purely a test of string parsing speed and few things else.

the results are staggering though: the naive java solution with `Files.lines` and stream collector takes 4m13s, while the currently fastest solutions take less than 8s.

it's also interesting that [graalvm] takes most of the top spots.

edited by: stefs at Saturday, January 6, 2024, 8:47:09 PM Coordinated Universal Time


view