> The string class does not need rewritten to be a UNICODE_STRING internally.
Yes, i’m agree with it. The conversion is better to be done outside the stdlib, it’s simple enough.
Sort of a rant, but I hate LIST_ENTRY. I enjoyed it when it and its manipulation
macros were state of the art about 30 years ago, but in the new era they are
truly horrid when viewed side by side castless std::list code which also snaps
into range based for loops and so forth.
it’s suggested the ‘LIST_ENTRY’ and the ‘std::list’ are the rather different things.
The LIST_ENTRY is an intrusive structure, so one need to prepare his data to be stored here, when you can just add any copy-constructible data to the ‘std::list’
On the other hand ‘LIST_ENTRY’ is a non-typed data - you can add here any structure with ‘LIST_ENTRY’ intrused - it becomes like a C-style tuple but which must be accessed very careful.
And the ‘LIST_ENTRY’ is a must-used when dealing with the kernel.
So if using these things according to their capabilities - then no hate arises -)
And the new c++11 threads are just killer–they make multi-threading sinfully
easy. Would love that in the kernel asap.
At first the current RTL doesn’t even try to overstep the C++03 basic support, so how, when and by whom the newer stdlib will be developed if at the moment even C++03 std for kernel doesn’t exist ?
What about a ‘threads’? I don’t think it’s to hard to write a wrapper around PsCreateSystemThread, moreover the very simple version is presented in the test driver in the project. The point is to make using of std/boost::function and std/boost::bind - this is a really powerful and amazing facility. Currently there exists such a code in my project based on this RTL. But it uses hand-made replacement of bind/function and is used for dispatching IRPs and spawning the kernel threads and work items. But the library code looks like “can’t see without bloody tears” and woudn’t be released in the nearest future.
There is really no limit to the practicality of the standard libraries in the
kernel.
It seems to be a very optimistic statement -).