D as System Language

Mathias Lang via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 30 09:17:04 PDT 2015

2015-03-30 18:01 GMT+02:00 Columbus via Digitalmars-d <
digitalmars-d at puremagic.com>:

> On Monday, 30 March 2015 at 15:39:07 UTC, Adam D. Ruppe wrote:
>> Basically you can start with an empty runtime and then add back missing
>> functions as needed to get it to compile.
> What do you mean by "an empty runtime"?
> What does a runtime need?
> On Monday, 30 March 2015 at 15:42:46 UTC, weaselcat wrote:
>> https://github.com/xomboverlord/xomb
> Yes I know, but it is D1 and not D2.
> I do not exactly understand the differences, but I want to use D2
> because I don't know what would be better when I'd use D1.

I would discourage learning a language by writting a kernel (unless you
previously wrote a decent one). You'll run into issues that you won't be
able to easily debug, and very few people will be able to help you. You
might get away by doing that with much lower level language (C, ASM), but
that's pretty much it. Even C++ has some hard to debug corner case when you
go freestanding.

Note: It doesn't mean D is not suitable for such a task. But I tried it
myself and run into more problems than I can remember. Some people came
with interesting solutions: I found
https://www.youtube.com/watch?v=o5m0m_ZG9e8 very interesting (and I think
it blew everyone's mind at that time ;) ). Adam also had a talk at last
year's DConf, and an ebook you can easily find. Note that *the* place to go
for OSDev is osdev.org which has some (sometimes outdated) D-related topics
(and will give you exactly the same advice as me).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150330/51384f69/attachment.html>

More information about the Digitalmars-d mailing list