vali, a C library for Varlink
4 days ago
- #RPC
- #Varlink
- #C programming
- Announcement of vali, a C library for Varlink, a simple RPC protocol.
- Varlink allows clients to call methods on services via JSON objects over Unix sockets.
- Example provided of a Varlink request and response with JSON objects.
- Varlink services describe their methods with interface definition files.
- vali supports code generation from interface definitions for type safety and reduced boilerplate.
- Demonstration of client and service usage without code generation, highlighting boilerplate and type safety issues.
- Introduction of vali's API design decisions, including the use of structs for input and output parameters.
- Service-side handling with vali, including asynchronous call handling and the use of fat pointers for callbacks.
- Explanation of the service registry feature in vali for handling multiple interfaces and introspection.
- Future plans for vali include async client support and improvements to const handling in generated structs.
- Invitation to try vali and provide feedback.