4 ms·
Kaffeine: extended Javascript
- michael_miller 15y agoThis looks great! It sounds like the async call unwrapping solves the concern from my Ask HN: http://news.ycombinator.com/item?id=2539148 http://news.ycombinator.com/item?id=2539148.
- nddrylliog 15y agosmall typo: "Imlicit"
- wyclif 15y agoAlso, 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'.
- exit 15y ago> 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.
- weepy 15y agofair enough -- I'm working on a big face lift for the site - so the language etc will all be much improved.
- vnorby 15y agoWhy use this over coffeescript?
- BasDirks 15y agoAgreed, 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.
- weepy 15y agoDon'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
- jashkenas 15y agoweepy is actually a contributor to CoffeeScript from the early days. Kaffeine represents his take on what a little language that targets JS should look like.
- nibnab 15y agoI've often wondered what 'little' in the CoffeeScript tag line meant ? Do you mean that it's terse ?
- faceplant 15y agoa) 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/ http://altjs.org/
- jasonwatkinspdx 15y agoI like how the object.method! notation for async callbacks works in both assignment rvalues as well as in method invocation parameters.
- repsilat 15y agoA 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.