Category Archives: Uncategorized

Asynchronous JavaScript with Generators – An Experiment

I have recently added a third blade to my little asynchronous programming swiss army knife: the generator blade. Looks sharp! Here are some details. Generators Generators are JavaScript’s flavor of coroutines. They solve one of computer science’s most important problems: … Continue reading

Posted in Asynchronous JavaScript, Uncategorized | 5 Comments

Node.js: Awesome Runtime and New Age JavaScript Gospel

I am a big fan of node.js but I have a big problem with the core team. No need to hide it and pretend everything is OK. The fibers vs. callback war erupted again this week on the mailing list, … Continue reading

Posted in Uncategorized | 42 Comments

Fibers and Threads in node.js – what for?

I like node.js, and I’m not the only one, obviously! I like it primarily for two things: it is simple and it is very fast. I already said it many times but one more won’t hurt. Before working with node, … Continue reading

Posted in Asynchronous JavaScript, Uncategorized | 58 Comments

Yield – Resume vs. Asynchronous Callbacks – An Equivalence

I introduced streamline.js about four months ago and I never took the time to explain the theory (if it can be called a theory) behind it. I’ll try to do it in this post. The material that follows is a … Continue reading

Posted in Asynchronous JavaScript, Uncategorized | 19 Comments

Asynchronous episode 3 – Adventures in event-land

From callbacks to events This is my third post on asynchronous Javascript. In the first one, I explored callbacks and I explained how I ended up creating streamline.js, a tool that simplifies programming in callback-land. In the second one, I … Continue reading

Posted in Asynchronous JavaScript, Uncategorized | 3 Comments