Java + Flash
Will it reach a critical bloat mass and suck in everything else you've got installed on the computer?
A version of Flash is being built using Java, two years after Adobe Systems opened the player's closed formats to external inspection. Programmer Joa Ebert has demonstrated a Java build of Flash executing SWF. The player is apparently called JITB, and it was recently unveiled at an event in San Francisco. While there's still …
An excoriating attack on Java - pity you don't seem to know anything about Java, or, it seems, programming in general.
- The pixels array is never initialised, so a NullPointerException will be thrown when you try to use it.
- "new float()" won't even compile, as "float" is a primitive, not a class.
- The (presumably boolean) variable "browserNotLockedSolid" is undeclared, so the loop won't compile.
- If the class is package-private, why does it have a public constructor?
- At least the lines that simply contain braces are error-free.
Now I can run 64bit Linux with a 32bit Linux VM in VirtualBox where I can use DOSBox to run Windows 98se and open Internet Explorer with Java so that I can run Flash in side it!
As Mr Booth pointed out above -- why not just emulate an entire machine in Java?
While I can see that this may make some things "more convenient" running a VM inside another VM is just plain wasteful.
Picking your post at random to reply to, the article states that ActionScript is translated into Java bytecode. So, in principle, most of the time, the Flash code is executing as though it were Java. The Java runtime then has a whole bunch of similar stuff for translating Java to native code so the whole thing is better framed as a caching problem rather than an ongoing translation problem.
The Java language does bound checking on all array accesses. It also checks all use of reference (pointer) values. So, this should result in a more reliable Flash engine with significantly fewer exploitable flaws. If the use of compilation to native code for the Java bytecode can get the speed up the result could be a Flash engine that is reasonably fast (there will be some cost of course) and a lot less exploitable. I would be all for that.
As for the bloat, well, yeah, you're going to get that. :-(
Biting the hand that feeds IT © 1998–2019