Vali, a C library for Varlink
11–16 of 16 posts
Re: Vali, a C library for Varlink
#12Re: Vali, a C library for Varlink
#13What does varlink do that grpc or capnproto don't offer? Hell, it doesn't even seem much batter than openapi...
The main use-case is different: gRPC and Cap'n'Proto are designed for networked servers, while D-Bus and Varlink are designed for local IPC. Varlink is a lot simpler than other alternatives.
At the end of the day, local or remote, it is all just pushing data over sockets, no?
Re: Vali, a C library for Varlink
#14I'm wondering why Varlink, while incredibly similar to JSON-RPC, is designed to be incompatible with it?
More realistically, adding HTTP where it is not needed adds unnecessary complexity.
Re: Vali, a C library for Varlink
#15So, there's another copy of CORBA. :-)
Re: Vali, a C library for Varlink
#16Earlier quoted context omitted.
The main use-case is different: gRPC and Cap'n'Proto are designed for networked servers, while D-Bus and Varlink are designed for local IPC. Varlink is a lot simpler than other alternatives.
I've only had a cursory look at Varlink, but it almost felt too simple. In particular the lack of unsigned or sized integers. This might enf up being be fine, but it gave me pause when I looked at it previously.
The Linux ecosystem was using D-Bus for basically everything. But there was some need for IPC in early boot, before any D-Bus brokers were started.
Varlink was the answer, as a simple direct (vs DBus's broker mediated) IPC.