7

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
1
  • Does XSLT count as a language? Commented Dec 14, 2010 at 6:03

2 Answers 2

9
  • 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
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for this. Very comprehensive
Most browsers now also support WebAssembly in addition to JavaScript.
1

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

1 Comment

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.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.