Writing Drivers in Java...

Hello All ,

I AMquoting below a sentence from Microsoft’s Document

>Note that an object-oriented design does not mean requiring all drivers
to be written in C++ or Java. >>Object-based designs can be used in
functional and object-oriented programming languages and many of >>the
benefits would still apply to drivers written in C.

So i wish to know whether Drivers are written in Java , if yes then how do
they do it.
Though i suspect the above mentioned statement a bit.
and i guess you guys will be able to through a better light on this

Aashish Kaushik
TEL : 0120-4777881(Extn. 2390)
E-MAIL:xxxxx@jil.co.in

If there is righteosuness in the heart,  
there is beauty in character and if there  
is beauty in character there will be harmony  
in the home.  
 ---- Sai Baba  

Java is an interpreted language whos m/c instructions specific to the target
platform is resolved at runtime and executed by the jvm (java vitual m/c –
which is specific to the target OS …meaning it executes system calls on
behalf of ur java application and is specific to the OS.) …

Further jvm runs in user mode … so there is no question of java drivers in
kernel mode …

but perhaps Microsoft means writing drivers in native java … which compiles
with native c libraries and hence don’t carry fwd its so call OS
independence …

further “microsoft java” is slightly different from java …

–Arup

-----Original Message-----
From: xxxxx@jil.co.in [mailto:xxxxx@jil.co.in]
Sent: Monday, April 29, 2002 11:58 AM
To: NT Developers Interest List
Subject: [ntdev] Writing Drivers in Java…

Hello All ,

I AMquoting below a sentence from Microsoft’s Document

>Note that an object-oriented design does not mean requiring all drivers
to be written in C++ or Java. >>Object-based designs can be used in
functional and object-oriented programming languages and many of >>the
benefits would still apply to drivers written in C.

So i wish to know whether Drivers are written in Java , if yes then how do
they do it.
Though i suspect the above mentioned statement a bit.
and i guess you guys will be able to through a better light on this

Aashish Kaushik
TEL : 0120-4777881(Extn. 2390)
E-MAIL:xxxxx@jil.co.in

If there is righteosuness in the heart,  
there is beauty in character and if there  
is beauty in character there will be harmony  
in the home.  
 ---- Sai Baba  

You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

Hello Anup ,

I am hearing for the first time that there is something as “Native Java”
actually java uses JNI to
make calls to C and C++ function Which is determined at Runtime.

> further “microsoft java” is slightly different from java …
No i guess Microsoft Java is not much different from Sun Java…it is like
serving you a gift in another
GIFT WRAP , they just have added new API’s that are windows specific.
Rest it works and compiles as Sun Java does.

Since microsoft have Used the word JAVA in their device driver development
document then i guess
they would have been Pretty sure about the usage of that word and must have
worked in developing drivers
in JAVA…
Any OSR Guy would like to through a light on this Issue.

Thanks Anup for sharing your Knowledge.

Regards,
Aashish

Arup Banerjee
n>
Sent by: cc:
xxxxx@lis Subject: [ntdev] RE: Writing Drivers in
ts.osr.com Java…

29-04-2002 01:49 AM
Please respond to “NT
Developers Interest
List”

Java is an interpreted language whos m/c instructions specific to the
target
platform is resolved at runtime and executed by the jvm (java vitual m/c –
which is specific to the target OS …meaning it executes system calls on
behalf of ur java application and is specific to the OS.) …

Further jvm runs in user mode … so there is no question of java drivers in
kernel mode …

but perhaps Microsoft means writing drivers in native java … which
compiles
with native c libraries and hence don’t carry fwd its so call OS
independence …

further “microsoft java” is slightly different from java …

–Arup

-----Original Message-----
From: xxxxx@jil.co.in [mailto:xxxxx@jil.co.in]
Sent: Monday, April 29, 2002 11:58 AM
To: NT Developers Interest List
Subject: [ntdev] Writing Drivers in Java…

Hello All ,

I AMquoting below a sentence from Microsoft’s Document

>>Note that an object-oriented design does not mean requiring all drivers
to be written in C++ or Java. >>Object-based designs can be used in
functional and object-oriented programming languages and many of >>the
benefits would still apply to drivers written in C.

