Are there other languages apart from javascript that browsers can interpret and execute. I'm happy for browser specific ones as well.
Any answers welcomed
asked Dec 14, 2010 at 5:48
gcameo
3051 gold badge3 silver badges6 bronze badges
-
Does XSLT count as a language?Thilo– Thilo2010年12月14日 06:03:00 +00:00Commented Dec 14, 2010 at 6:03
2 Answers 2
- Every language for which an interpreter written in JavaScript exists: Brainfuck, Ruby (more precisely: YARV bytecode), Scheme, Clamato, many others.
- Every language for which a compiler exists that compiles the language to JavaScript: C, Java, JVML bytecode, CIL bytecode, Ruby, Clojure, Scala, Objective-J, Haxe, Ur, Links, Flapjax, Caja, many others.
- Every language for which a compiler exists that compiles the language to one of the languages listed above, since you can then either interpret the output of the compiler in JavaScript, or compile it again to JavaScript. (E.g. you can compile JVML bytecode to JavaScript and you can compile Ruby to JVML bytecode, ergo you can compile Ruby to JavaScript.)
- Every language for which an interpreter exists as a browser plugin: JVML bytecode (Java Applets), CIL bytecode (Silverlight), ActionScript bytecode (Flash), C, many others.
- Every language which can be executed by the browser directly: VBScript (in Internet Explorer), XSLT (several browsers), x86/AMD64 machine code (Chrome Native Client), many others.
See also:
Gama11
34.7k9 gold badges92 silver badges107 bronze badges
answered Dec 14, 2010 at 6:32
Jörg W Mittag
371k79 gold badges457 silver badges666 bronze badges
Sign up to request clarification or add additional context in comments.
2 Comments
gcameo
Thanks for this. Very comprehensive
Anderson Green
Most browsers now also support WebAssembly in addition to JavaScript.
VBScript in Internet Explorer, but nobody uses that. At least in the past (and maybe still), any Windows Script Host language would be executed by Internet Explorer.
As far as other web browsers... nothin' but Javascript, as far as I know.
answered Dec 14, 2010 at 5:52
Robert
6,5603 gold badges26 silver badges26 bronze badges
1 Comment
Thilo
And then there is plugins, like ActionScript through Flash, and native code through ActiveX, and Java through applets, but I guess all those don't qualify, because it is not the browser itself executing them.