SKITSANOS FOR RIA

Skitsanos

Wednesday, December 22, 2010

No Callbacks Required: StratifiedJS Returns Sequential Programming to JavaScript

JavaScript is fundamentally single threaded, no parallel threads in sight. Asynchronous programming is necessary for any task that might block; JavaScript programming usually involves creating and passing around a lot of callbacks, essentially forcing the developer to manually translate sequential code into continuation passing style.

One solution was introduced at the Emerging Languages Camp at OSCON 2010: StratifiedJS. The language is essentially JavaScript with a few more keywords and concurrency constructs which permit the developer to write sequential code. Yet it all still runs on normal JavaScript engines that come in todays browsers.

How's that possible? InfoQ talked to Alexander Fritze, CTO of Onilabs, to find out. Onilabs is behind Apollo, a free and MIT licensed, browser based implementation of StratifiedJS.

More at http://www.infoq.com/articles/stratifiedjs

0 comments:

Webware development dedicated blog by Skitsanos R&D Labs. ASP.NET, XML, RIA, Adobe Flex, ActionScript 3, AIR, AJAX, Web 2.0, Backbase, CGI development with RealBasic and other web development issues.
News
Downloads