Page 1 of 1
Using D
Posted: Mon Nov 12, 2007 9:21 am
by jal
So, has anyone ever tried to use the D programming language for his OS? It's an interesting language, with many advantages over C and C++. The biggest drawback I can think of is that it uses garbage collection. That would definitely need to be removed for the kernel.
JAL
Posted: Mon Nov 12, 2007 9:37 am
by os64dev
i considered D and came to the conclusion that my knowledge about asm and c/c++ has covered osdev more then enough. Therefore i did not consider D or any other language anymore. The main problem i had with c/c++ was the weak typing of the base type. so i wrote a template class to fix this issue., for instance int8 x = 0; does not work with my class because the type of 0 does not match int8;.
And when you wish to program application then i would go for C#. But that is just me.
Posted: Mon Nov 12, 2007 10:22 am
by Combuster
AFAIK there was only one who openly stated he was using D (even promoted it), but I haven't seen him for a while now...
(
announcement thread)
Posted: Wed Nov 14, 2007 4:28 am
by jal
os64dev wrote:i considered D and came to the conclusion that my knowledge about asm and c/c++ has covered osdev more then enough. Therefore i did not consider D or any other language anymore. The main problem i had with c/c++ was the weak typing of the base type. so i wrote a template class to fix this issue., for instance int8 x = 0; does not work with my class because the type of 0 does not match int8;.
And when you wish to program application then i would go for C#. But that is just me.
Well, C++ has a lousy ABI, D's looks more like C. And for C#, that would only be feasible if it could compile to native code, imho.
JAL
Posted: Wed Nov 14, 2007 5:26 am
by Candy
jal wrote:Well, C++ has a lousy ABI
What's lousy about it - and most importantly, which ABI are you talking about?
Posted: Wed Nov 14, 2007 8:33 am
by jal
Candy wrote:jal wrote:Well, C++ has a lousy ABI
What's lousy about it - and most importantly, which ABI are you talking about?
Ah, sorry, I didn't mean ABI, I meant the (runtime) object model, the way virtual functions are treated, etc. It's rather complex, and
supposedly D has an easier model (but I haven't looked into it).
JAL
Posted: Wed Nov 14, 2007 2:19 pm
by Candy
jal wrote:Candy wrote:jal wrote:Well, C++ has a lousy ABI
What's lousy about it - and most importantly, which ABI are you talking about?
I meant the (runtime) object model, the way virtual functions are treated, etc. It's rather complex, and
supposedly D has an easier model (but I haven't looked into it).
So, complex == lousy? That'll be one hell of a lousy world for you then.
Posted: Wed Nov 14, 2007 3:02 pm
by jal
Candy wrote:So, complex == lousy? That'll be one hell of a lousy world for you then.
It is, you know. If only the world would be organized and logical, it would be a great place to live in...
JAL
Posted: Wed Nov 14, 2007 5:46 pm
by AndrewAPrice
jal wrote:Candy wrote:So, complex == lousy? That'll be one hell of a lousy world for you then.
It is, you know. If only the world would be organized and logical, it would be a great place to live in...
JAL
The world is only as complex as you make it.
Posted: Thu Nov 15, 2007 4:45 am
by jal
MessiahAndrw wrote:The world is only as complex as you make it.
Exactly, I rest my case :).
JAL
Posted: Thu Nov 15, 2007 12:56 pm
by os64dev
jal wrote:MessiahAndrw wrote:The world is only as complex as you make it.
Exactly, I rest my case
.
JAL
Sadly, you live in a world with other people who also create/add complexity/lousiness to the equation.
Therefore i agree with Candy.
Posted: Thu Nov 15, 2007 3:18 pm
by jal
os64dev wrote:Therefore i agree with Candy.
(last utterance before death) Must... make... this... world... less... complex...
JAL