<p>Are there any good tools to generate JavaScript? I remember in .NET, there was Script# - don't know its status today. </p>

<p>Anyone have experience with any tools? </p>

[{'answer_id': 80309, 'author': 'gizmo', 'author_id': 9396, 'author_profile': 'https://Stackoverflow.com/users/9396', 'pm_score': 0, 'selected': False, 'text': '<p>There is currently a lot of tools to generate JavaScript, like GWT.</p>\n\n<p>But giving you a good answer really depends on what is your originator language and what king of JavaScript functionnality you want to use.</p>\n'}, {'answer_id': 80310, 'author': 'Eric Schoonover', 'author_id': 3957, 'author_profile': 'https://Stackoverflow.com/users/3957', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://projects.nikhilk.net/ScriptSharp/" rel="nofollow noreferrer">Latest version of Script#</a> was posted less than a month ago.  Nikhil continues to actively work on that project and it\'s a very good tool for generating JavaScript code from C#.  It is actively used in a couple of different internal Microsoft projects.</p>\n\n<p>Some of the benefits of Script# are:</p>\n\n<ul>\n<li>Intellisense</li>\n<li>Build errors at compile time</li>\n<li>Refactoring support</li>\n<li>Documentation support</li>\n<li>FxCop code analysis</li>\n<li>MSBuild support</li>\n</ul>\n'}, {'answer_id': 80314, 'author': 'dmazzoni', 'author_id': 7193, 'author_profile': 'https://Stackoverflow.com/users/7193', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://code.google.com/webtoolkit/" rel="nofollow noreferrer">Google Web Toolkit</a> is one option.  Write Java code, debug it with a standard Java debugger, then press the "Compile" button and turn it into highly-optimized JavaScript.  It generates completely separate JavaScript for each major browser family (IE, Firefox, Safari, etc.).</p>\n\n<p>Very mature, very powerful, and easy to embed into an existing site.  One downside is that the UIs it creates are ugly nested tables.</p>\n'}, {'answer_id': 80329, 'author': 'Jason Bunting', 'author_id': 1790, 'author_profile': 'https://Stackoverflow.com/users/1790', 'pm_score': 2, 'selected': False, 'text': '<p>I use my keyboard, a text editor and my brain to generate JavaScript.</p>\n\n<p>:P</p>\n'}, {'answer_id': 80359, 'author': 'BCS', 'author_id': 1343, 'author_profile': 'https://Stackoverflow.com/users/1343', 'pm_score': 0, 'selected': False, 'text': "<p>I've used D templates (think C++ without the pain and you'll be 50% there) to generate a AJAX based Object proxy.</p>\n"}, {'answer_id': 80618, 'author': 'Tyler', 'author_id': 3561, 'author_profile': 'https://Stackoverflow.com/users/3561', 'pm_score': 2, 'selected': False, 'text': '<p>As others have said, <a href="http://code.google.com/webtoolkit/" rel="nofollow noreferrer">GWT</a> is a very good option.  To summarize some good points:</p>\n\n<ul>\n<li><strong>fast, very portable code</strong> using deferred binding; only loads the code that works on the user\'s browser, and only loads functions that are actually called; also, they\'re compressed</li>\n<li><strong>reliability</strong>; very few known issues</li>\n<li><strong>easier debugging</strong> using a Java-based IDE; you can also look directly at un-obfuscated javascript if you want to, but it seems (based on some reports I\'ve seen &amp; personal experience) that you basically never need this</li>\n<li><strong>good library support</strong> including a nice inline javascript interface, the ability to use existing Java libraries, and special support for ajax / rpc calls</li>\n<li><strong>extensible &amp; stylistically flexible</strong>; you can fine-tune all styles with your own css rules, and extend the Widget base with your own Java subclasses</li>\n</ul>\n\n<p>So I humbly disagree with dominic that the results are ugly since it is up to the coder to \'prettify\' the basic functionality with their own css rules and other decorations.  It would be the same mistake to call HTML \'ugly\' - if you don\'t try hard, it isn\'t pretty, but the power and flexibility is in the hands of the coder.</p>\n\n<p>Oh, and it\'s open source, too.</p>\n'}, {'answer_id': 86591, 'author': 'tomdemuyt', 'author_id': 7602, 'author_profile': 'https://Stackoverflow.com/users/7602', 'pm_score': 0, 'selected': False, 'text': '<p>Try <a href="http://haxe.org/" rel="nofollow noreferrer">Haxe</a>. </p>\n\n<p>It can target JavaScript, ActionScript and Neko bytecode. The language is close to Java.</p>\n'}, {'answer_id': 5927317, 'author': 'Maciek Sawicki', 'author_id': 201306, 'author_profile': 'https://Stackoverflow.com/users/201306', 'pm_score': 1, 'selected': False, 'text': '<p>Nice list: <a href="https://github.com/jashkenas/coffee-script/wiki/List-of-languages-that-compile-to-JS" rel="nofollow">https://github.com/jashkenas/coffee-script/wiki/List-of-languages-that-compile-to-JS</a></p>\n'}, {'answer_id': 17924363, 'author': 'OlliP', 'author_id': 1537246, 'author_profile': 'https://Stackoverflow.com/users/1537246', 'pm_score': 0, 'selected': False, 'text': '<p>Kotlin can generate JavaScript out of Kotlin code. For Kotlin see <a href="http://kotlin.jetbrains.org/" rel="nofollow">http://kotlin.jetbrains.org/</a> and also <a href="http://devnet.jetbrains.com/thread/447468?tstart=0" rel="nofollow">http://devnet.jetbrains.com/thread/447468?tstart=0</a></p>\n'}]
['https://Stackoverflow.com/questions/80284', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9087/']