Kaffeine: extended Javascript(weepy.github.com)
weepy.github.com
Kaffeine: extended Javascript
http://weepy.github.com/kaffeine/
5 comments
A shame about the name - "Kaffeine" is also a fairly popular media player for KDE. The media player has the wikipedia page (with no "_(Software)" disambiguation suffix), and takes seven of the first ten hits on Google.
I wish I'd chosen another name - perhaps it's not too late to change ? Methscript? Zenscript? ^_^
It's not too late, depending on your interest. Maybe something related to Taurine (the active ingredient in RedBull)?
TaurineScript ^_^ - tho doesn't quite roll off the tongue ?!
CokeScript haha
CokeScript haha
Slickscript? Slikscript? Slipskript?
how about HalvaScript :-D
mmmm Halva http://en.wikipedia.org/wiki/Halva
mmmm Halva http://en.wikipedia.org/wiki/Halva
Why use this over coffeescript?
Agreed, CoffeeScript is much more extensive, and in most cases (from what I can see) prettier. Kaffeine piping seems cute though. Maybe the author could join forces with the CoffeeScript project?
Note on CoffeeScript: it took me _one_ .coffee script to get used to the syntax, and I'm never ever gonna write vanilla JS again if possible.
Note on CoffeeScript: it took me _one_ .coffee script to get used to the syntax, and I'm never ever gonna write vanilla JS again if possible.
Don't think that CoffeeScript is much more extensive - Kaffeine has most of the features. Other advantage is that the output Javascript is very similar to the input, unlike Coffee where there's various implied closures and magic T_T
a) does line-for-line output so it's easier to debug
b) can handle normal JavaScript, so it melds with existing code
c) progressive enhancement, adopt features at your own pace
d) the option to shadow variables using var
e) declared function support
AFAIK the creator did work on CoffeeScript for a while but decided to go in a different direction.
There are plenty of different alternative JavaScript dialects out there, from new ones like Kaffeine to ports of popular languages. http://altjs.org/
AFAIK the creator did work on CoffeeScript for a while but decided to go in a different direction.
There are plenty of different alternative JavaScript dialects out there, from new ones like Kaffeine to ports of popular languages. http://altjs.org/
This looks great! It sounds like the async call unwrapping solves the concern from my Ask HN: http://news.ycombinator.com/item?id=2539148.
I like how the object.method! notation for async callbacks works in both assignment rvalues as well as in method invocation parameters.
small typo: "Imlicit"
Also, should be JavaScript not "Javascript." A small quibble perhaps, but capitalising the 's' renders the name properly.
In addition, "It compiles directly into javascript [sic] that is very similar..." Similar to what?
The English could use a little work; just sayin'.
In addition, "It compiles directly into javascript [sic] that is very similar..." Similar to what?
The English could use a little work; just sayin'.
> It compiles directly into javascript that is very similar, readable and line for line equivalent to the input (you can beautify if you like).
that makes sense to me.. the javascript it produces is very similar to the source kaffeine code.
that makes sense to me.. the javascript it produces is very similar to the source kaffeine code.
fair enough -- I'm working on a big face lift for the site - so the language etc will all be much improved.