Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What compilers target JavaScript runtimes?

I am using GWT, which includes a Java-to-JavaScript compiler. Before this project, targeting the JavaScript runtime from a different language hadn't occurred to me, and I'm enjoying the GWT experience.

A quick search revealed Java2Script as another Java-to-JavaScript solution. Are there any other mature compilers that target the JavaScript runtime?

like image 416
Matthew Willis Avatar asked Jun 10 '09 14:06

Matthew Willis


People also ask

What compiler does JavaScript use?

In contrast, JavaScript has no compilation step. Instead, an interpreter in the browser reads over the JavaScript code, interprets each line, and runs it. More modern browsers use a technology known as Just-In-Time (JIT) compilation, which compiles JavaScript to executable bytecode just as it is about to run.

Is JavaScript compiled or interpreted?

JavaScript (often shortened to JS) is a lightweight, interpreted, object-oriented language with first-class functions, and is best known as the scripting language for Web pages, but it's used in many non-browser environments as well.


2 Answers

List of languages that compile to JS

like image 65
clyfe Avatar answered Oct 04 '22 04:10

clyfe


You also have Haxe. It features static, structural, strong and inferred typing; algebraic data types; lambda expressions with closure support; a module system and can compile not only to JavaScript but also Flash, C++, Neko, PHP. Java support is under development too.

like image 37
Fuse Avatar answered Oct 04 '22 06:10

Fuse