News for hackers. Stuff that matters.
Re:Kaffeine: extended Javascript by repsilat on Thursday May 12, 2011 @06:28AM (#2540061)
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.
Re:Kaffeine: extended Javascript by weepy on Thursday May 12, 2011 @11:38AM (#2540920)
I wish I'd chosen another name - perhaps it's not too late to change ? Methscript? Zenscript? ^_^
Re:Kaffeine: extended Javascript by 18pfsmt on Thursday May 12, 2011 @12:00PM (#2541029)
It's not too late, depending on your interest. Maybe something related to Taurine (the active ingredient in RedBull)?
Re:Kaffeine: extended Javascript by nibnab on Thursday May 12, 2011 @01:07PM (#2541337)
TaurineScript ^_^ - tho doesn't quite roll off the tongue ?!

CokeScript haha

Re:Kaffeine: extended Javascript by 18pfsmt on Thursday May 12, 2011 @02:18PM (#2541684)
Slickscript? Slikscript? Slipskript?
Re:Kaffeine: extended Javascript by nibnab on Friday May 13, 2011 @07:44AM (#2544287)
how about HalvaScript :-D

mmmm Halva http://en.wikipedia.org/wiki/Halva

Re:Kaffeine: extended Javascript by vnorby on Thursday May 12, 2011 @04:40AM (#2539848)
Why use this over coffeescript?
Re:Kaffeine: extended Javascript by BasDirks on Thursday May 12, 2011 @05:32AM (#2539937)
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.

Re:Kaffeine: extended Javascript by jashkenas on Thursday May 12, 2011 @08:35AM (#2540325)
weepy 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.
Re:Kaffeine: extended Javascript by nibnab on Thursday May 12, 2011 @01:09PM (#2541347)
I've often wondered what 'little' in the CoffeeScript tag line meant ? Do you mean that it's terse ?
Re:Kaffeine: extended Javascript by weepy on Thursday May 12, 2011 @06:22AM (#2540051)
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
Re:Kaffeine: extended Javascript by BasDirks on Thursday May 12, 2011 @07:31AM (#2540179)
I like the fact that CoffeeScript does some magic for me. I know exactly 'what' the magic does, and I don't mind CoffeeScript taking care of it for me.
Re:Kaffeine: extended Javascript by alnayyir on Thursday May 12, 2011 @01:02PM (#2541318)
Ruby dev eh? ;)
Re:Kaffeine: extended Javascript by faceplant on Thursday May 12, 2011 @07:03AM (#2540124)
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/

Re:Kaffeine: extended Javascript by michael_miller on Thursday May 12, 2011 @04:00AM (#2539778)
This looks great! It sounds like the async call unwrapping solves the concern from my Ask HN: http://news.ycombinator.com/item?id=2539148.
Re:Kaffeine: extended Javascript by jasonwatkinspdx on Thursday May 12, 2011 @05:39AM (#2539961)
I like how the object.method! notation for async callbacks works in both assignment rvalues as well as in method invocation parameters.
Re:Kaffeine: extended Javascript by nddrylliog on Thursday May 12, 2011 @04:12AM (#2539795)
small typo: "Imlicit"
Re:Kaffeine: extended Javascript by wyclif on Thursday May 12, 2011 @04:23AM (#2539811)
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'.

Re:Kaffeine: extended Javascript by exit on Thursday May 12, 2011 @06:20AM (#2540046)
> 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.

Re:Kaffeine: extended Javascript by weepy on Thursday May 12, 2011 @11:46AM (#2540957)
fair enough -- I'm working on a big face lift for the site - so the language etc will all be much improved.