C++ in base, async wrappers
Lexi Winter <[email protected]>
| Newsgroups | gmane.os.freebsd.architechture |
|---|---|
| Message-ID | <[email protected]> |
hi list, i've recently been working on a FreeBSD-specific project[0] written in C++, as part of which i wrote some lightweight C++ wrappers for kqueue which allow C++ users to consume kqueue in a more modern manner. for example, using coroutines (async) to replace C-style callbacks with code which is much easier to write and to read using co_await. it occurred to me that if this wrapper was included in base, it might be useful for various daemons and other bits of software that exist in base. would there be any interest if i were to submit a patch with a new base library along these lines? [0] https://git.sr.ht/~lw/netd
signature.asc
(application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEuwt6MaPcv/+Mo+ftDHqbqZ41x5kFAmWwFckACgkQDHqbqZ41 x5mdqwv/Y/AjSr6dXg0zcVkyoG+Ndat+IpUQIZYxy+RqWahp/kyVwJ99Z7W8Leyg 4C5Ni1lqW+bZ9j60EGOTwix68BRHDAZb77OISVRCKdk1dbJYYlxbH23hOvdaQ3Zz PTITJhjG5CrImeEOmibiQmBONNSwNkNOHczbBCpS9ljDXV6LpkeoHCHHf0hJPozs 4o0kG2hRzXB/3xbfsIGU08NBO6uhGVb7R0YkoEEPrp0Z9dbIzglR4OP+uQ6B9DE5 bbCk8FhvVWH/Z6y+7F11cfrZuwnB8rLJZL4G99hvYOvRy0zjQFbBjdEoClcB7RJU jsJ7mp0rC87Ttt2AxCaNWkXD/S/eJBA4dSjHYWnJRt1aizInHXsPQS4+ZFzsItG6 3HtxbLa21QhBrTTFEsiQVH0fWNKuDiYinaRPnqg4sn87QeZVLYYdMWgISiYnmP2v v/ND4t6KxbASVY9Ml5sqeO6VI9j5gJ8q4MfinX0+252sphu5/rRz44MY7X2f6rCn UvNz30fm =Vn6T -----END PGP SIGNATURE-----