C++ in base, async wrappers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 23 Jan 2024 19:38:52 UTC
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