JVM Operating System. does it exist?
-
- Posts: 8
- Joined: Fri Feb 26, 2010 10:44 am
JVM Operating System. does it exist?
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.
Re: JVM Operating System. does it exist?
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.
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.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: JVM Operating System. does it exist?
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 ]
[ Project UDI ]
-
- Posts: 8
- Joined: Fri Feb 26, 2010 10:44 am
Re: JVM Operating System. does it exist?
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?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.
- NickJohnson
- Member
- Posts: 1249
- Joined: Tue Mar 24, 2009 8:11 pm
- Location: Sunnyvale, California
Re: JVM Operating System. does it exist?
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.
Re: JVM Operating System. does it exist?
So, they decided to take over the CPU market from another end: first software then cpus.Hangin10 wrote:http://en.wikipedia.org/wiki/Java_processor
Just a thought.
I guess MS is already building cpu for .net
Re: JVM Operating System. does it exist?
Something like Singularity would do it .. it would just compile the Byte code to trusted native code and reject nasties.
-
- Posts: 7
- Joined: Sun Feb 28, 2010 9:38 am
Re: JVM Operating System. does it exist?
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 !
Re: JVM Operating System. does it exist?
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.donkeeland wrote:I see that you didn't know the ARM Jazel or some open source like JOP !
- Owen
- Member
- Posts: 1700
- Joined: Fri Jun 13, 2008 3:21 pm
- Location: Cambridge, United Kingdom
- Contact:
Re: JVM Operating System. does it exist?
JOP is a complete JVM in hardware IIRC.