Hacker News new | past | comments | ask | show | jobs | submit login

Do tell. I’ve found dbus hard to understand, but it works reliably here.



There are many ways to do IPC on a unix system. Dbus is a reinvention of IPC in the worst possible way. It requires a daemon to run and it requires every client to be able to parse and generate JSON. The worst thing is that those JSON packets are not even human readable most of the time. Protocols that are running on top of that are also not standardized. If you are lucky KDE and GNOME agree on something. Many times they don't.


I suggest you read up on how D-Bus actually works. E.g. https://dbus.freedesktop.org/doc/dbus-tutorial.html


D-Bus does not use JSON.


Indeed it uses XML which is even worse!


Only as a description language. The message format is a subset of GVariants.


At closer inspection GVariants looks very similar to JSON though.


Except that it was designed to be read into memory and directly accessed without parsing. A GVariant Array has the form of its elements and their lengths. You can index into an Array in linear time.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: