Changes between Initial Version and Version 7 of Ticket #9349


Ignore:
Timestamp:
Sep 10, 2009, 2:09:50 PM (10 years ago)
Author:
Adam Peller
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9349

    • Property Cc Eugene Lazutkin added
    • Property Component changed from General to Core
    • Property Type changed from defect to enhancement
    • Property Summary changed from Support server-js environments to Support commonjs environments
  • Ticket #9349 – Description

    initial v7  
    1 I'm experimenting with using Dojo in [http://ajaxian.com/archives/jack-a-port-of-rack-to-javascript Jack-JS], a Rhino-based app server that lets you write your server apps in !JavaScript.  It supports a community driven effort to standardize JS APIs for servers called [https://wiki.mozilla.org/ServerJS serverjs]
     1I'm experimenting with using Dojo in [http://ajaxian.com/archives/jack-a-port-of-rack-to-javascript Jack-JS], a Rhino-based app server that lets you write your server apps in !JavaScript.  It supports a community driven effort to standardize JS APIs for servers called [http://wiki.commonjs.org/ CommonJS] (formerly called serverjs)
    22
    3 ServerJS has a module loader that is somewhat like Dojo's own.  The two don't seem to map to each other, but I think they can peacefully co-exist.  A few tweaks are needed to the bootstrap to support the 'exports' free variable used to anchor references, such as the Dojo object itself.  Once we're bootstrapped, we can have a special serverjs hostenv.  For the purposes of getting things running on Jack, I just based it on Rhino, but hopefully we can build it on [https://wiki.mozilla.org/ServerJS/Modules/SecurableModules SecurableModules] such that the hostenv will run in any SSJS environment.
     3CommonJS has a module loader that is somewhat like Dojo's own.  The two don't seem to map to each other, but I think they can peacefully co-exist.  A few tweaks are needed to the bootstrap to support the 'exports' free variable used to anchor references, such as the Dojo object itself.  Once we're bootstrapped, we can have a special serverjs hostenv.  For the purposes of getting things running on Jack, I just based it on Rhino, but hopefully we can build it on [https://wiki.mozilla.org/ServerJS/Modules/SecurableModules SecurableModules] such that the hostenv will run in any SSJS environment.
    44
    55see also #7757