Earlier quoted context omitted.
Wow, that's a blast from the past, from the Palm OS days. Interesting that they're still around.
NS Basic was actually around long before Palm OS, starting with the Newton. (!) We think /App Studio is our best yet.
List of languages that compile to JS
31–40 of 57 posts
Re: List of languages that compile to JS
#32Am I the only one who just plain doesn't understand the value these tools provide? From my perspective, why not just _write_ javascript? Seems ridiculous. I mean, they're fun and all, but no one sets out to do a project of meaning or scale and chooses these tools, do they?
Re: List of languages that compile to JS
#33Earlier quoted context omitted.
The same reason people don't just write in assembly (or more accuratley, C) to write a desktop application very often. Javascript is the assembly language of the web.
That analogy breaks down though. JavaScript is just as much of a high-level language as most of the things that are compiling to it. Most of the time the reason people don't just write in JavaScript is because they don't like it's _style_, rather then with C or assembly, where the goal is to work at a higher level to avoid writing boilerplate and managing things are are unnecessary.
If you can output JS that's fast enough, why not?
Re: List of languages that compile to JS
#34Earlier quoted context omitted.
I'm not sure about all of them but CoffeeScript emits good, portable, fast JS.
Coffeescript I'm familiar with and yes, is very nice indeed. It's some of the others I'd be more concerned about.
Re: List of languages that compile to JS
#35Am I the only one who just plain doesn't understand the value these tools provide? From my perspective, why not just _write_ javascript? Seems ridiculous. I mean, they're fun and all, but no one sets out to do a project of meaning or scale and chooses these tools, do they?
Re: List of languages that compile to JS
#36Earlier quoted context omitted.
Define good in this context. I'm inclined to say that if it doesn't have cross-browser bugs and it's fast, then it's good. The output being readable to human programmers probably shouldn't be a goal when JS is being used as a compiler target.
I'd define good as it takes full advantage of the javascript language and produces & can be used to create structures optimised for javascript, not the language it was written in.
Re: List of languages that compile to JS
#37Am I the only one who just plain doesn't understand the value these tools provide? From my perspective, why not just _write_ javascript? Seems ridiculous. I mean, they're fun and all, but no one sets out to do a project of meaning or scale and chooses these tools, do they?
We certainly have (Parenscript) and it's vital for two reasons: (1) there are cases where we need to run the same code on either the server or the client; (2) we get the full power of Lisp macros. The latter means our source code is much smaller than JS we would have had to write by hand. Somewhat unexpectedly, there's a key efficiency issue here: making heavy use of abstractions in JS would make our code significantly slower. With Parenscript, we can write concise source code with nice abstractions that compiles to low-level, efficient (but still readable) JS. It's one of those rare times you get to have your cake and eat it too (an adage that really doesn't make sense, yet still always comes up #1 in the search results in my brain!)
Re: List of languages that compile to JS
#38I note that doesn't read 'good JS' or 'fast JS'. You can put me in a tutu but I won't be a prima ballerina.
I'm not sure about all of them but CoffeeScript emits good, portable, fast JS.
Re: List of languages that compile to JS
#39How about a list of languages that compile to PHP? haXe is the only mature one I know about.
Re: List of languages that compile to JS
#40How about a list of languages that compile to PHP? haXe is the only mature one I know about.
http://github.com/scriptor/pharen
http://www.mathgladiator.com/projects/kira/
http://sunra.nachtkabarett.com/
http://users.xelent.net/mlewis/tellpdf.php?seid=12457c30afd9...
http://ialexi.com/portfolio/original-works/components/quirk/
And a somewhat related list:
https://github.com/ryantenney/php7 Hacking the PHP compiler and standard libraries in the name of turning it into a not crappy language.
https://github.com/tenderlove/phuby Phuby wraps PHP in a loving embrace. Exposes a PHP runtime in ruby
https://code.google.com/p/japha/ implementation of the Java 1.4.2 library in PHP
https://github.com/lunant/lisphp Lisphp is a Lisp dialect written in PHP
https://code.google.com/p/php-alternative-syntax/ Scala inspired syntax for PHP
https://code.google.com/p/java-php-toolkit/ a cross language compiler than transforms java code to php code deployable on any server supporting PHP >= 5.3
https://github.com/bendemott/pyhp Pyhp is a way to execute PHP Source Code directly within Python Scripts
https://github.com/ramen/phply PHP parser written in Python using PLY
https://github.com/skeltoac/php_app A PHP eval server for Erlang/OTP