Re: comparing commit-relation using Scheme+libgit2 vs shellout plumbing Git

2023-09-14 Thread Simon Tournier
Hi Ludo, On Thu, 14 Sep 2023 at 12:30, Ludovic Courtès wrote: >but I don’t think > we can get a decent throughput if we shell out for all these things > (assuming ‘git’ can even give us raw data). Do you consider that Magit does not have a

Re: comparing commit-relation using Scheme+libgit2 vs shellout plumbing Git

2023-09-14 Thread Ludovic Courtès
Simon Tournier skribis: > On my machine, I get something less spectacular for a history with 1000 > commits in between. > > scheme@(guix-user)> ,time (commit-relation* 1000th newest) > $1 = ancestor > ;; 0.128948s real time, 0.082921s run time. 0.046578s spent in GC. > scheme@(guix-user)> ,time

Re: comparing commit-relation using Scheme+libgit2 vs shellout plumbing Git

2023-09-12 Thread Attila Lendvai
is the decision between libgit2 and invoking git really such a big commitment? let's make sure the entire guix codebase uses a single git related API, and then we can easily switch back and forth between the two. on another note, i'm surprised that the reference implementation of git itself doe

comparing commit-relation using Scheme+libgit2 vs shellout plumbing Git

2023-09-11 Thread Simon Tournier
Hi, On Mon, 11 Sep 2023 at 14:26, Maxim Cournoyer wrote: > In the grand scheme of things (pun intended), we'd like every > programming to be feasible via nice Scheme APIs, which is what Guile-Git > provides to work with git repositories. The appeal is to have a single > language to rule them al