This link has been bookmarked by 13 people . It was first bookmarked on 26 Oct 2006, by someone privately.
-
19 Nov 11
Chris MaloneyNarrative JavaScript is a way to write continuation-style javascript code. It is an extension to the language, and requires a compilation step.
javascript continuations narrative-javascript blocking asyncronous to-study
-
29 Jul 11
-
10 Sep 10
-
07 Jan 09
Ken WakitaAJAX 開発において、自然なものごとのなりゆきが、非同期通信でばらばらに記述せざるを得なくなる。これを避けるために、JavaScript に非同期通信とその返答を受け取る個所に "yeilding" operator を導入した言語拡張。
基本的には yeilding operator を one-shot continuation を用いて変換すればいいのだろう。JavaScript は continuation を提供しないので、continuation passing style に変換して実行 -
06 May 08
alfred westerveldNarrative JavaScript is a small extension to the JavaScript language that enables blocking capabilities for asynchronous event callbacks. This makes asynchronous code refreshingly readable and comprehensible.
-
In JavaScript your code can't simply wait until an event has fired -- the event must always be handled by a separate, asynchronous event handler. Sometimes this is fine, but it often forces what ought to be a simple sequence of statements into gnarly contortions. Narrative JavaScript provides a yielding operator for functions which block until the firing of an event. The function yields execution until the callback is fired, and then resumes execution at the point where it yielded. This allows you to write hard-to-read asynchronous event handling in simple, linear, readable code.
-
-
22 Jul 07
-
19 Jul 07
bob dolanNarrative JavaScript is a small extension to the JavaScript language that enables blocking capabilities for asynchronous event callbacks. This makes asynchronous code refreshingly readable and comprehensible.
-
Javier PimientaNarrative JavaScript is a small extension to the JavaScript language that enables blocking capabilities for asynchronous event callbacks. This makes asynchronous code refreshingly readable and comprehensible.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.