[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC 0/7] Introduce hard dependency on glib
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [RFC 0/7] Introduce hard dependency on glib |
Date: |
Tue, 25 Jan 2011 10:24:18 +0000 |
On Mon, Jan 24, 2011 at 9:00 PM, Anthony Liguori <address@hidden> wrote:
> This series introduces a hard dependency on glib. The initial use is portable
> threads but I see this as just the beginning. Glib/Gobject offer many nice
> things including:
>
> - portable threads
> - rich data structure support
> - INI parser
> - JSON parser
> - generic type system
> - object oriented infrastructure
> - IO library
> - module system
> - introspection to enable support for dynamic language bindings
>
> I see this series as the first step, followed by converting the I/O loop to
> a GMainLoop instance. Once we're there, we can start making deeper use of
> GObjects including converting QDev to a GObject hierarchy.
>
> I've spent the past few months working on C++ integration for QEMU. I'm more
> convinced than ever that we desperately in need of structured object oriented
> mechanisms to be successful but am pretty strongly convinced that incremental
> additional of C++ is not going to be successful.
I like this direction much more than rewriting everything in C++. We
can replace some of the homebrew stuff with widely used glib
implementations. We get new functionality like hash tables and
balanced trees for free.
Even just moving to a solid event loop and I/O handlers is a win.
Stefan
- Re: [Qemu-devel] Re: [PATCH 4/7] Get rid of QemuMutex and teach its callers about GStaticMutex, (continued)
Re: [Qemu-devel] [RFC 0/7] Introduce hard dependency on glib, Anthony Liguori, 2011/01/24
Re: [Qemu-devel] [RFC 0/7] Introduce hard dependency on glib,
Stefan Hajnoczi <=
Re: [Qemu-devel] [RFC 0/7] Introduce hard dependency on glib, Gerd Hoffmann, 2011/01/25
Re: [Qemu-devel] [RFC 0/7] Introduce hard dependency on glib, Aurelien Jarno, 2011/01/25
Message not available