9 comments

  • whstl31 minutes ago
    I feel like there&#x27;s two kinds of developers. The ones who shit all over other people&#x27;s preferences and turn everything into an almost religious discussion, and the ones who prefer to just build stuff.<p>Get over it. Some people like header only.
    • gkhartman5 minutes ago
      Agreed, once you&#x27;ve spent hrs fighting with C build tools under a deadline, it becomes very easy to see why this is beneficial.
  • eatonphil4 hours ago
    As data stores go go this is basically in memory only. The save and load process is manually triggered by the user and the save process isn&#x27;t crash safe nor does it do any integrity checks.<p>I also don&#x27;t think it has any indexes either? So search performance is a function of the number of entries.
  • kazinator5 hours ago
    In the world of Kubernetes and languages where a one-liner brings in a graph of 1700 dependencies, and oceans of Yaml, it&#x27;s suddently important for a C thing to be one file rather than two.
    • jasonpeacock2 hours ago
      C libraries have advertised &quot;header-only&quot; for a long time, it&#x27;s because there is no package manager&#x2F;dependency management so you&#x27;re literally copying all your dependencies into your project.<p>This is also why everyone implements their own (buggy) linked-list implementations, etc.<p>And header-only is more efficient to include and build with than header+source.
      • uecker1 hour ago
        I never copied my dependencies into my C project, nor does it usually take more than a couple of seconds to add one.
    • fonheponho2 hours ago
      Exactly; I can&#x27;t understand this obsession with header-only C &quot;libraries&quot;.
    • quotemstr2 hours ago
      Writing new C code in 2026 is already an artisanal statement, so why not got all the way in making it?
  • bawolff44 minutes ago
    As a non-C programmer, why would &quot;header only&quot; be a good thing?
    • c45y29 minutes ago
      Extremely easy copy paste deployment into projects
  • hendler3 hours ago
    Useful for embedded devices? Crashes, disk updates not important for ephemeral process?
  • altcunn1 hour ago
    Header-only C libraries are such an underappreciated pattern for embedding into larger projects. For vector search specifically, having something you can just drop into an existing C&#x2F;C++ codebase without pulling in a whole database dependency is really appealing. Curious about the indexing strategy — is it brute force or does it support approximate nearest neighbor?
  • ddtaylor2 hours ago
    Would it work to replace the memory store with mmap?
  • Mikhail_Edoshin4 hours ago
    Why to call it a header? Could be just a source file. Including sources is uncommon, but why not? Solid &quot;amalgamation&quot; builds are a thing too.
  • newzino2 hours ago
    [dead]