Date: Tue, 28 Mar 2023 21:01:20 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Justin Hibbits <jhibbits@FreeBSD.org>, Konstantin Belousov <kostikbel@gmail.com> Cc: John Baldwin <jhb@freebsd.org>, Brooks Davis <brooks@freebsd.org>, freebsd-arch@freebsd.org Subject: Re: Blocks runtime in the kernel Message-ID: <a5a29c5a-b4e8-6a15-a3ff-71ff7d0e413e@selasky.org> In-Reply-To: <20230328154356.7130e4e0@gonegalt.net> References: <20230316100611.4892008c@gonegalt.net> <ZBSshsmKIo6VirT/@spindle.one-eyed-alien.net> <0f19b708-c167-b05e-1b0d-e4c1029a50c4@FreeBSD.org> <ZCIVUtAyN9tu_mb2@kib.kiev.ua> <20230328154356.7130e4e0@gonegalt.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/28/23 21:43, Justin Hibbits wrote: > On a side note, a friend of mine would love to see C++ in the kernel, > but that's a discussion for another day. Hi, I've never used blocks before, but it kind of gets me thinking about C++ templates. Can't you just use static inline functions, and the compiler will insert and optimise the code for you? Or make some macros to generate foreach functions doing various simple things? Personally, it took many years before I grasped all of C++ . I'm worried that blocks is one of those features that look nice, but have strange corners and require more from code analysis. For example if you do static code analysis and use blocks, will the static code analysis tool be completely lost? What about services like coverty? Do they find bugs hidden when using blocks? --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a5a29c5a-b4e8-6a15-a3ff-71ff7d0e413e>