Since now javascript gets compiled to machine code by browsers. I was wondering which programming language gets better performance between java and javascript. I’m thinking of writing a 3d browser FPS or MMO and am trying to decide between the two.
Also what are thoughts on compatibility? It seems like with java and opengl I could reach a larger audience than using javascript and webgl since support hasn’t been announced by IE.
As @Benoit says, this is a difficult question:
Having said that, here are a couple links to the “Computer Language Benchmarks Games” comparing Java and Javascript implementations:
Note that these are comparing Javascript with interpreted Java. You can fiddle around with the settings to get comparisons with (for example) server-mode Java.