threads / discuss / 27360

GLib

Subject: GLib

## tl;dr

4 messages between May 15, 2011 and May 15, 2011.

replies: 3people: 4as markdown or json

Zganyaiko Dmitry· May 15, 2011, 16:36 UTC · lore

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· May 15, 2011, 17:38 UTC · re: Zganyaiko Dmitry · lore

Re: GLib

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· May 15, 2011, 18:06 UTC · re: Zganyaiko Dmitry · lore

Re: GLib

Zganyaiko Dmitry <zdo.str@gmail.com> writes:
Show 8 quoted lines
> 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· May 15, 2011, 19:41 UTC · re: Zganyaiko Dmitry · lore

Re: GLib

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

← back to recent threads