From: demerphq <demerphq@gmail.com>
To: Jakub Narebski <jnareb@gmail.com>
Cc: "J.H." <warthog19@eaglescrag.net>,
Mark A Rada <marada@uwaterloo.ca>,
git@vger.kernel.org, Petr Baudis <pasky@suse.cz>
Subject: Re: [PATCHv5] Add Gitweb support for XZ compressed snapshots
Date: Mon, 3 Aug 2009 01:55:37 +0200 [thread overview]
Message-ID: <9b18b3110908021655r18203816u2864ffb95aabb354@mail.gmail.com> (raw)
In-Reply-To: <200908030125.53534.jnareb@gmail.com>
2009/8/3 Jakub Narebski <jnareb@gmail.com>:
> On Sat, 1 Aug 2009, demerphq wrote:
>> 2009/8/1 Jakub Narebski <jnareb@gmail.com>:
>>> demerphq <demerphq@gmail.com> writes:
>>>
>>>> FWIW the perl project ripped out all the snapshot generation logic
>>>> from gitweb, and replaced it with a tool that generates snapshots
>>>> correctly for our requirements (if the build process needs additional
>>>> files /currently/ git-archive does not support adding them), this
>>>> includes a disk level cache for the snapshots since creating the tar,
>>>> adding the additional files, then gziping is quite slow.
>>>>
>>>> If its interesting to people I can post it and the other changes here,
>>>> although its not a "nice" change, as I literally ripped out the
>>>> existing code.
>>>
>>> Do you mean gitweb serving http://perl5.git.perl.org/ ?
>>
>> Yes. I updated it to a relatively recent version just the other week.
>
> By the way, if you don't mind, how do you keep your changes on top
> of changing target, i.e. on top of updating baseline to recent
> versions?
Things broke. I fixed them. :-)
>> Also probably there are one or two patches that should be pushed back
>> to you.
>
> What do those patches consist of?
One has to do with layout problems in the blame, and I think one deals
with broken line number anchor links.
Ill look closer when i have more time.
> By the way, this is one of the only two places where we have to
> use quote_command and 3-argument form of open, instead of list for of
> magic open. It is because of pipeline, piping git-archive output
> into compressor. The other such place is git_object, to redirect error
> stream to /dev/null (to discard stderr).
>
> I thought about replacing it by list form of open somewhat (you can
> find it in git mailing list archive), but it is not easy. And IPC::Run
> is IMVHO a bit of overkill, especially for "minimal dependencies"
> gitweb (perhaps for Git::Web?).
Lately I have been playing with Capture::Tiny, which seems to fill
some nice niches in this respect.
>> A better git api toolset for perl would make things a lot easier.
>> Especially an XS one.
>
> Well, in the beginnings of Git.pm there was XS interface (to
> git-hash-object or git-cat-file), but it was dropped because it
> used -fPIC, which is not portable enough for Git (this is not present
> in perl/Git.pm history in git.git repository). Git.pm was created
> by Petr 'Pasky' Baudis, author of Cogito porcelain, and creator and
> admin of repo.or.cz (and also creator of first Git homepage).
> But he is not a Perl hacker (correct me if I am wrong, Pasky); both
> Cogito and repo.or.cz duct tape (under name of Girocco) are written
> in bash, not in Perl. Which can be seen for example by using
> Error::Simple in Git.pm...
>
> Also I don't think that Pasky has time for maintaining Git.pm,
> nevermind modernizing it / adding new features.
>
> There was another attempt to make Perl interface for Git, more
> object-oriented, by Lea Wiemann during GSoC 2008 project 'gitweb caching'.
> You can see results in Lea repository at repo.or.cz[1], and also in
> git.kernel.org gitweb code[2].
>
> [1]: http://repo.or.cz/w/git/gitweb-caching.git
> [2]: http://git.kernel.org/?p=git/warthog9/gitweb.git
Yeah I recall that being discussed. I see that Git.pm has recevied
some attention since the last time I looked. Which is good to see.
Having lurked on the list I understand that there is some kind of
effort for a git library. Perhaps at some point that will end up with
an XS interface.
>>>
>>> P.P.S. Could you per chance post announcement of Git User's Survey 2009
>>> on http://perl5.git.perl.org, just like it is done on http://repo.or.cz
>>> and http://git.kernel.org? TIA.
>>
>> Sure.
>
> Hmmm... I don't see "Git User's Survey 2009" announcement at
> http://perl5.git.perl.org/. Neither at Planet Perl Iron Man, nor at
> Perlsphere
Ah, sorry, I posted it to the perl5-porters mailing list and asked the
relevant people to forward the request on or post it on their site. I
know at least one perl committer already did it. However tomorrow the
main european perl conference starts (YAPC::EU in Lisbon) and I think
a big chunk of the "active" Perl community will be there, so probably
there wont be much action from them until they get back.
To be honest I'm not familiar with Planet Perl Iron Man nor
Perlsphere. Ill have to check them out i guess. :-)
I will try to remember to put up a note on the website as soon as possible.
cheers,
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"
next prev parent reply other threads:[~2009-08-02 23:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-01 0:40 [PATCHv5] Add Gitweb support for XZ compressed snapshots Mark A Rada
2009-08-01 0:47 ` J.H.
2009-08-01 8:12 ` demerphq
2009-08-01 9:08 ` Jakub Narebski
2009-08-01 10:13 ` demerphq
2009-08-02 23:25 ` Jakub Narebski
2009-08-02 23:55 ` demerphq [this message]
2009-08-03 0:27 ` Jakub Narebski
[not found] ` <9b18b3110908010413w51e901dfk5a6f1666e5c3197f@mail.gmail.com>
2009-08-03 17:26 ` Working on gitweb (was: [PATCHv5] Add Gitweb support for XZ compressed snapshots) Jakub Narebski
2009-08-01 8:14 ` [PATCHv5] Add Gitweb support for XZ compressed snapshots Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b18b3110908021655r18203816u2864ffb95aabb354@mail.gmail.com \
--to=demerphq@gmail.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=marada@uwaterloo.ca \
--cc=pasky@suse.cz \
--cc=warthog19@eaglescrag.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).