I tend to agree that compiling to JavaScript is the future of browser programming. CoffeeScript seems to be a nice language, but I bet there will be many more to come in the next year or two.
> not sure if CoffeeScript is Turing-complete
Wait, why wouldn't it be?Point being, CoffeeScript and other compilers would get a big boost if someone came out with a way to convert existing JS codebases into these new, more readable, more maintainable (as the story goes) representations.
Though I've found doing the conversion manually is a better way to learn CoffeeScript. Plus, it is a point for optimization and refactoring since CoffeeScript allows for doing certain things more easily or in better ways. The automated conversion only does so much.
S-K combinators[1] are a Turing-complete subset of lambda calculus. Here's an implementation of them:
k = (x) ->
(y) -> x
s = (x) ->
(y) ->
(z) -> x(z)(y(z))
1: http://en.wikipedia.org/wiki/SKI_combinator_calculushttp://en.wikipedia.org/wiki/Primitive_recursive_function#Co...