Linux Kernel in D?

cym13 via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 1 05:35:32 PDT 2016


On Tuesday, 1 November 2016 at 12:12:29 UTC, Heisenberg wrote:
> Just an idea. Do you think it would have any advantage compared 
> to the one that is written in C?

It would have advantages : most kernel vulnerabilities are due to 
buffer overflows, use-after-frees and such that are directly 
linked to the use of C. While it is possible to have these bugs 
in D they require that you go out of your way (using raw pointers 
instead of slices for example) which makes them less likely to 
happen.

On the other hand "normal D" cannot be used for the kernel as you 
need to grow a specific druntime that is able to manage memory 
allocations and such without depending on an existing kernel, so 
it's work.


More information about the Digitalmars-d mailing list