Re: [RFC] Reorganizing the BlueZ source tree

Bastien Nocera
2012-06-08T12:27:34Z

On Fri, 2012-06-08 at 21:07 +0900, Marcel Holtmann wrote:
> Hi Bastien,
>
> > > > > >> and I still have all the rights to do so.
> > > > > >>
> > > > > >> As long as we are still based on GLib, this will stay as it is. I am
> > > > > >> not
> > > > > >> jumping through any hoops, because David wouldn't respect prior art.
> > > > > >
> > > > > > How exactly would would have called a D-Bus implementation in GLib?
> > > > >
> > > > > Well you could have called godbus as that is more a gobject binding
> > > > > than a pure glib/GMainLoop one.
> > > >
> > > > GLib lives in a single tarball. It's only Marcel's hate for GObject and
> > > > the apparent need to be able to replace glib that spawned this thin
> > > > wrapper on top of libdbus you're using now.
> > >
> > > plain fact is that our gdbus code was there first.
> >
> > Nice comeback.
> >
> > > If you wanna turn this into a GObject discussion now,
> >
> > I don't. I'm merely pointing out that a file layout change might be a
> > good time to fix potential symbol clashes.
> >
> > > then please find a
> > > mailing list that cares. It is clearly not this one.
> >
> > I think you've made this abundantly clear. I don't think this attitude
> > is helping BlueZ thrive, when it's far less friction to fix problems
> > higher up in the stack.
>
> we will move away from GLib and libdbus (and also libnl) altogether at
> some point soon anyway. Then this discussion becomes mood.

Will you be implementing your own D-Bus library, or do you have plans to
switch to something completely different?

> Our problems are the memory footprint and the abstractions done purely
> for making this run on Windows.

The abstraction aren't there for Windows, they're there to allow for
better APIs, avoiding functional changes in the underlying system[1] and
making developer's lives easier.

> With the embedded consumer electronics
> devices that we target this is creating more and more issues these days.

When consumer electronics are faster and faster, and with more and more
RAM, I doubt that GLib or GObject's memory footprint is a huge issue.
I'm not saying it's not an issue at all, but I doubt it's what causes
problems (versus missing features for example) when vendors select a
Linux Bluetooth stack.

[1]: the application developer shouldn't have to choose whether inotify,
fanotify or FAM is better suited for their file monitoring support for
example, or which one is going to work with which version of the kernel,
or which storage. Being able to use GIO for that purpose would have made
the adaptername plugin much simpler for example.