incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian>
Subject Re: Unified phonegap javascript layer incorperating modules / plugins
Date Sat, 19 Nov 2011 05:35:50 GMT
As a quick update, I pinged brendan and harmony separates the
definition of modules (into a commonjs inspired syntax) and the
loading of modules into a new api called module loader api. So,
basically, these things are not mutually exclusive.

Which is actually how Gord did things ... perhaps our loader can be
AMD satisfying the technical requirements outlined here and the
definition can be in the CommonJS style. For those doing browser dev
or that want worse performance they can use the Loader. For those
building phonegap apps (into a phone) the compiler does the job.

There are a bunch of google-able articles about how to do this (really
good one from sitepen).

On Sat, Nov 19, 2011 at 6:28 AM, Brian LeRoux <> wrote:
>>> - better performance
>>> - better aesthetics
>>> - closer to the future
>> "closer to the future" is factually incorrect. The other two are unqualified
>> assertions.
> Wow, nothing like nuanced debate on semantics pretending to be
> academic. You say I don't qualify my statements but provide no
> evidence of your own. Look forward to seeing the code. I agree its
> *possible* to write something that has less footprint, and said as
> much, but the semantics of AMD are read/writ in a more involved
> fashion for the end developer than a simple exports object.
> As to the Harmony compat, that was from a brendan eich talk (that we
> both attended btw). It was a goal which maybe changed but thats not
> the point. The syntax for CommonJS is closer than the ceremony we see
> in AMD which was why I said there will be changes. I suppose that
> wasn't clear enough.
> Anyhow, none of this matters until we see the proposal in code form.
> Right now we're debating aesthetics and developer ergonomics which
> always sounds abjectly religious.

View raw message