1

Having recently stumbled across improvements to CSS such as Less and Sass, I wondered if there were any similar types of languages which compile into JavaScript. I found CoffeeScript, and, of course, GWT, but are there any others?

I'm not really too fond of CoffeeScript, in my opinion it doesn't really add much to my toolkit. Are there other alternative browser scripting languages which compile into JavaScript?

Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
  • "I'm not really too fond of CoffeeScript, in my opinion it doesn't really add much to my toolkit" What are you looking for in a language ? Do you like GWT then? – Thilo Nov 22 '11 at 07:20
  • Related: http://stackoverflow.com/questions/3895322/are-there-other-languages-than-objective-j-that-get-compiled-to-javascript-in – Thilo Nov 22 '11 at 07:22
  • Script# is a language that gets resembles C#. The output of the tools is to translate your code into Javascript. (Think C# without most of the .NET runtime, but replaced with an API that resembles Javascript runtime. Also some support for declaring external references). http://projects.nikhilk.net/ScriptSharp – selbie Nov 22 '11 at 07:57

2 Answers2

2

You can compile C/C++ code into Javascript using emscripten. So you can compile scripting language interpreter written in C/C++ into JS (for example Ruby/Python/Lua etc.)

Dmitry
  • 2,989
  • 2
  • 24
  • 34
2

List of Languages that compile to JS

Jan
  • 8,011
  • 3
  • 38
  • 60