From: Joel Peter William Pitt (extropy@paradise.net.nz)
Date: Mon Jun 14 2004 - 15:21:50 MDT
Ben Goertzel wrote:
>Brian: He's right though. The JVM is a C++ program, which may have
>pointer errors and the like. Windows, the OS within which the JVM is
>sometimes run, is also a C++ program; so is Linux.
>
>Potentially, an AGI written in Java could figure out how to exploit bugs
>in the JVM itself, or bugs in Windows or Linux, and thus escape the
>"Java sandbox."
>
>
Sorry to nitpick Ben, but:
Linux is programmed in C, and I'm not specifically sure about
what the Sun JVM is programmed in but there are several JVMs
which are programmed using Java and compiled straight to
machine code.
Also Brian wrote:
> "...Java is compiled into "bytecode"..."
Traditionally this was the case, but now just-in-time compilers
tend to take the bytecode and "compile" it to native machine
code. This is as opposed to the JVM which executes one
bytecode instruction at a time.
Also there are Java compilers that compile directly to machine
code, although this obviously defeats some of the benefits
of using Java.
Joel
This archive was generated by hypermail 2.1.5 : Wed Jul 17 2013 - 04:00:47 MDT