Writing in another language doesn't come close to solving the problem - a modern OS sits between lots of differently-privileged processes and thousands of devices, most of which have DMA access to host memory (and which are thus "memory-unsafe" in any language). On the other hand, C does give you good low-level access, an enormous ecosystem, and a large number of potential contributors.
HN is fond of blaming C, but seldom has any awareness of why almost everything does use C. This is not to say that C is perfect, but replacing it needs deep expertise in the fields in which C is still dominant.
HN is fond of blaming C, but seldom has any awareness of why almost everything does use C. This is not to say that C is perfect, but replacing it needs deep expertise in the fields in which C is still dominant.