On Mon, Jan 24, 2011 at 9:00 PM, Anthony Liguori <aligu...@us.ibm.com> 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