So i wish to know whether Drivers are written in Java , if yes then how do
they do it.
Though i suspect the above mentioned statement a bit.
and i guess you guys will be able to through a better light on this

Aashish Kaushik
TEL : 0120-4777881(Extn. 2390)
E-MAIL:xxxxx@jil.co.in


If there is righteosuness in the heart,
there is beauty in character and if there
is beauty in character there will be harmony
in the home.
---- Sai Baba



You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@jil.co.in
To unsubscribe send a blank email to %%email.unsub%%

If we want to write Driver in Java, Java Virtual machine should in Kernel
Mode.
rightnow JAVA VM runs only in User Mode.

IT IS NOT POSSIBLE WRITING DRIVER IN JAVA.

Use “Jumbo”, You can write in VC++, DELPHI, VB etc …

Regards,
Satish K.S

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Monday, April 29, 2002 12:27 PM
Subject: [ntdev] RE: Writing Drivers in Java…

>
>
> Hello Anup ,
>
> I am hearing for the first time that there is something as “Native Java”
> actually java uses JNI to
> make calls to C and C++ function Which is determined at Runtime.
>
> >> further “microsoft java” is slightly different from java …
> No i guess Microsoft Java is not much different from Sun Java…it is like
> serving you a gift in another
> GIFT WRAP , they just have added new API’s that are windows specific.
> Rest it works and compiles as Sun Java does.
>
>
> Since microsoft have Used the word JAVA in their device driver development
> document then i guess
> they would have been Pretty sure about the usage of that word and must
have
> worked in developing drivers
> in JAVA…
> Any OSR Guy would like to through a light on this Issue.
>
> Thanks Anup for sharing your Knowledge.
>
> Regards,
> Aashish
>
>
>
>
>
> Arup Banerjee
> Interest List"
> n>
> Sent by: cc:
> xxxxx@lis Subject: [ntdev] RE:
Writing Drivers in
> ts.osr.com Java…
>
>
> 29-04-2002 01:49 AM
> Please respond to “NT
> Developers Interest
> List”
>
>
>
>
>
> Java is an interpreted language whos m/c instructions specific to the
> target
> platform is resolved at runtime and executed by the jvm (java vitual
m/c –
> which is specific to the target OS …meaning it executes system calls on
> behalf of ur java application and is specific to the OS.) …
>
> Further jvm runs in user mode … so there is no question of java drivers
in
> kernel mode …
>
> but perhaps Microsoft means writing drivers in native java … which
> compiles
> with native c libraries and hence don’t carry fwd its so call OS
> independence …
>
> further “microsoft java” is slightly different from java …
>
> --Arup
>
>
>
>
>
> -----Original Message-----
> From: xxxxx@jil.co.in [mailto:xxxxx@jil.co.in]
> Sent: Monday, April 29, 2002 11:58 AM
> To: NT Developers Interest List
> Subject: [ntdev] Writing Drivers in Java…
>
>
>
> Hello All ,
>
> I AMquoting below a sentence from Microsoft’s Document
>
> >>Note that an object-oriented design does not mean requiring all drivers
> to be written in C++ or Java. >>Object-based designs can be used in
> functional and object-oriented programming languages and many of >>the
> benefits would still apply to drivers written in C.
>
>
> So i wish to know whether Drivers are written in Java , if yes then how do
> they do it.
> Though i suspect the above mentioned statement a bit.
> and i guess you guys will be able to through a better light on this
>
>
>
> Aashish Kaushik
> TEL : 0120-4777881(Extn. 2390)
> E-MAIL:xxxxx@jil.co.in
>
>
> If there is righteosuness in the heart,
> there is beauty in character and if there
> is beauty in character there will be harmony
> in the home.
> ---- Sai Baba
>

>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@quark.co.in
> To unsubscribe send a blank email to %%email.unsub%%
>
> —
> You are currently subscribed to ntdev as: xxxxx@jil.co.in
> To unsubscribe send a blank email to %%email.unsub%%
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@aalayance.com
> To unsubscribe send a blank email to %%email.unsub%%
>

As per me WhenEver Microsoft says Java it means VJ++ ,I think as VJ++ can
be used for Native development …same way it can be used for Driver
Development.Certainly It must be possible for VJ++ …as it’s like VB and
VC++.
We need to take advice from some MS -VJ++ pro.

