10 comments

  • smartmic4 hours ago
    Of course, we can’t leave out a mention of Fossil here — the SCM system built by and for SQLite.<p><a href="https:&#x2F;&#x2F;fossil-scm.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fossil-scm.org&#x2F;</a>
    • thunderbong3 hours ago
      And fossil itself is an SQLite database!
    • Pay082 hours ago
      How much does it take advantage of being a DB underneath?
    • ImGajeed764 hours ago
      yeah fossil is great, but can fossil import the linux kernel (already working on the next post)
  • aljgz4 hours ago
    Still halfway through reading, but what you&#x27;ve made can unlock a lot of use cases.<p>&gt; I tried SQLite first, but its extension API is limited and write performance with custom storage was painfully slow<p>For many use cases, write performance does not matter much. Other than the initial import, in many cases we don&#x27;t change text that fast. But the simpler logistics of having a sqlite database, with the dual (git+SQL) access to text is huge.<p>That said, for the specific use case I have in mind, postgres is perfectly fine
    • hrmtst938371 hour ago
      SQLite is fine right up until you want concurrent writers. Once you need multiple users, cross-host access, or anything that looks like shared infra instead of a local cache, the file-locking model stops being cute and starts setting the rules for the whole design. For collaborative versioning, Postgres makes more sense.
      • brigandish53 minutes ago
        For a distributed VCS, what would be the need for such things? Even if it were a really big project, how many writes could be going on that this becomes a bottleneck? I don&#x27;t see it but maybe you have a situation in mind.
        • ImGajeed7634 minutes ago
          The problem i faced is mostly importing large repos. But normal use should be fine.
    • nasretdinov2 hours ago
      Also SQLite in WAL&#x2F;WAL2 mode is definitely not amy slower for writing than Postgres either.
    • ImGajeed764 hours ago
      sounds great yes. maybe an SQLite version will come in the future
    • ps1250 minutes ago
      [dead]
  • Terretta53 minutes ago
    Why a custom LLM prompt for what appears to be the default &#x27;report&#x27; you&#x27;d want? Wouldn&#x27;t the CLI just do this for a report command?<p>Is there an example of the tool enabling LLM &#x27;discovering&#x27; something non-deterministic and surprising?
    • ImGajeed7637 minutes ago
      Yes, you also got analysis commands the AI can use. I just did the prompt example before they existed.
  • aljgz1 hour ago
    How well does this support random-access queries to the file names and content at a certain revision? Like:<p>- &quot;Checking out&quot; a specific branch (which can be reasonably slow)<p>- Query all files and folders in path `&#x2F;src`<p>- Query all files and folders in path `&#x2F;src&#x2F;*` (and maybe with extra pattern matches)<p>- Be able to read contents of a file from a certain offset for a certain length<p>These are similar to file system queries to a working directory
    • ImGajeed7636 minutes ago
      Accessing specific files is very fast. For sure sub second and most of the times its just a few milliseconds
  • Pay082 hours ago
    This is incredibly neat and might actually become a part of my toolbox.
    • ImGajeed761 hour ago
      thanks! but it might still need some releases until it&#x27;s really good. just don&#x27;t rely on it ;)
  • Toby111 hour ago
    why do agents need to know these metas about git history to perform its coding functions though?<p>even humans don’t do this unless there’s a crazy bug causing them to search around every possible angles.<p>that said, this sound like a great and fun project to work on.
    • ImGajeed761 hour ago
      but the difference between you and an agent is that you naturally know the history of the project if you have worked on it. the AI doesnt.
  • Fire-Dragon-DoL3 hours ago
    Wouldn&#x27;t duckdb be better suited for this? Forgive the stupid question. I just connected &quot;csv as sql&quot; to &quot;git as sql&quot; and duckdb comes to mind
    • ImGajeed763 hours ago
      I did actually look into writing the extension for duckdb. But similar to SQLite the extension possibilities are not great for what I needed. Though duckdb is a great database.
  • killingtime744 hours ago
    I love it. I love having agents write SQL. It&#x27;s very efficient use of context and it doesn&#x27;t try to reinvent informal retrieval part of following the context.<p>Did you find you needed to give agents the schema produced by this or they just query it themselves from postgres?
    • ImGajeed764 hours ago
      so most analyses already have a CLI function you can just call with parameters. for those that don&#x27;t, in my case, the agent just looked at the --help of the commands and was able to perform the queries.
  • Zardoz844 hours ago
    Interesting... could be used to store multiple git repos and do a full text search across the multiple repos ?
    • ImGajeed764 hours ago
      in theory yes. you just need to do the full text search across the databases. pgit doesnt support it but at the end its just postgres under the hood.
  • techpulse_x4 hours ago
    [dead]