[JDEV] Why not GLib ?

Dave Smith dave at jabber.org
Fri Oct 13 14:04:04 CDT 2000

Well..glib has come up a number of times when we need data structures. The
primary reason that we haven't used it is that the added dependency that
GLib would bring outweighs the actual functionality that we would actually
use from it. :) 

Jabber isn't all that complicated and we like to keep the codebase as small
and dependent-free as possible.


On Fri, Oct 13, 2000 at 06:57:50PM +0200, David Le Corfec wrote:
> Why not use the GLib for jabber2 ?
> It has nice abstract types for lists, hashes ...
> (see libjabber/src/genhash.c)
> Plus nice portability/utility functions, and
> handy macros (g_return_if_fail() kind of macros
> can save life by ensuring preconditions and writing
> a nice log message if it fails, instead of silently
> returning)
> http://developer.gnome.org/doc/API/glib/index.html
> If there's no strong reason against it, it could
> be progressively used in libxode/libjabber/jabber2 ...
> (I would like to cleanup most of the code in a GLib
> fashion :)
> Or at least some ideas could be reused (like
> those preconditions checks ...)
> It also is a good example of programming,
> take a look at the sources :)
> -- 
> David Le Corfec
> Disclaimer : I love the GLib :)
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev

More information about the JDev mailing list