-----Original Message-----
From: xxxxx@jil.co.in [ mailto:xxxxx@jil.co.in
mailto:xxxxx ]
Sent: Monday, April 29, 2002 12:28 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Writing Drivers in Java…

Hello Anup ,

I am hearing for the first time that there is something as “Native Java”
actually java uses JNI to
make calls to C and C++ function Which is determined at Runtime.

JNI stands for “Java Native Interface” … it compiles with platform
dependent c libraries. libraries link to m/c specific obj binary files which
make OS dependent system calls. This linking needs to happen in order to
create ur binary executable image . what happens at runtime … confused ??
. I’m not a java programmer although I’ve written jvm for mpras … but 'am
saying this out of common sense.

>> further “microsoft java” is slightly different from java …
No i guess Microsoft Java is not much different from Sun Java…it is like
serving you a gift in another
GIFT WRAP , they just have added new API’s that are windows specific.
Rest it works and compiles as Sun Java does.

Nothing comes as Gift wrap in this world … everything has some purpose
behind … lets not get into philosophy … but are u aware that u can
also create executable “.exe” image with ur java code using VJ++ … Its
tight integration of COM/DCOM was at the cost of very java philosophy.

Since microsoft have Used the word JAVA in their device driver development
document then i guess
they would have been Pretty sure about the usage of that word and must have
worked in developing drivers
in JAVA…

If you find them … let me know …

Any OSR Guy would like to through a light on this Issue.

Thanks Anup for sharing your Knowledge.

Regards,
Aashish

Arup Banerjee

Interest List"
n>

Sent by: cc:

xxxxx@lis Subject: [ntdev] RE:
Writing Drivers in
ts.osr.com Java…

29-04-2002 01:49 AM

Please respond to “NT

Developers Interest

List”

Java is an interpreted language whos m/c instructions specific to the
target
platform is resolved at runtime and executed by the jvm (java vitual m/c –
which is specific to the target OS …meaning it executes system calls on
behalf of ur java application and is specific to the OS.) …

Further jvm runs in user mode … so there is no question of java drivers in
kernel mode …

but perhaps Microsoft means writing drivers in native java … which
compiles
with native c libraries and hence don’t carry fwd its so call OS
independence …

further “microsoft java” is slightly different from java …

–Arup

-----Original Message-----
From: xxxxx@jil.co.in [mailto:xxxxx@jil.co.in
mailto:xxxxx]
Sent: Monday, April 29, 2002 11:58 AM
To: NT Developers Interest List
Subject: [ntdev] Writing Drivers in Java…

Hello All ,

I AMquoting below a sentence from Microsoft’s Document

>>Note that an object-oriented design does not mean requiring all drivers
to be written in C++ or Java. >>Object-based designs can be used in
functional and object-oriented programming languages and many of >>the
benefits would still apply to drivers written in C.

So i wish to know whether Drivers are written in Java , if yes then how do
they do it.
Though i suspect the above mentioned statement a bit.
and i guess you guys will be able to through a better light on this

Aashish Kaushik
TEL : 0120-4777881(Extn. 2390)
E-MAIL:xxxxx@jil.co.in


If there is righteosuness in the heart,
there is beauty in character and if there
is beauty in character there will be harmony
in the home.
---- Sai Baba



You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@jil.co.in
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%</mailto:xxxxx></mailto:xxxxx>

wrote in message news:xxxxx@ntdev…
>
>
> I AMquoting below a sentence from Microsoft’s Document
>

From WHERE are you quoting in “Micrososf’s Document”?

Unless I am seriously mistaken, no way you can write drivers in Java. You’d
need run time support.

I’ve never seen an NT driver written in Java, and I hope I never live to see
that day that I do.

Peter
OSR

Actually you probably can write a driver in Java or in C#, the only
problem would be to access bit fields - but that’s easily done in
machine language. Actually, I believe that a Windows object
oriented driver model, possibly running inside rings 1 and 2 instead
of ring 0, would be a great step forward.

Alberto.

===================

On 29 Apr 2002, at 8:40, Peter Viscarola wrote:

