We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

Back to home

Vali, a C library for Varlink

Source

Hacker News

Published

TL;DR

AI Generated

Vali is a new C library for Varlink, a simple Remote Procedure Call (RPC) protocol. The library aims to simplify the process of calling methods exposed by services and handling responses. Vali supports code generation from specification files, reducing manual encoding/decoding boilerplate and ensuring type safety. The article explains how to use Vali for both client and service sides, showcasing examples of connecting, calling methods, and handling replies. The library also enables asynchronous handling on the service side to prevent blocking other clients during calls. Vali's design decisions prioritize clarity, consistency, and ease of use for developers implementing Varlink services.