David
That stuff was an experiment I did as I coded
Emscripten. I'm still not sure if it was useful
or not ;)
Basically, all it is is the idea that there are
'items' that are processed, and 'processors'
that process them. Each processor processes
some items, then transfers them to other
processors (or marks them as final results).
What's useful in the approach is that it
is easy to debug (get printouts about what
processors run and on what), and could be
scaled to multiple threads very easily. It
also leads to very modular code. But, it's
also clunky sometimes.
> Also, I noted a number of object literals have
> trailing commas. This is not often a problem in practice but I do
> think it's cleaner to omit them. Would a patch that removed them be
> welcome?
>
Sure!
- azakai
David
Thanks for the patch! I'm applying all of it but the
part with adding semicolons inside one-line
lambda functions. I prefer it without semicolons
in that case, they look more like lambdas that way
IMO.
- azakai
On Dec 10, 2010 1:45 AM, "Alon Zakai" <aza...@mozilla.com> wrote:
>
> (Sorry for not getting to this sooner, been very busy...)
>
Not a problem, I know how that goes.
> Thanks for the patch! I'm applying all of it but the
> part with adding semicolons inside one-line
> lambda functions. I prefer it without semicolons
> in that case, they look more like lambdas that way
> IMO.
Sounds reasonable to me. Also, I have been playing with runner.py so that you can source the config params from ~/.emscripten or your environment rather than having to edit the source tree itself as part of my general effort to get all the tests passing after modifying the parser. Is that interesting?
David
Definitely! I've been meaning to do that for
a while, but haven't gotten around to it.
- azakai