Kal – a clean JavaScript alternative without callbacks
rzimmerman.github.io
Kal – a clean JavaScript alternative without callbacks
1–10 of 130 posts
Re: Kal – a clean JavaScript alternative without callbacks
#2Re: Kal – a clean JavaScript alternative without callbacks
#3This is a project I've been working on in my spare time for a while now and I've finally decided to throw it out there and get some feedback. Do you think the 'wait for' callback syntax is useful? What big features do you think are missing?
Re: Kal – a clean JavaScript alternative without callbacks
#4Re: Kal – a clean JavaScript alternative without callbacks
#5This is a project I've been working on in my spare time for a while now and I've finally decided to throw it out there and get some feedback. Do you think the 'wait for' callback syntax is useful? What big features do you think are missing?
wait for friends from db.friends.find()
//vs
friends = await db.friends.find()
it's a bit hard to follow despite the natural language.Is this a fork of the CoffeeScript compiler? Will it benefit from upstream changes/features?
Re: Kal – a clean JavaScript alternative without callbacks
#6https://github.com/kriskowal/q solves this today without needing to cross compile. http://koush.com/post/yield-await-v8 will address this natively however unlike Q or Kal you can't start using it today.
Q is a huge, monster library. It's 2x the size of caolan/async, which is already bloated. I personally think it's better to use https://github.com/mbostock/queue or another small, understandable library.
Re: Kal – a clean JavaScript alternative without callbacks
#7Re: Kal – a clean JavaScript alternative without callbacks
#8This is a project I've been working on in my spare time for a while now and I've finally decided to throw it out there and get some feedback. Do you think the 'wait for' callback syntax is useful? What big features do you think are missing?
The async handlers looks great, specially parallel and series iterators. I'm not sold on wait for friends from db.friends.find() //vs friends = await db.friends.find() it's a bit hard to follow despite the natural language. Is this a fork of the CoffeeScript compiler? Will it benefit from upstream changes/features?
I think syntax highlighting helps a lot in this case, so try out the tmbundle in Sublime or TextMate (https://github.com/rzimmerman/kal.tmbundle) if you can.
Re: Kal – a clean JavaScript alternative without callbacks
#9https://github.com/kriskowal/q solves this today without needing to cross compile. http://koush.com/post/yield-await-v8 will address this natively however unlike Q or Kal you can't start using it today.