News for hackers. Stuff that matters.
Re:ToaruOS 2.0 by pjmlp on Tuesday December 14, 2021 @03:03AM (#29549368)
> Plus C++ standard library can't be used anyway and auto pointers aren't really that much of a concern at the kernel level

https://github.com/microsoft/wil

"Ah, but that isn't used on the Windows kernel" would be the expected reply, well

https://community.osr.com/discussion/291326/the-new-wil-libr...

"Microsoft's toolchain does not ship a copy of the STL that works in kernel mode. Partly this is because the kernel's CRT doesn't support C++ exceptions. (And partly this is because I/O is wildly different in kernel, so you'd have to rewrite the implementation of all the I/O libraries.)

But for kernel developers, wil ships a subset of an STL implementation. To avoid conflicting with the real STL, it's available under the wistd namespace. The rule of thumb is that wistd::foo is a drop-in replacement for std::foo."

Re:ToaruOS 2.0 by junon on Tuesday December 14, 2021 @03:56AM (#29549652)
That's not practical in every case, and that's not the standard library. It's a subset of it. I never said you couldn't do your own.
Re:ToaruOS 2.0 by pjmlp on Tuesday December 14, 2021 @09:25AM (#29551799)
No language uses the standard library on the kernel, not even C.