# GLib

4 messages from 2011-05-15 to 2011-05-15. Participants: Zganyaiko Dmitry, Ævar Arnfjörð Bjarmason, Jakub Narebski, Enrico Weigelt.
Thread: https://gitlist.dev/t/27360

## Zganyaiko Dmitry, 2011-05-15 16:36

Subject: GLib
Message-ID: <1305477377.3612.5.camel@mamburu>
URL: https://gitlist.dev/e/1305477377.3612.5.camel%40mamburu

```
Hi all!
My question is very simple:
why git doesn't use glib as base C framework? For example, in git there
are xmalloc, xrealloc functions that duplicates glib functionality, and
these routines are only small piece of all duplicated code that already
exists in glib.

So, why git was designed and is developing now without mature stable C
library like glib?

Best regards,
Dmitry.

P.S.
My question is not a joke or smth like that. It's really interesting for
me.

```

## Ævar Arnfjörð Bjarmason, 2011-05-15 17:38

Subject: Re: GLib
Message-ID: <BANLkTik4ap_oBhWo4f-SQ6gKmgu98AELZw@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTik4ap_oBhWo4f-SQ6gKmgu98AELZw%40mail.gmail.com
In-Reply-To: <1305477377.3612.5.camel@mamburu>

```
On Sun, May 15, 2011 at 18:36, Zganyaiko Dmitry <zdo.str@gmail.com> wrote:

> So, why git was designed and is developing now without mature stable C
> library like glib?

Initially because it wasn't written by the sort of people who use big
C libraries when they need some relatively small functionality.

Nowadays because nobody has proposed a patch to use glib instead of
our own toolkit, and even if someone did it might be rejected.

```

## Jakub Narebski, 2011-05-15 18:06

Subject: Re: GLib
Message-ID: <m3aaen3klg.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3aaen3klg.fsf%40localhost.localdomain
In-Reply-To: <1305477377.3612.5.camel@mamburu>

```
Zganyaiko Dmitry <zdo.str@gmail.com> writes:

> My question is very simple:
> why git doesn't use glib as base C framework? For example, in git there
> are xmalloc, xrealloc functions that duplicates glib functionality, and
> these routines are only small piece of all duplicated code that already
> exists in glib.
> 
> So, why git was designed and is developing now without mature stable C
> library like glib?

Note that git is very performance conscious.  For example a while ago
some of git commands were split off from /usr/libexec/git-core/git so
that only those need to link against libcurl (if I remember it
correctly).

Besides it all started very simple, with a few wrappers: git
developers thought that requiring GLib is overkill for those few
wrappers.  strbuf, parseopt etc. it all came later.

At least it is what I think (what I guess).


BTW how portable GLib is?
-- 
Jakub Narebski
Poland
ShadeHawk on #git

```

## Enrico Weigelt, 2011-05-15 19:41

Subject: Re: GLib
Message-ID: <20110515194106.GE24644@nibiru.local>
URL: https://gitlist.dev/e/20110515194106.GE24644%40nibiru.local
In-Reply-To: <1305477377.3612.5.camel@mamburu>

```
* Zganyaiko Dmitry <zdo.str@gmail.com> wrote:

> So, why git was designed and is developing now without mature stable C
> library like glib?

glib and mature stable ?

*lol*, joke of the day ...


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

```
