JVM Operating System. does it exist?

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
clwillingham
Posts: 8
Joined: Fri Feb 26, 2010 10:44 am

JVM Operating System. does it exist?

Post by clwillingham »

ever since i learned about java, i've always thaught that it would be an interesting idea to implement the JVM directly onto hardware. i have of course heard of Jnode and JavaOS, but those are pure java. the JVM itself isn't even written in pure java. what i want to know is, is there any implimentation for the JVM on the hardware level. what i mean is, it doesn't matter what the language its written in (C/C++, pascel, intercal... doesn't matter), but if Java runs in a Virtual machine, then you would think you could put it on a Real machine without any virtualization. So does this exist? am i crazy to ask these question? if it doesn't exist, how hard would it be to implement? i know such a thing exists for Squeak smalltalk which runs on a VM so it would make sense that the JVM could exist on its own with a basic kernel and libc framework under it.
Hangin10
Member
Member
Posts: 162
Joined: Wed Feb 27, 2008 12:40 am

Re: JVM Operating System. does it exist?

Post by Hangin10 »

http://en.wikipedia.org/wiki/Java_processor

Is that what you mean? I'm not sure if your paragraph is logically consistent within itself. First you talk about JavaOS, and then say it is pure Java; then you say writing the OS to just be a JVM is ok. Lots of operating systems have been written so that their user executables are high level bytecode.

The JVM can't be written in completely pure Java, as the (likely x86 PC platform) CPU doesn't use Java bytecode as its instruction set; normal Java also has no low level I/O either, so it would be interesting (to me) to see what modifications to the language were used to create JavaOS. If it were to have a kernel under it, then you already have a kernel which runs only the JVM as its only user program.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: JVM Operating System. does it exist?

Post by Love4Boobies »

Typically if a managed OS is running on top of a non-managed CPU in a JVM, I/O primitives and a few other unsafe things are implemented in native code but can be called by the managed code.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
clwillingham
Posts: 8
Joined: Fri Feb 26, 2010 10:44 am

Re: JVM Operating System. does it exist?

Post by clwillingham »

Hangin10 wrote:http://en.wikipedia.org/wiki/Java_processor

Is that what you mean? I'm not sure if your paragraph is logically consistent within itself. First you talk about JavaOS, and then say it is pure Java; then you say writing the OS to just be a JVM is ok. Lots of operating systems have been written so that their user executables are high level bytecode.

The JVM can't be written in completely pure Java, as the (likely x86 PC platform) CPU doesn't use Java bytecode as its instruction set; normal Java also has no low level I/O either, so it would be interesting (to me) to see what modifications to the language were used to create JavaOS. If it were to have a kernel under it, then you already have a kernel which runs only the JVM as its only user program.
i suppose your right. i didn't explain my idea that well. what i meant was basically the java processor. a JVM with a real machine replacing the VM. people are always talking about the JVM but if its a VM then why not just make an JM?
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: JVM Operating System. does it exist?

Post by NickJohnson »

The main issue is that the JVM is quite complex, and a real processor that would emulate it would be hard to build. Garbage collection would be quite tricky, not to mention that it would be crazy to write OS code using it (no pointer arithmetic), so all of the devices would have to have drivers in the processor/JVM thing or have object oriented interfaces, which would make devices cost a zillion dollars because of the full microprocessors needed inside each of them. The JVM is just not designed to be a real machine.
geppyfx
Member
Member
Posts: 87
Joined: Tue Apr 28, 2009 4:58 pm

Re: JVM Operating System. does it exist?

Post by geppyfx »

So, they decided to take over the CPU market from another end: first software then cpus.
Just a thought.

I guess MS is already building cpu for .net
Benk
Member
Member
Posts: 62
Joined: Thu Apr 30, 2009 6:08 am

Re: JVM Operating System. does it exist?

Post by Benk »

Something like Singularity would do it .. it would just compile the Byte code to trusted native code and reject nasties.
donkeeland
Posts: 7
Joined: Sun Feb 28, 2010 9:38 am

Re: JVM Operating System. does it exist?

Post by donkeeland »

NickJohnson wrote:The main issue is that the JVM is quite complex, and a real processor that would emulate it would be hard to build. Garbage collection would be quite tricky, not to mention that it would be crazy to write OS code using it (no pointer arithmetic), so all of the devices would have to have drivers in the processor/JVM thing or have object oriented interfaces, which would make devices cost a zillion dollars because of the full microprocessors needed inside each of them. The JVM is just not designed to be a real machine.

I see that you didn't know the ARM Jazel or some open source like JOP !
sprints
Posts: 10
Joined: Wed Jun 02, 2010 6:59 pm

Re: JVM Operating System. does it exist?

Post by sprints »

Check out JX.

its essentially a java os
Selenic
Member
Member
Posts: 123
Joined: Sat Jan 23, 2010 2:56 pm

Re: JVM Operating System. does it exist?

Post by Selenic »

donkeeland wrote:I see that you didn't know the ARM Jazel or some open source like JOP !
Partial hardware emulation plus software help != full hardware emulation. Jazelle, for example, still needs to run under a JVM process to handle all of the tricky stuff, it's just the simpler instructions which get emulated directly (the rest are treated as calls to handlers); sure, you could write a fair bit of the OS in Java and use this, but you'd need a near-full native-code JVM and at least part of each driver would have to be native too.
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: JVM Operating System. does it exist?

Post by Owen »

JOP is a complete JVM in hardware IIRC.
Post Reply