Probably. I think there were some ECMAScript-like compilers and server backends. I've never tried it myself. I'm sure there are such backends for ActionScript which belongs to the same famility of languages.
Name:
Anonymous2010-01-22 19:06
I guess. It'd be silly to do so though. JavaScript technology outside the browser is infantile, and even in the browser it's not ideal. No tail-call recursion? Fuck you, powerful companies who decide this kind of stuff.
>>4
Brendan Eich appears to be implementing tail calls for tracemonkey, but it will remain strictly as an optimization until such times as the ECMA guys get a grip.
Name:
Anonymous2010-01-22 19:22
What exactly would a JavaScript compiler do? Compile to C, compile to more javascript?
>>17
Implementation-wise, you fat shit, i.e. a fully JS compiler.
>>13
TCO is improbable in JS. __noSuchMethod__ is useless (just throw an exception), and why not just use this: function Anus () {
this.haxus_the_great = 5;
}
Anus.prototype = {
get hax() { return this.haxus_the_great; },
set hax(v) { this.haxus_the_great = v * 90; },
get anus() { return "This is an anus"; }
};
It works perfectly well with alert (anus.hax); and anus.hax = 100.1;
Those are round during combat. When you're in combat things slow down hugely and the action is tracked in detail at the resolution of rounds. You don't use combat rounds for just wandering around, looking at things, and talking to people.