s/CGG/CFG/

On Wednesday, October 3, 2012 10:14:03 PM UTC+2, Bruno Jouhier wrote:
>
> Hi Fedor,
>
> This looks really promising. 
>
> I tried to integrate it as an alternate transformation engine for 
> streamline (a fourth one) and the first results are encouraging: I got the 
> first diskUsage example running.
>
> I had to make a few changes to align spoon on the node.js callback format 
> (error as first callback parameter + testing for err in callback and 
> propagating it through __$callback).
>
> My unit test suite is not running yet because of some unimplemented 
> features: switch, try/finally, labelled statement. But I like the approach. 
> The CGG intermediate representation is cool and can probably produce more 
> efficent code than my pattern based approach.
>
> My changes are here: 
> https://github.com/bjouhier/spoon/commit/83910ee1a4b4036fa1ca38b4f19736b136ace513
>
> Bruno
>
> On Monday, October 1, 2012 9:11:57 PM UTC+2, Fedor Indutny wrote:
>>
>> Hey people,
>>
>> Let me introduce you The Spoon: https://github.com/indutny/spoon
>>
>> It's a JavaScript to CFG (Control-Flow Graph) transpiler and additionally 
>> a CPS (Continuation Passing Style) transpiler too.
>>
>> Basically, it lets you to rewrite code like this:
>>
>> var data = 'prefix: ' + fs.read('file')
>>
>>  To this:
>>
>> var data;
>> fs.read('file', function(err, result) {
>>   data = 'prefix: ' + result;
>> });
>>
>> Please check the readme, if you're interested.
>>
>> Cheers,
>> Fedor.
>>
>>  

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to