Can D be used for operating system development ?

IGotD- nise at nise.com
Tue Jun 7 11:27:18 UTC 2022


On Thursday, 2 June 2022 at 20:36:59 UTC, Jakob Jenkov wrote:
> Is it feasible / practical to use D to develop an operating 
> system from the ground up? Or does the VM / memory management 
> get in the way?

Yes you can write operating systems in D. However you cannot use 
many parts of druntime/phobos because

1. There is no "no OS" target to build druntime/phobos.
2. Many containers in D/Phobos use GC which makes them unsuitable 
for kernel development.

You probably need to write all your container algorithms 
yourself. It doesn't though because they need to be special 
anyway.

You are bascally using D without standard libraries. This about 
the same with C/C++.


More information about the Digitalmars-d mailing list