3 ms·
Ia there a collection on all the languages that have attempted this challenge? I know comparing and competing languages is somewhat useless but it is still inte
by Alifatisk 3y ago
Ia there a collection on all the languages that have attempted this challenge? I know comparing and competing languages is somewhat useless but it is still interesting to me.
- gunnarmorling 3y agoThere's the "Show & Tell", where folks have shared implementations in many different languages: https://github.com/gunnarmorling/1brc/discussions/categories/show-and-tell https://github.com/gunnarmorling/1brc/discussions/categories....
- ayewo 3y agoYou could also view attempts in other languages at https://github.com/1brc https://github.com/1brc
- mik09 3y agoc dominates every other language again...https://github.com/dannyvankooten/1brc#submitting https://github.com/dannyvankooten/1brc#submitting
- Alifatisk 3y agoThe C implementation runs in ~1.7 seconds, but so does Swift [1]. The Dart [2] implementation achieved 1.17 seconds, but the record now looks to be ~0.57 seconds [3]. But I believe looking at this like I do is wrong because they all run on different machines with different performances. 1. https://github.com/gunnarmorling/1brc/discussions/251#discussion-6045429 https://github.com/gunnarmorling/1brc/discussions/251#discus... 2. https://github.com/gunnarmorling/1brc/discussions/241#discussioncomment-8067373 https://github.com/gunnarmorling/1brc/discussions/241#discus... 3. https://github.com/gunnarmorling/1brc/discussions/710 https://github.com/gunnarmorling/1brc/discussions/710