git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GLib

From
Jakub Narebski <jnareb@gmail.com>
Date
May 15, 2011, 18:06 UTC
Message-ID
<m3aaen3klg.fsf@localhost.localdomain>
In-Reply-To
<1305477377.3612.5.camel@mamburu>
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
Previous: Ævar Arnfjörð BjarmasonNext: Enrico Weigelt
Message 3 of 4 in “GLib”
  1. Zganyaiko DmitryMay 15, 2011
  2. Ævar Arnfjörð BjarmasonMay 15, 2011
  3. Jakub NarebskiMay 15, 2011
  4. Enrico WeigeltMay 15, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.