The first rule of building Jscex is "keep everything for JavaScript
programmers" or "Jscex is JavaScript". People write normal JavaScript code
in normal JavaScript editors. Jscex doesn't need any extra compilation
process before running in JavaScript engines. The JIT compiler generates
codes as codes running so there's no change to the execution behavior -
suitable for developing environment. For example, people just fix the bug
and refresh the page (or restart the node process) and the change takes
effect immediately.
Besides, Jscex is not just for async programming. The compiler has general
rules to convert a function to a monadic one and the rest work is just done
by "library". We build "async" library for async programming, we can also
build a "seq" library which brings "lazy sequence" generator ("yield" in
JavaScript 1.7, python or C#).
Wish it helps. :)
Jeffrey Zhao
Blog: http://blog.zhaojie.me/
Twitter: @jeffz_cn (Chinese) | @jeffz_en (English)
--
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en.
The main goal of the project is to simplify the async programming.
--
To unsubscribe from this group, send email to mailto:nodejs%2Bunsu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
Thank you.
//example with mongodb
db.open();//{
var err, books = db.collection('books');//{
var err, cursor = books.find();//{
var err, items = cursor.toArray();//{
doSomething(items);
db.open(function(){
db.collection('books', function(err, books){
books.find(function(err, cursor){
cursor.toArray(function(err, items){
doSomething(items);
});});});});
Please contact me if you find anything unclear.
Jeffrey Zhao
Blog: http://blog.zhaojie.me/
Twitter: @jeffz_cn (Chinese) | @jeffz_cn (English)
-----原始邮件-----
From: Nicolas Chambrier
Sent: Monday, May 09, 2011 3:02 PM
To: nod...@googlegroups.com
Subject: Re: [nodejs] Re: Jscex: makes async programming easier than ever
I stopped at "eval()" :/ before I posted this message, I thought I should
read more then saw this blocking "$await", it sounds like a fail to me,
sorry :/
--
Just curious how you pronounce this project name? Every time I read it I hear "js sex" or "j sex". Was that on purpose, indicating it's a sexy project? :)