previous | top | next
Introducing SJS
- "Modular and composable concurrency for webapplications"
- Cross-browser extension to JavaScript language
- Adds small number of new keywords
(suspend, retract), operators (@, <>, |@|, &@&), and special functions (hold, spawn, resume).
- Compatibility:
- Most 'normal' JS programs should work without modifications in SJS
- Can call SJS functions from 'normal' JS and vice versa
- SJS code is compiled to JS code, which is executed with a special runtime
- Compiler prototype implemented in JavaScript
<script type="text/javascript" src="sjs-loader.js"></script>
<script type="text/sjs">
// [ SJS code here ]
// Will be compiled/executed by sjs-loader.js
// after document onload
</script>
High-level concurrency for JS - http://www.croczilla.com/stratified