Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is very difficult to write device drivers in even C++ while still maintaining the ability to write pageable kernel drivers. Drivers must have very strict control over availability of memory because it will likely access it at times when a page fault is not possible (i.e. during an interrupt handler). The C# language and runtime would have to add features to explicitly accomodate this at a bare minimum


Microsoft did have an experimental OS[1] written in a variant of C# so it doesn't seem completely unrealistic.

[1] https://en.wikipedia.org/wiki/Midori_(operating_system)

My guess is the internal politics would be a bigger problem than any technical issues.


It's not unrealistic but Midori made a lot of changes to C# to make it possible, it was almost a different language by the end of the project


Learnings from Midori were partially incorporated into C#


Starting in C# 7, and still being done in newer versions.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: