Garrett D'Amore wrote: > > On May 7, 2014 at 11:56:26 PM, Peter Kümmel (syntheticpp@xxxxxxx) wrote: > > On 03.05.2014 12:59, Paul Colomiets wrote: >> Hi Peter, >> >>> I wonder if someone has tried to _implement_ nanomsg with C++11. >> >> You should probably read: >> http://250bpm.com/blog:4 >> http://250bpm.com/blog:8 > > Nothing you could not circumvent within C++. > > But a hard requirement for C is the idea to get it > into the Linux kernel, C++ has no chance there. > > > You can put C++ into kenrel modules. Been there, done that, got the scars > and T-shirt to go with it. Generally you have to supply wrappers for some > “builtins” (e.g. new() wrapper around malloc() or kmalloc() or > kmem_alloc() depending on kernel), but its not too bad. But its almost > impossible to make a small library from C++ unless the C++ programmers > have basically confined themselves to a very limited subset of the > language (at which point is it really C++?) I think the intended meaning with "get it into the Linux kernel" was _upstreaming_. Sure, the _technical_ side is feasible, but the code would never be accepted into mainline.