NestedVM

I just saw ‘NestedVM’ mentioned in an announcement for an app I keep track
of (Atari800, the Atari 8-bit emulator, which has ports to various backends,
including SDL).

I just glanced over here: http://nestedvm.ibex.org/

NestedVM provides binary translation for Java Bytecode. This is done
by having GCC compile to a MIPS binary which is then translated to a
Java class file. Hence any application written in C, C++, Fortran, or
any other language supported by GCC can be run in 100% pure Java with
no source changes.

So wait a minute… does this mean, with the proper application of
brainpower, that someone could build a Java Applet version of SDL and
Tux Paint?–
-bill!
“Tux Paint” - free children’s drawing software for Windows / Mac OS X / Linux!
Download it today! http://www.tuxpaint.org/

Hello !

I just glanced over here: http://nestedvm.ibex.org/

NestedVM provides binary translation for Java Bytecode. This is done
by having GCC compile to a MIPS binary which is then translated to a
Java class file. Hence any application written in C, C++, Fortran, or
any other language supported by GCC can be run in 100% pure Java with
no source changes.

So wait a minute… does this mean, with the proper application of
brainpower, that someone could build a Java Applet version of SDL and
Tux Paint?

Boy, this sounds great. Not only the Java Applet version
of SDL and Tux Paint, but also the other possibilies :slight_smile:

CU

I just saw ‘NestedVM’ mentioned in an announcement for an app I keep track
of (Atari800, the Atari 8-bit emulator, which has ports to various
backends,
including SDL).

I just glanced over here: http://nestedvm.ibex.org/

NestedVM provides binary translation for Java Bytecode. This is done
by having GCC compile to a MIPS binary which is then translated to a
Java class file. Hence any application written in C, C++, Fortran, or
any other language supported by GCC can be run in 100% pure Java with
no source changes.

So wait a minute… does this mean, with the proper application of
brainpower, that someone could build a Java Applet version of SDL and
Tux Paint?

I do believe so. And then… The code that started as a MIPS binary that
was converted to Java byte codes will be compiled to native x86 machine code
by the JIT or hot spot compiler used to implement the Java VM. So, if you
cross compile on an x86 your code will wind up running as native x86 code.

Bob PendletonOn Fri, Mar 27, 2009 at 1:23 PM, Bill Kendrick wrote:


-bill!
“Tux Paint” - free children’s drawing software for Windows / Mac OS X /
Linux!
Download it today! http://www.tuxpaint.org/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


±----------------------------------------------------------

Hello !

I just glanced over here: http://nestedvm.ibex.org/

NestedVM provides binary translation for Java Bytecode. This is done
by having GCC compile to a MIPS binary which is then translated to a
Java class file. Hence any application written in C, C++, Fortran, or
any other language supported by GCC can be run in 100% pure Java with
no source changes.

So wait a minute… does this mean, with the proper application of
brainpower, that someone could build a Java Applet version of SDL and
Tux Paint?

Boy, this sounds great. Not only the Java Applet version
of SDL and Tux Paint, but also the other possibilies :slight_smile:

I doubt you could get it to compile from the current codebase, and if you
could, it wouldn’t be anything useful. Under the hood, SDL is a mess of
conditional defines that connect the public interface with various platform-
specific API calls. Java prefers to abstract over all the platform-specific
stuff with a virtual machine in order to make its apps portable.

If you want SDL on Java, someone’s going to have to port SDL to
the Java Virtual Machine, just as if it were any other new platform.>----- Original Message ----

From: Torsten Giebl
Subject: Re: [SDL] NestedVM

I believe SDL is already available to Java using JNI. Suggesting that
one might use software transformation techniques to port SDL to Java
belies the fact that what SDL does for you is provide a programming
abstraction for platform-dependent operations. There’s a number of
things wrong with that…

Also, the Java Applet spec has some problems, or so I have heard.
There are other VM profiles for Java code, though.On Fri, Mar 27, 2009 at 2:23 PM, Bill Kendrick wrote:

?NestedVM provides binary translation for Java Bytecode. This is done
?by having GCC compile to a MIPS binary which is then translated to a
?Java class file. Hence any application written in C, C++, Fortran, or
?any other language supported by GCC can be run in 100% pure Java with
?no source changes.

So wait a minute… does this mean, with the proper application of
brainpower, that someone could build a Java Applet version of SDL and
Tux Paint?


http://codebad.com/