wrote in message news:xxxxx@ntdev…
> >
> >
> > I AMquoting below a sentence from Microsoft’s Document
> >
>
> >From WHERE are you quoting in “Micrososf’s Document”?
>
> Unless I am seriously mistaken, no way you can write drivers in Java. You’d
> need run time support.
>
> I’ve never seen an NT driver written in Java, and I hope I never live to see
> that day that I do.
>
> Peter
> OSR
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@ieee.org
> To unsubscribe send a blank email to %%email.unsub%%
>

Peter,

Don’t think of dying for some cranky ideas that crop out of non-techy
Marketing guys … its all the drive of getting something fast (not
effectiveness wise)… getting something cheap … even at the cost of
performance … eventually to die its own end … have u heard of that
new term embeded java … java taking its way even into the embeded
systems … hope it doesn’t enter the world of RTOS … else that day …
the dooms day ;(

–Arup

-----Original Message-----
From: Peter Viscarola [mailto:xxxxx@osr.com]
Sent: Monday, April 29, 2002 6:11 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

wrote in message news:xxxxx@ntdev…
>
>
> I AMquoting below a sentence from Microsoft’s Document
>

From WHERE are you quoting in “Micrososf’s Document”?

Unless I am seriously mistaken, no way you can write drivers in Java. You’d
need run time support.

I’ve never seen an NT driver written in Java, and I hope I never live to see
that day that I do.

Peter
OSR


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

I’ve never seen a java driver
I never hope to see one,
But I’d rather write that driver
Than to have to use one.

paraphrased from ogden nash, with regrets about the meter.

-----Original Message-----
From: Peter Viscarola [mailto:xxxxx@osr.com]
Sent: Monday, April 29, 2002 8:41 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

wrote in message news:xxxxx@ntdev…
> >
> >
> > I AMquoting below a sentence from Microsoft’s Document
> >
>
> From WHERE are you quoting in “Micrososf’s Document”?
>
> Unless I am seriously mistaken, no way you can write drivers
> in Java. You’d need run time support.
>
> I’ve never seen an NT driver written in Java, and I hope I
> never live to see that day that I do.
>
> Peter
> OSR
>
>
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@stratus.com To unsubscribe send a blank email to
> %%email.unsub%%
>

Before u try to redress a problem try to understand that java runs on top of
jvm which runs in user mode … jvm can’t be afforded into kernel …
unless u try to do that for some real good reason or some equally non-good
one … further some stupid non-safe java interpreted in kernel mode and
then having access to … all PCBs TCBs RSAs … protection bit set to
Zero … ha ha … what a misery … probably some cranky OS developer would
design such OS … lets no make rselves cranky on that topic …

–Arup

-----Original Message-----
From: xxxxx@ieee.org [mailto:xxxxx@ieee.org]
Sent: Monday, April 29, 2002 6:18 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

Actually you probably can write a driver in Java or in C#, the only
problem would be to access bit fields - but that’s easily done in
machine language. Actually, I believe that a Windows object
oriented driver model, possibly running inside rings 1 and 2 instead
of ring 0, would be a great step forward.

Alberto.

===================

On 29 Apr 2002, at 8:40, Peter Viscarola wrote:

wrote in message news:xxxxx@ntdev…
> >
> >
> > I AMquoting below a sentence from Microsoft’s Document
> >
>
> >From WHERE are you quoting in “Micrososf’s Document”?
>
> Unless I am seriously mistaken, no way you can write drivers in Java.
You’d
> need run time support.
>
> I’ve never seen an NT driver written in Java, and I hope I never live to
see
> that day that I do.
>
> Peter
> OSR
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@ieee.org
> To unsubscribe send a blank email to %%email.unsub%%
>


You are currently subscribed to ntdev as: xxxxx@quark.co.in
To unsubscribe send a blank email to %%email.unsub%%

This is a joke, right???

No one seriously believes drivers can be written JAVA, do they?? Hell the
flawed idea of the garbage-collection method of memory management alone
precludes JAVA from anything serious, like drivers, real time, etc.

Damn, where to these really bad ideas come from???

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Peter Viscarola
Sent: Monday, April 29, 2002 7:41 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

wrote in message news:xxxxx@ntdev…
>
>
> I AMquoting below a sentence from Microsoft’s Document
>

>From WHERE are you quoting in “Micrososf’s Document”?

Unless I am seriously mistaken, no way you can write drivers in Java. You’d
need run time support.

I’ve never seen an NT driver written in Java, and I hope I never live to see
that day that I do.

Peter
OSR


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%

mark: What meter? :wink:

I’ve never seen a Java driver;
I wouldn’t want to write one.
If that’s the future of our craft,
It will not be a bright one.

-Art

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Roddy, Mark
Sent: Monday, April 29, 2002 8:50 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

I’ve never seen a java driver
I never hope to see one,
But I’d rather write that driver
Than to have to use one.

paraphrased from ogden nash, with regrets about the meter.

> -----Original Message-----
> From: Peter Viscarola [mailto:xxxxx@osr.com]
> Sent: Monday, April 29, 2002 8:41 AM
> To: NT Developers Interest List
> Subject: [ntdev] Re: Writing Drivers in Java…
>
>
> wrote in message news:xxxxx@ntdev…
> > >
> > >
> > > I AMquoting below a sentence from Microsoft’s Document
> > >
> >
> > From WHERE are you quoting in “Micrososf’s Document”?
> >
> > Unless I am seriously mistaken, no way you can write drivers
> > in Java. You’d need run time support.
> >
> > I’ve never seen an NT driver written in Java, and I hope I
> > never live to see that day that I do.
> >
> > Peter
> > OSR
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as:
> > xxxxx@stratus.com To unsubscribe send a blank email to
> > %%email.unsub%%
> >
>
> —
> You are currently subscribed to ntdev as: xxxxx@nfr.com
> To unsubscribe send a blank email to %%email.unsub%%

> Actually, I believe that a Windows object oriented driver model,

possibly running inside rings 1 and 2 instead of ring 0, would be
a great step forward.

Alberto.

During the original design of NT, there was some thought given to putting
I/O drivers in Ring 1. The idea was abandoned because (a) it made porting
the O/S to RISC platforms impossible, and (b) it proved to be really,
really, really SLOOOOOW.


A driver is a piece of the operating system – a privileged extension of the
I/O Manager. The correct approach is to make it “perfect” during the design,
coding, and testing phases of its life (i.e., before it goes out into the
world). It’s NOT appropriate to be sending out buggy drivers with the hope
that, somehow, the operating system’s protection scheme will keep your
driver from doing too much harm.

-Art Baker

I could not agree with you more, Art. Bravo!!!

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Art Baker
Sent: Monday, April 29, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

Actually, I believe that a Windows object oriented driver model,
possibly running inside rings 1 and 2 instead of ring 0, would be
a great step forward.

Alberto.

During the original design of NT, there was some thought given to putting
I/O drivers in Ring 1. The idea was abandoned because (a) it made porting
the O/S to RISC platforms impossible, and (b) it proved to be really,
really, really SLOOOOOW.


A driver is a piece of the operating system – a privileged extension of the
I/O Manager. The correct approach is to make it “perfect” during the design,
coding, and testing phases of its life (i.e., before it goes out into the
world). It’s NOT appropriate to be sending out buggy drivers with the hope
that, somehow, the operating system’s protection scheme will keep your
driver from doing too much harm.

-Art Baker


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%

Art,

I agree as well. That’s why we get paid to write drivers in the first
place!

  • jb

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Art Baker
Sent: Monday, April 29, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

Actually, I believe that a Windows object oriented driver model,
possibly running inside rings 1 and 2 instead of ring 0, would be a
great step forward.

Alberto.

During the original design of NT, there was some thought given to
putting I/O drivers in Ring 1. The idea was abandoned because (a) it
made porting the O/S to RISC platforms impossible, and (b) it proved to
be really, really, really SLOOOOOW.


A driver is a piece of the operating system – a privileged extension of
the I/O Manager. The correct approach is to make it “perfect” during the
design, coding, and testing phases of its life (i.e., before it goes out
into the world). It’s NOT appropriate to be sending out buggy drivers
with the hope that, somehow, the operating system’s protection scheme
will keep your driver from doing too much harm.

-Art Baker


You are currently subscribed to ntdev as: xxxxx@earthlink.net To
unsubscribe send a blank email to %%email.unsub%%

Use “Jumbo”, You can write in VC++, DELPHI, VB etc …

I’m sorry but it’s Jungo :slight_smile:

Regards Ilya.

At 12:50 PM 4/29/2001 +0530, you wrote:

If we want to write Driver in Java, Java Virtual machine should in Kernel
Mode.
rightnow JAVA VM runs only in User Mode.

IT IS NOT POSSIBLE WRITING DRIVER IN JAVA.

Use “Jumbo”, You can write in VC++, DELPHI, VB etc …

Regards,
Satish K.S

----- Original Message -----
From:
>To: “NT Developers Interest List”
>Sent: Monday, April 29, 2002 12:27 PM
>Subject: [ntdev] RE: Writing Drivers in Java…
>
>
> >
> >
> > Hello Anup ,
> >
> > I am hearing for the first time that there is something as “Native Java”
> > actually java uses JNI to
> > make calls to C and C++ function Which is determined at Runtime.
> >
> > >> further “microsoft java” is slightly different from java …
> > No i guess Microsoft Java is not much different from Sun Java…it is like
> > serving you a gift in another
> > GIFT WRAP , they just have added new API’s that are windows specific.
> > Rest it works and compiles as Sun Java does.
> >
> >
> > Since microsoft have Used the word JAVA in their device driver development
> > document then i guess
> > they would have been Pretty sure about the usage of that word and must
>have
> > worked in developing drivers
> > in JAVA…
> > Any OSR Guy would like to through a light on this Issue.
> >
> > Thanks Anup for sharing your Knowledge.
> >
> > Regards,
> > Aashish
> >
> >
> >
> >
> >
> > Arup Banerjee
> > >Interest List"
> > n>
> > Sent by: cc:
> > xxxxx@lis Subject: [ntdev] RE:
>Writing Drivers in
> > ts.osr.com Java…
> >
> >
> > 29-04-2002 01:49 AM
> > Please respond to “NT
> > Developers Interest
> > List”
> >
> >
> >
> >
> >
> > Java is an interpreted language whos m/c instructions specific to the
> > target
> > platform is resolved at runtime and executed by the jvm (java vitual
>m/c –
> > which is specific to the target OS …meaning it executes system calls on
> > behalf of ur java application and is specific to the OS.) …
> >
> > Further jvm runs in user mode … so there is no question of java drivers
>in
> > kernel mode …
> >
> > but perhaps Microsoft means writing drivers in native java … which
> > compiles
> > with native c libraries and hence don’t carry fwd its so call OS
> > independence …
> >
> > further “microsoft java” is slightly different from java …
> >
> > --Arup
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: xxxxx@jil.co.in [mailto:xxxxx@jil.co.in]
> > Sent: Monday, April 29, 2002 11:58 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] Writing Drivers in Java…
> >
> >
> >
> > Hello All ,
> >
> > I AMquoting below a sentence from Microsoft’s Document
> >
> > >>Note that an object-oriented design does not mean requiring all drivers
> > to be written in C++ or Java. >>Object-based designs can be used in
> > functional and object-oriented programming languages and many of >>the
> > benefits would still apply to drivers written in C.
> >
> >
> > So i wish to know whether Drivers are written in Java , if yes then how do
> > they do it.
> > Though i suspect the above mentioned statement a bit.
> > and i guess you guys will be able to through a better light on this
> >
> >
> >
> > Aashish Kaushik
> > TEL : 0120-4777881(Extn. 2390)
> > E-MAIL:xxxxx@jil.co.in
> >
> >
> > If there is righteosuness in the heart,
> > there is beauty in character and if there
> > is beauty in character there will be harmony
> > in the home.
> > ---- Sai Baba
> >

> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@quark.co.in
> > To unsubscribe send a blank email to %%email.unsub%%
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@jil.co.in
> > To unsubscribe send a blank email to %%email.unsub%%
> >
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@aalayance.com
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
>—
>You are currently subscribed to ntdev as: xxxxx@jungo.com
>To unsubscribe send a blank email to %%email.unsub%%

Wow, tough crowd for Java…

I personally would love to write drivers in Java, if it were practical.
Although I doubt it will ever happen for kernel mode stuff, I know Java
has already been used to write windowss services and other ‘higher level’
user mode components.

I know this is a group of people that likes to get close to the metal -
but try not to spread false information about Java. e.g. Most Java
implementations haven’t been interpretted for years - it is simply
compiled at runtime.

There are project in the works for realtime Java and Embedded Java as
someone pointed out. But as far as Windows kernel mode drivers… I don’t
think we will ever see Java there.

With the current exception of realtime apps as previously noted, Java is a
quite reasonable language for general application development. (I would
certainly rank it ahead of VB).

Well enough about Java, on a somewhat related note…and something more
relevant ot what we do… what do you guys think about this:
http://www.projectudi.org/

I noticed Microsoft is absent from the list of participants - no surprise
there.

I doubt it would be suitable for writing “optimal” drivers… but the
problem they are attempting to address is real… and I think worth
addressing.

