GLib
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.
Quoted 2 lines · Zganyaiko Dmitry
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.
Quoted 8 lines · Zganyaiko Dmitry
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?
Signature · 3 lines
Jakub Narebski Poland ShadeHawk on #git
Quoted 2 lines · Zganyaiko Dmitry
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
Signature · 8 lines
---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: [email protected] mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------