Well, it supposed to work in all browsers, and it supposed to be
optimizable by all optimizers including uglifyjs, closure compiler and yui
compressor (that's why I'm using "escaped" property names sometimes).


On Tue, Oct 2, 2012 at 11:03 PM, Rick Waldron <waldron.r...@gmail.com>wrote:

> Fedor,
>
> Is xjst meant to run in a browser at all? I ask because I see code where
> objects with a property named "default" are accessing like...
>
> obj["default"]
>
> which isn't necessary in runtimes that correctly implement ES5.1.
> "default" is a reserved word, but property names are IdentifierNames, not
> Identifiers, so "default" is valid when used like...
>
> obj.default;
>
> eg.
>
> $ node
> > var o = {default: "hi!"}
> undefined
> > o.default
> 'hi!'
> >
>
>
> Anyway, no big deal, I just happened to notice it and figured I'd mention.
>
> Rick
>
>
> On Tue, Oct 2, 2012 at 2:56 PM, Fedor Indutny <fe...@indutny.com> wrote:
>
>> I'll write a blog post about it on http://blog.indutny.com/ soon,
>> describing everything in details.
>>
>>
>> On Tue, Oct 2, 2012 at 10:49 PM, Fedor Indutny <fe...@indutny.com> wrote:
>>
>>> No, we ain't using this at nodejitsu.
>>>
>>> I'm coauthor of xjst module, which is compiling templates to a
>>> highly-recursive javascript code. However some javascript VMs like
>>> Spidermonkey doesn't support that recursion well, and here comes spoon! It
>>> can translate any recursive calls into fake asynchronous ones. And then
>>> using tricky dispatch function I can run those calls one-by-one without any
>>> recursion at all:
>>> https://github.com/veged/xjst/blob/master/lib/xjst/utils.js#L68
>>>
>>>
>>>
>>> On Tue, Oct 2, 2012 at 10:43 PM, Ted Young <t...@radicaldesigns.org>wrote:
>>>
>>>> Just wondering, what were your use cases when writing spoon? Was it to
>>>> solve production problems you were facing? Are you using it at nodejitsu?
>>>>
>>>> Cheers,
>>>>   Ted
>>>>
>>>> On Oct 1, 2012, at 11:28 PM, Fedor Indutny <fe...@indutny.com> wrote:
>>>>
>>>> "I'm just doing my job".
>>>>
>>>>
>>>> On Tue, Oct 2, 2012 at 1:55 AM, Mark Hahn <m...@hahnca.com> wrote:
>>>>
>>>>> @Marcel just meant that you have started an infinite discussion
>>>>> thread.  He wasn't insulting your module.
>>>>>
>>>>>
>>>>> On Mon, Oct 1, 2012 at 2:42 PM, Marcel Laverdet 
>>>>> <mar...@laverdet.com>wrote:
>>>>>
>>>>>> You have no idea what you've done.
>>>>>>
>>>>>> On Mon, Oct 1, 2012 at 2:11 PM, Fedor Indutny <fe...@indutny.com>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 nodejs@googlegroups.com
>>>>>>> To unsubscribe from this group, send email to
>>>>>>> nodejs+unsubscr...@googlegroups.com
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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 nodejs@googlegroups.com
>>>>>> To unsubscribe from this group, send email to
>>>>>> nodejs+unsubscr...@googlegroups.com
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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 nodejs@googlegroups.com
>>>>> To unsubscribe from this group, send email to
>>>>> nodejs+unsubscr...@googlegroups.com
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>>
>>>>
>>>>
>>>> --
>>>> 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 nodejs@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> nodejs+unsubscr...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>
>>>>
>>>>  --
>>>> 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 nodejs@googlegroups.com
>>>> To unsubscribe from this group, send email to
>>>> nodejs+unsubscr...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>
>>>
>>>
>>  --
>> 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 nodejs@googlegroups.com
>> To unsubscribe from this group, send email to
>> nodejs+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>  --
> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to