dannyvankooten / 1brc

C11 implementation of the 1 Billion Rows Challenge. 1️⃣🐝🏎️ Runs in ~1.6 seconds on my not-so-fast laptop CPU w/ 16GB RAM.
86 stars 41 forks source link

Rule break - mmap and pthreads are not part of the C standard library #11

Closed kohsh closed 1 week ago

kohsh commented 1 week ago

First rule from https://1brc.dev/ : No external library dependencies may be used. That means no lodash, no numpy, no Boost, no nothing. You're limited to the standard library of your language.

I understand that this just comes with the territory when attempting this challenge in C, but the provided solutions in this repro that rely on posix (let alone some linux header references sprinkled in) are technically rules breaks.

Might be a good thing to note in the readme, at the least.

dannyvankooten commented 1 week ago

This repository predates that website and rules. Not sure who is behind that site, but this experiment was based off of the original 1BRC challenge as posed by Gunnar, just in C instead of Java.