Using D

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Using D

Post 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
User avatar
os64dev
Member
Member
Posts: 553
Joined: Sat Jan 27, 2007 3:21 pm
Location: Best, Netherlands

Post 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.
Author of COBOS
User avatar
Combuster
Member
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:

Post 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)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Post 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
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post by Candy »

jal wrote:Well, C++ has a lousy ABI
What's lousy about it - and most importantly, which ABI are you talking about?
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Post 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
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Post 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.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Post 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
User avatar
AndrewAPrice
Member
Member
Posts: 2309
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Post 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.
My OS is Perception.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Post by jal »

MessiahAndrw wrote:The world is only as complex as you make it.
Exactly, I rest my case :).


JAL
User avatar
os64dev
Member
Member
Posts: 553
Joined: Sat Jan 27, 2007 3:21 pm
Location: Best, Netherlands

Post 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. :wink:

Therefore i agree with Candy.
Author of COBOS
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Post by jal »

os64dev wrote:Therefore i agree with Candy.
(last utterance before death) Must... make... this... world... less... complex...


JAL
Post Reply