writing.exchange is one of the many independent Mastodon servers you can use to participate in the fediverse.
A small, intentional community for poets, authors, and every kind of writer.

Administered by:

Server stats:

321
active users

#1brc

0 posts0 participants0 posts today
JAVAPRO<p>Did <a href="https://mastodon.social/tags/AI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AI</span></a> write better Java? The experiment's back—<a href="https://mastodon.social/tags/1BRC" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1BRC</span></a> tests <a href="https://mastodon.social/tags/IDE" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IDE</span></a> battles &amp; hallucination. <a href="https://mastodon.social/tags/Zencoder" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Zencoder</span></a> <a href="https://mastodon.social/tags/JetBrains" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JetBrains</span></a> shine, but the flaws are surprising. All about context, integration <a href="https://mastodon.social/tags/parsing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>parsing</span></a>. Read Steve Poole´s article now: <a href="https://javapro.io/2025/01/15/maximize-productivity-with-ai-tools-in-java-development/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">javapro.io/2025/01/15/maximize</span><span class="invisible">-productivity-with-ai-tools-in-java-development/</span></a></p><p><a href="https://mastodon.social/tags/DevTools" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevTools</span></a> <a href="https://mastodon.social/tags/LLM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LLM</span></a></p>
Nicolai Parlog<p>Don't worry if you missed the <a href="https://mastodon.social/tags/Java" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Java</span></a> <a href="https://mastodon.social/tags/1BRC" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1BRC</span></a> stream. You can watch it here for the next ~60 days: <a href="https://www.twitch.tv/videos/2050175537" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">twitch.tv/videos/2050175537</span><span class="invisible"></span></a></p><p>After that I may upload an edited version to my YouTube channel (<a href="https://youtube.com/nipafx" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">youtube.com/nipafx</span><span class="invisible"></span></a>) but that'd take quite some time and energy. Leaving a subscription may motivate me. 😊</p>
Chris Newland<p><span class="h-card" translate="no"><a href="https://sfba.social/@jitterted" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>jitterted</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.online/@gunnarmorling" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>gunnarmorling</span></a></span> I managed to not get nerd-sniped by this (after losing most of December to AdventOfCode) but I've really enjoyed watching the solutions develop.</p><p>For me, <a href="https://mastodon.social/tags/1BRC" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1BRC</span></a> would make an excellent interview template. Not for the hardcore optimisations but for the discussions of use cases, data interchange formats etc.</p>
Ted M. Young<p>While I love all the cool stuff and interesting code that has been written for the 1 Billion Row Challenge (<a href="https://sfba.social/tags/1BRC" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1BRC</span></a>) started by <span class="h-card" translate="no"><a href="https://mastodon.online/@gunnarmorling" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>gunnarmorling</span></a></span>, I worry.</p><p>I worry, because there's already so much emphasis in our industry on [unneeded] complexity and premature optimization of performance. "Memory mapped files everywhere! No more reading from a stream!"</p><p>Yes, if you're writing a high-frequency trading system, or otherwise have extreme needs, you go to town. Measure first, of course, but then do whatever you need to do.</p><p>I worry that those attracted to shiny new concepts (who doesn't love some really clever code?) will use techniques meant for high performance needs and use them in situations where it makes the app much worse from a reliability, testability, and understandability point of view.</p><p>I am not at all saying that discovering, learning, and playing with such techniques isn't important (I'd love more 1BRC-like challenges!), only to use them appropriately.</p>
Mo Bitar :ferris:<p><a href="https://fosstodon.org/tags/1brc" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1brc</span></a>: The One Billion Row Challenge in <a href="https://fosstodon.org/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> 1️⃣🐝🏎️🦀</p><p><a href="https://codeberg.org/mo8it/obrc" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">codeberg.org/mo8it/obrc</span><span class="invisible"></span></a></p><p>On my machine with 8 cores, it has almost the same performance as the currently best solution in Java. The Java solution is only 5% faster.</p><p>The Java solution uses a specialized hashmap implementation. I used hashbrown which uses the aHash algorithm by default. But I think that there is a huge room for improvement with the hashmap.</p><p>Don't hesitate to create a PR :blobcatheart:</p><p><a href="https://fosstodon.org/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a> <a href="https://fosstodon.org/tags/Java" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Java</span></a></p>
Özkan The JVMBender<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@mo8it" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>mo8it</span></a></span> <span class="h-card" translate="no"><a href="https://fosstodon.org/@orhun" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>orhun</span></a></span> have you heard of <a href="https://social.linux.pizza/tags/1brc" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1brc</span></a> ? are my assumptions correct above ?</p>
Özkan The JVMBender<p>in case you also wonder <a href="https://social.linux.pizza/tags/1brc" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1brc</span></a> and compare <a href="https://social.linux.pizza/tags/cpp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cpp</span></a> vs <a href="https://social.linux.pizza/tags/java" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>java</span></a> I ran some code in my old laptop and numbers are fun to share.</p><p>cpp is from <a href="https://github.com/lehuyduc/1brc-simd" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/lehuyduc/1brc-simd</span><span class="invisible"></span></a> and java from <a href="https://github.com/gunnarmorling/1brc/blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_royvanrijn.java" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/gunnarmorling/1brc/</span><span class="invisible">blob/main/src/main/java/dev/morling/onebrc/CalculateAverage_royvanrijn.java</span></a></p><p>for java I used <a href="https://social.linux.pizza/tags/GraalVM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GraalVM</span></a> to generate a native binary image and results:</p><p>./run_cpp.sh <br>Using 8 threads</p><p>real 0m23.854s</p><p>and for java<br>./calculate_average_royvanrijn.sh</p><p>real 0m13.402s</p><p>looks like java winning here or am I reading wrong ?</p>
nietras 👾<p><a href="https://mastodon.social/tags/1BRC" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1BRC</span></a> already much faster. <a href="https://mastodon.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dotnet</span></a> <span class="h-card" translate="no"><a href="https://mastodon.social/@xoofx" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>xoofx</span></a></span> showed how to do RandomAccess multi-threaded. 🚀</p>
James Montemagno<p>It's go time! The One Billion Row Challenge - .NET Edition!!!! Frank started us off!<br> <a href="https://github.com/praeclarum/1brc" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/praeclarum/1brc</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/dotnet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dotnet</span></a> <a href="https://mastodon.social/tags/1brc" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>1brc</span></a></p>