Skip to content

List of languages that compile to JS

clyfe edited this page Jan 6, 2011 · 208 revisions

CoffeeScript Family (& Friends)

Family (share genes with CoffeeScript)
  • Coco a CoffeeScript dialect that aims to be more radical and practical, also acts as a test bed for features that get imported in CoffeeScript.
  • Parsec CoffeeScript is CS based on parser combinators. The project's aim is to add static metaprogramming (i.e. macros + syntax extensibility) to Coffee Script (CS), similar to how Metalua adds such features to Lua. The resulting compiler, once merged with the official compiler, should be usable as a drop-in replacement for it.
Friends (philosophically related)
  • Kaffeine Enhanced Syntax for Javascript.
  • Jack Making programming playful.

Ruby

  • HotRuby runs opcode, compiled by YARV on Ruby inside a web browser or in Flash.
  • rb2js converts Ruby to JavaScript.
  • Red writes like Ruby and runs like JavaScript

Python

Lisp, Scheme

Haskell

  • UHC (Utrecht Haskell Compiler) backend converts UHC core to JavaScript, allowing the compiling of Haskell code to JS.
  • YHC (York Haskell Compiler) backend, as above but with YHC core language.

Multitarget

  • Haxe compiles to several platforms (C++, Flash, JS, Neko, PHP).
  • Clue C language compiler to different runtimes (Lua, JS, Perl 5, C, Java, CL).
  • Fantom Evolutionary Object Oriented language emphasizing succinct and effective APIs (JVM, CLR, JS).

Tierless languages (produce both client & server)

  • OPA industrial programming language for high-security distributed web applications.
  • Fun A programming language for realtime webapps - compiles to client-side and server-side JS
  • Ur in the tradition of ML and Haskell.
  • WebSharper lets you compile F# to JS
  • mobl the new language for programming the mobile web.
  • GWT Java to JS.

Others

  • Oia a port of Io to Javascript
  • Fun A programming language for realtime webapps - compiles to client-side and server-side JS
  • NS Basic/App Studio Visual Basic-style BASIC to Javascript compiler. Includes IDE. Targets iOS and Android.
  • Emscripten LLVM to Javascript compiler
  • Objective J shares with JavaScript the same relationship that Objective-C has with the C programming language: that of being a strict, but small, superset.
  • Clamato a Smalltalk dialect that is designed to operate within the JavaScript runtime.
  • Flapjax Event-driven, reactive evaluation.
  • StratifiedJS JavaScript + structured concurrency.
Heavyweight (static types)
  • Script# compiles C# to JS.
  • MileScript a strongly-typed language similar to C# and Java, but which compiles to JS.
  • Mascara enhances JavaScript with powerful features like classes, namespaces and type-checking
Comercial
  • NS Basic/App Studio Visual Basic-style BASIC to Javascript compiler. Includes IDE. Targets iOS and Android.

Clone this wiki locally