threads / discuss / 2778

gitweb.cgi in C

Subject: gitweb.cgi in C

## tl;dr

12 messages between Dec 8, 2005 and Dec 9, 2005.

replies: 11people: 9as markdown or json

Johannes Schindelin· Dec 8, 2005, 19:51 UTC · re: Kay Sievers · lore

Re: gitweb.cgi in C

Hi,
On Thu, 8 Dec 2005, Kay Sievers wrote:
> On Thu, Dec 08, 2005 at 07:59:37PM +0100, Majkls wrote:
> > What do you think about gitweb.cgi in C?
> 
> It's horribly stupid, I think. :)
It is as stupid as you make it :-)

Ciao, Dscho

Ryan Anderson· Dec 8, 2005, 19:46 UTC · re: Majkls · lore

Re: gitweb.cgi in C

On Thu, Dec 08, 2005 at 07:59:37PM +0100, Majkls wrote:
> What do you think about gitweb.cgi in C?
I've seen CGI programs in C before.

I don't recommend it. I think it will give most security people nightmares, heh.

-- 
Ryan Anderson
  sometimes Pug Majere
Petr Baudis· Dec 8, 2005, 22:27 UTC · re: Majkls · lore

Re: gitweb.cgi in C

Dear diary, on Thu, Dec 08, 2005 at 07:59:37PM CET, I got a letter where Majkls <majkls@tiscali.cz> said that...

> What do you think about gitweb.cgi in C?
To add to the collective dismay - why bother?
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Junio C Hamano· Dec 8, 2005, 22:35 UTC · re: Petr Baudis · lore

Re: gitweb.cgi in C

Petr Baudis <pasky@suse.cz> writes:
Show 5 quoted lines
> Dear diary, on Thu, Dec 08, 2005 at 07:59:37PM CET, I got a letter
> where Majkls <majkls@tiscali.cz> said that...
>> What do you think about gitweb.cgi in C?
>
> To add to the collective dismay - why bother?

It _might_ make sense to do gitweb using libified git Smurf is working on, in order to reduce forks and execs, but that is mostly independent of rewriting that in C.

Petr Baudis· Dec 8, 2005, 22:46 UTC · re: Junio C Hamano · lore

Re: gitweb.cgi in C

Dear diary, on Thu, Dec 08, 2005 at 11:35:09PM CET, I got a letter where Junio C Hamano <junkio@cox.net> said that...

Show 11 quoted lines
> Petr Baudis <pasky@suse.cz> writes:
> 
> > Dear diary, on Thu, Dec 08, 2005 at 07:59:37PM CET, I got a letter
> > where Majkls <majkls@tiscali.cz> said that...
> >> What do you think about gitweb.cgi in C?
> >
> > To add to the collective dismay - why bother?
> 
> It _might_ make sense to do gitweb using libified git Smurf is
> working on, in order to reduce forks and execs, but that is
> mostly independent of rewriting that in C.

I'd see having Perl XS for libgit as something much more sensible. And you could do cute porcelain stuff with that as well.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Junio C Hamano· Dec 9, 2005, 00:42 UTC · re: Petr Baudis · lore

Re: gitweb.cgi in C

Petr Baudis <pasky@suse.cz> writes:
Show 6 quoted lines
>> It _might_ make sense to do gitweb using libified git Smurf is
>> working on, in order to reduce forks and execs, but that is
>> mostly independent of rewriting that in C.
>
> I'd see having Perl XS for libgit as something much more sensible. And
> you could do cute porcelain stuff with that as well.

Yes, that is exactly what I meant by what Smurf is working on -- libified git with Pyrex.

Randal L. Schwartz· Dec 9, 2005, 04:42 UTC · re: Junio C Hamano · lore

Re: gitweb.cgi in C

>>>>> "Junio" == Junio C Hamano <junkio@cox.net> writes:
>> I'd see having Perl XS for libgit as something much more sensible. And
>> you could do cute porcelain stuff with that as well.

Junio> Yes, that is exactly what I meant by what Smurf is working on -- Junio> libified git with Pyrex.

Pyrex?  not XS?  I'd like to see Perl "use Git;". :)
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Junio C Hamano· Dec 9, 2005, 07:33 UTC · re: Randal L. Schwartz · lore

Re: gitweb.cgi in C

merlyn@stonehenge.com (Randal L. Schwartz) writes:
Show 6 quoted lines
>>>>>> "Junio" == Junio C Hamano <junkio@cox.net> writes:
>
> Junio> Yes, that is exactly what I meant by what Smurf is working on --
> Junio> libified git with Pyrex.
>
> Pyrex?  not XS?  I'd like to see Perl "use Git;". :)

OK, for the record I should mention that I first suggested using Swig, to be neutral across perl/python/tcl. BTW, this list is merely alphabetical not suggesting the order of my preference ;-).

Andreas Ericsson· Dec 8, 2005, 22:48 UTC · re: Junio C Hamano · lore

Re: gitweb.cgi in C

Junio C Hamano wrote:
Show 15 quoted lines
> Petr Baudis <pasky@suse.cz> writes:
> 
> 
>>Dear diary, on Thu, Dec 08, 2005 at 07:59:37PM CET, I got a letter
>>where Majkls <majkls@tiscali.cz> said that...
>>
>>>What do you think about gitweb.cgi in C?
>>
>>To add to the collective dismay - why bother?
> 
> 
> It _might_ make sense to do gitweb using libified git Smurf is
> working on, in order to reduce forks and execs, but that is
> mostly independent of rewriting that in C.
> 
In that case it would be better and way cooler to have mod_git for Apache.
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

← back to recent threads