# gitweb.cgi in C

12 messages from 2005-12-08 to 2005-12-09. Participants: Majkls, Kay Sievers, Ryan Anderson, Johannes Schindelin, Petr Baudis, Junio C Hamano, H. Peter Anvin, Andreas Ericsson, Randal L. Schwartz.
Thread: https://gitlist.dev/t/2778

## Kay Sievers, 2005-12-08 18:55

Subject: Re: gitweb.cgi in C
Message-ID: <20051208185503.GA16258@vrfy.org>
URL: https://gitlist.dev/e/20051208185503.GA16258%40vrfy.org
In-Reply-To: <43988299.4090101@tiscali.cz>

```
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. :)

Kay

```

## Majkls, 2005-12-08 18:59

Subject: gitweb.cgi in C
Message-ID: <43988299.4090101@tiscali.cz>
URL: https://gitlist.dev/e/43988299.4090101%40tiscali.cz

```
What do you think about gitweb.cgi in C?

-- 
Miloslav "Majkls" Semler

```

## Ryan Anderson, 2005-12-08 19:46

Subject: Re: gitweb.cgi in C
Message-ID: <20051208194656.GA25345@mythryan2.michonline.com>
URL: https://gitlist.dev/e/20051208194656.GA25345%40mythryan2.michonline.com
In-Reply-To: <43988299.4090101@tiscali.cz>

```
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

```

## Johannes Schindelin, 2005-12-08 19:51

Subject: Re: gitweb.cgi in C
Message-ID: <Pine.LNX.4.63.0512082051220.28628@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0512082051220.28628%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <20051208185503.GA16258@vrfy.org>

```
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

```

## Petr Baudis, 2005-12-08 22:27

Subject: Re: gitweb.cgi in C
Message-ID: <20051208222759.GO22159@pasky.or.cz>
URL: https://gitlist.dev/e/20051208222759.GO22159%40pasky.or.cz
In-Reply-To: <43988299.4090101@tiscali.cz>

```
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, 2005-12-08 22:35

Subject: Re: gitweb.cgi in C
Message-ID: <7vfyp3b4ki.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vfyp3b4ki.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20051208222759.GO22159@pasky.or.cz>

```
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.

```

## H. Peter Anvin, 2005-12-08 22:39

Subject: Re: gitweb.cgi in C
Message-ID: <4398B636.3010900@zytor.com>
URL: https://gitlist.dev/e/4398B636.3010900%40zytor.com
In-Reply-To: <43988299.4090101@tiscali.cz>

```
Majkls wrote:
> What do you think about gitweb.cgi in C?

I guess you could implement and benchmark it and see how much faster it is.

	-hpa

```

## Petr Baudis, 2005-12-08 22:46

Subject: Re: gitweb.cgi in C
Message-ID: <20051208224626.GP22159@pasky.or.cz>
URL: https://gitlist.dev/e/20051208224626.GP22159%40pasky.or.cz
In-Reply-To: <7vfyp3b4ki.fsf@assigned-by-dhcp.cox.net>

```
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...
> 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.

```

## Andreas Ericsson, 2005-12-08 22:48

Subject: Re: gitweb.cgi in C
Message-ID: <4398B836.8090709@op5.se>
URL: https://gitlist.dev/e/4398B836.8090709%40op5.se
In-Reply-To: <7vfyp3b4ki.fsf@assigned-by-dhcp.cox.net>

```
Junio C Hamano wrote:
> 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

```

## Junio C Hamano, 2005-12-09 00:42

Subject: Re: gitweb.cgi in C
Message-ID: <7vhd9j9k3e.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vhd9j9k3e.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20051208224626.GP22159@pasky.or.cz>

```
Petr Baudis <pasky@suse.cz> writes:

>> 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, 2005-12-09 04:42

Subject: Re: gitweb.cgi in C
Message-ID: <86irtyank4.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/86irtyank4.fsf%40blue.stonehenge.com
In-Reply-To: <7vhd9j9k3e.fsf@assigned-by-dhcp.cox.net>

```
>>>>> "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, 2005-12-09 07:33

Subject: Re: gitweb.cgi in C
Message-ID: <7vhd9i9124.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vhd9i9124.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <86irtyank4.fsf@blue.stonehenge.com>

```
merlyn@stonehenge.com (Randal L. Schwartz) writes:

>>>>>> "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
;-).

```
