Using D
Using D
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
JAL
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.
And when you wish to program application then i would go for C#. But that is just me.
Author of COBOS
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
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)
(announcement thread)
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.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.
JAL
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).Candy wrote:What's lousy about it - and most importantly, which ABI are you talking about?jal wrote:Well, C++ has a lousy ABI
JAL
So, complex == lousy? That'll be one hell of a lousy world for you then.jal wrote: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).Candy wrote:What's lousy about it - and most importantly, which ABI are you talking about?jal wrote:Well, C++ has a lousy ABI
- AndrewAPrice
- Member
- Posts: 2309
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
The world is only as complex as you make it.jal wrote:It is, you know. If only the world would be organized and logical, it would be a great place to live in...Candy wrote:So, complex == lousy? That'll be one hell of a lousy world for you then.
JAL
My OS is Perception.
Sadly, you live in a world with other people who also create/add complexity/lousiness to the equation.jal wrote:Exactly, I rest my case .MessiahAndrw wrote:The world is only as complex as you make it.
JAL
Therefore i agree with Candy.
Author of COBOS