All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ell@lists.01.org
Subject: Re: [PATCH v2 08/11] dbus: Fix the kdbus message encoding
Date: Tue, 12 Apr 2016 18:42:34 -0500	[thread overview]
Message-ID: <570D87EA.7080907@gmail.com> (raw)
In-Reply-To: <CAOq732JMGVZ2MV=araQ=zxU2YcrQKhGKZm_5CDDUa3Z5=1OpCw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

Hi Andrew,

 >>  From what I understood, the current setup will result in
>> l_dbus_message_get_signature() returning different results, depending on
>> transport.
>
> Could you give an example?  For a GetProperties reply
> l_dbus_message_get_signature() should return "a{sv}" on both kdbus and
> dbus1.  On kdbus the we'll have a (yyyyuta{tv}v) gvariant where the
> variant contians a (a{sv}) gvariant, but the API should completely
> hide that unless I screwed it up.

Let me look at this again later, I might not have understood correctly. 
  If you say this works, then I'm okay with this.

>> And this whole thing is a great example of how not to design a marshaling
>> format.
>
> Well, for one it gets rid of the split between the header and body in
> Dbus1 which was unneeded and while doing that is saves bytes because
> the variant adds fewer extra bytes than the
> DBUS_MESSAGE_FIELD_SIGNATURE field in Dbus1 ;)
>

Uh-huh.  DBus-1 was still sane compared to this.  You could peek at the 
header and discard messages you didn't care about.  No so here.

So the major improvement to DBus-1 is that the protocol becomes a 
nightmare to implement.  You basically have to have everything 
implemented before getting to hello world.

Not to mention the cache-miss city with the 
offset-list-in-little-endian-at-the-end crap ;)

Oh well, it is what it is.

Regards,
-Denis


  reply	other threads:[~2016-04-12 23:42 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-12  1:56 [PATCH v2 01/11] dbus: Validate field type in get_header_field Andrew Zaborowski
2016-04-12  1:56 ` [PATCH v2 02/11] dbus: Check some more return values when parsing messages Andrew Zaborowski
2016-04-12 18:53   ` Denis Kenzior
2016-04-12  1:56 ` [PATCH v2 03/11] dbus: GVariant header field identifiers are 64-bit Andrew Zaborowski
2016-04-12  1:56 ` [PATCH v2 04/11] dbus: Fix parsing GVariant header/body information Andrew Zaborowski
2016-04-12 21:15   ` Denis Kenzior
2016-04-12  1:56 ` [PATCH v2 05/11] dbus: GVariant message cookie and reply cookie are 64-bit Andrew Zaborowski
2016-04-12 21:18   ` Denis Kenzior
2016-04-12 22:00     ` Andrzej Zaborowski
2016-04-12  1:56 ` [PATCH v2 06/11] dbus: Don't rely on 1st KDBUS_ITEM_PAYLOAD_OFF being the header Andrew Zaborowski
2016-04-12  1:56 ` [PATCH v2 07/11] gvariant: Utility to build GVariant message out of header+body Andrew Zaborowski
2016-04-12 21:44   ` Denis Kenzior
2016-04-12 22:06     ` Andrzej Zaborowski
2016-04-12  1:56 ` [PATCH v2 08/11] dbus: Fix the kdbus message encoding Andrew Zaborowski
2016-04-12 21:46   ` Denis Kenzior
2016-04-12 22:10     ` Andrzej Zaborowski
2016-04-12 22:25       ` Denis Kenzior
2016-04-12 23:06         ` Andrzej Zaborowski
2016-04-12 23:11           ` Andrzej Zaborowski
2016-04-12 23:30             ` Denis Kenzior
2016-04-12 23:18           ` Denis Kenzior
2016-04-12 23:30             ` Andrzej Zaborowski
2016-04-12 23:42               ` Denis Kenzior [this message]
2016-04-13  0:14               ` Denis Kenzior
2016-04-13  0:23                 ` Andrzej Zaborowski
2016-04-12  1:56 ` [PATCH v2 09/11] dbus: Rename _dbus_header_is_valid to _dbus1_header_is_valid Andrew Zaborowski
2016-04-12  1:56 ` [PATCH v2 10/11] gvariant: Fix empty structure/array parsing and error check Andrew Zaborowski
2016-04-12  1:56 ` [PATCH v2 11/11] unit: Fix GVariant test messages Andrew Zaborowski
2016-04-12 18:51 ` [PATCH v2 01/11] dbus: Validate field type in get_header_field Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=570D87EA.7080907@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ell@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.