<br><br><div class="gmail_quote">On Mon, Apr 4, 2011 at 1:19 AM, Bernd Petrovitsch <span dir="ltr"><<a href="mailto:bernd@petrovitsch.priv.at">bernd@petrovitsch.priv.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi!<br>
<br>
On Mon, 2011-04-04 at 00:47 +0530, mohit verma wrote: [....]<br>
<div class="im">> As far as i can decipher , we impose Object oriented paradigm in<br>
> kernel space using C : like using gates to allow only one way entry<br>
> and binding functions to structures in a OOP fashion and trying to<br>
> make them private to that structure only , encapsulation of one<br>
> struct into another structure (and lots of features ) and itself lots<br>
> of kernel subsystem supports like driver interface and blah blah<br>
> behaving like **objects** .......<br>
<br>
</div>OOP is a design issue independent of the used programming language. So<br>
you actually *can* do OOP with C (or assembler or ....) and I have seen<br>
C++ programs which do not employ the ideas behind OOP.<br>
<div class="im"><br>
> why dont we use some fully OOPs supportive language like JAVA or<br>
> partial supportive language like C++ to construct Linux Kernel????<br>
<br>
</div>What does it buy and what does it cost?<br>
<br>
For - or more against - Java: You really do not want an OS to use an<br>
interpreted "language". That kills performance. And the more interesting<br>
challenge is to implement hardware IRQ handlers in Java.<br>
<br>
C++ has lots of features which make it awkward to use. For starters,<br>
think about the fact that Java does not have multiple inheritance.<br>
<div class="im"><br>
> I don't think that performance is the main reason behind all this .<br>
> Is it??<br>
<br>
</div>Did you google for it and read the links etc.?<br>
You will find much more on this question.<br></blockquote><div><br></div><div> the above two responses can easily describe : **why** did i post this mail ?</div><div> And literally , i had googled it before posting to this list.</div>
<div><br></div><div> C++ is not that much stupid now a days if we compare it to old (1992) days...... but still C??</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Bernd<br>
<font color="#888888">--<br>
Bernd Petrovitsch Email : <a href="mailto:bernd@petrovitsch.priv.at">bernd@petrovitsch.priv.at</a><br>
LUGA : <a href="http://www.luga.at" target="_blank">http://www.luga.at</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>........................<div><i>MOHIT VERMA</i></div><br>