Scott

I don’t see why switching from ring 3 to ring 1 would be any slower
than switching from ring 3 to ring 0. Besides, if you really need
speed, look at the Unix Direct Rendering movement, that’s the way
to do it. And it’s going to be the odd driver that is processor bound
before it is bus or i/o bound.

Also, I/O does not need to belong in the trusted part of an OS -
interrupts included. My all-time favorite machine, the Sperry DCP
40, didn’t even have interrupts in the central processor. So, I see no
real problem in moving the whole i/o handling, interrupts et al, to
ring 1.

Alberto.

==========================

On 29 Apr 2002, at 9:27, Gregory G. Dyess wrote:

I could not agree with you more, Art. Bravo!!!

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Art Baker
Sent: Monday, April 29, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

> Actually, I believe that a Windows object oriented driver model,
> possibly running inside rings 1 and 2 instead of ring 0, would be
> a great step forward.
>
> Alberto.

During the original design of NT, there was some thought given to putting
I/O drivers in Ring 1. The idea was abandoned because (a) it made porting
the O/S to RISC platforms impossible, and (b) it proved to be really,
really, really SLOOOOOW.


> A driver is a piece of the operating system – a privileged extension of the
> I/O Manager. The correct approach is to make it “perfect” during the design,
> coding, and testing phases of its life (i.e., before it goes out into the
> world). It’s NOT appropriate to be sending out buggy drivers with the hope
> that, somehow, the operating system’s protection scheme will keep your
> driver from doing too much harm.
>

