www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Is it possible to create a kernel for an operating system in D?

reply I come from chill. <elcahivo gmail.com> writes:
It seems very obvious, but I have not been able to find any 
information on the subject to confirm this. So I'm wondering if 
it's possible.

** Maybe I shouldn't have created the account, literally this 
will be one of the few doubts I'll have about D :u, but it'll be 
worth it I guess **.
Sep 25 2023
next sibling parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
Indeed it is. Many people have done projects in this vein, the language 
isn't the limitation.

If you use the -betterC switch, you can fairly quickly get up and going 
and program a kernel as if you were using C, except with a nicer 
language. All other considerations like linker scripts ext. still apply 
however.
Sep 25 2023
prev sibling next sibling parent Jonathan M Davis <newsgroup.d jmdavisprog.com> writes:
On Monday, September 25, 2023 9:31:36 PM MDT I come from chill. via 
Digitalmars-d-learn wrote:
 It seems very obvious, but I have not been able to find any
 information on the subject to confirm this. So I'm wondering if
 it's possible.

 ** Maybe I shouldn't have created the account, literally this
 will be one of the few doubts I'll have about D :u, but it'll be
 worth it I guess **.
Yes. It's been done before. In fact, there was a talk at the most recent dconf from someone who has been working on one: https://dconf.org/2023/index.html#zachy The video isn't up yet though, since the videos are currently in the process of getting rendered and uploaded to youtube. https://forum.dlang.org/thread/rgevjorzaoeylhwiigpm forum.dlang.org - Jonathan M Davis
Sep 25 2023
prev sibling next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Tuesday, 26 September 2023 at 03:31:36 UTC, I come from chill. 
wrote:
 It seems very obvious, but I have not been able to find any 
 information on the subject to confirm this. So I'm wondering if 
 it's possible.

 ** Maybe I shouldn't have created the account, literally this 
 will be one of the few doubts I'll have about D :u, but it'll 
 be worth it I guess **.
A bit old but you can read about it: https://github.com/PowerNex/PowerNex https://github.com/Rikarin/Trinix https://github.com/xomboverlord/xomb/tree/unborn https://wiki.osdev.org/D_Bare_Bones
Sep 26 2023
prev sibling parent ryuukk_ <ryuukk.dev gmail.com> writes:
On Tuesday, 26 September 2023 at 03:31:36 UTC, I come from chill. 
wrote:
 It seems very obvious, but I have not been able to find any 
 information on the subject to confirm this. So I'm wondering if 
 it's possible.

 ** Maybe I shouldn't have created the account, literally this 
 will be one of the few doubts I'll have about D :u, but it'll 
 be worth it I guess **.
Yes you can, D is great for system level needs https://github.com/zyedidia/multiplix
Sep 27 2023