-Art Baker


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@ieee.org
To unsubscribe send a blank email to %%email.unsub%%

Just compile the code, no need to run on top of a jvm. Or better,
distribute the code in jvm form and let it be compiled at the user’s
site, optimized to each individual configuration.

Alberto.

On 29 Apr 2002, at 18:32, Arup Banerjee wrote:

Before u try to redress a problem try to understand that java runs on top of
jvm which runs in user mode … jvm can’t be afforded into kernel …
unless u try to do that for some real good reason or some equally non-good
one … further some stupid non-safe java interpreted in kernel mode and
then having access to … all PCBs TCBs RSAs … protection bit set to
Zero … ha ha … what a misery … probably some cranky OS developer would
design such OS … lets no make rselves cranky on that topic …

–Arup

-----Original Message-----
From: xxxxx@ieee.org [mailto:xxxxx@ieee.org]
Sent: Monday, April 29, 2002 6:18 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Writing Drivers in Java…

Actually you probably can write a driver in Java or in C#, the only
problem would be to access bit fields - but that’s easily done in
machine language. Actually, I believe that a Windows object
oriented driver model, possibly running inside rings 1 and 2 instead
of ring 0, would be a great step forward.

Alberto.

===================

On 29 Apr 2002, at 8:40, Peter Viscarola wrote:

> wrote in message news:xxxxx@ntdev…
> > >
> > >
> > > I AMquoting below a sentence from Microsoft’s Document
> > >
> >
> > >From WHERE are you quoting in “Micrososf’s Document”?
> >
> > Unless I am seriously mistaken, no way you can write drivers in Java.
> You’d
> > need run time support.
> >
> > I’ve never seen an NT driver written in Java, and I hope I never live to
> see
> > that day that I do.
> >
> > Peter
> > OSR
> >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@ieee.org
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@quark.co.in
> To unsubscribe send a blank email to %%email.unsub%%
>
> —
> You are currently subscribed to ntdev as: xxxxx@ieee.org
> To unsubscribe send a blank email to %%email.unsub%%
>