tag:blogger.com,1999:blog-19002723.post9116867383980965291..comments2023-02-21T00:14:00.325-08:00Comments on Tagneto: On inventing JS module formats and script loadersJameshttp://www.blogger.com/profile/12067100302830600925noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-19002723.post-30436548056168505182011-04-07T11:13:00.992-07:002011-04-07T11:13:00.992-07:00Peter van der Zee: I read the module loaders propo...Peter van der Zee: I read the <a href="http://wiki.ecmascript.org/doku.php?id=harmony:module_loaders" rel="nofollow">module loaders proposal</a> as being able to inject globals scoped to that module loader instance. So not globals as now, but hopefully enough for those that like to do prototype extensions within a module loader instance.<br /><br />I have been giving feedback on the es-discuss list, and it seems promising: I think loader plugins and setting the export value are probably the biggest areas of disconnect, but we'll see how it shakes out. I think the folks working on the harmony module proposal also need some more time to try out what they have so far, but they are aware of my feedback.<br /><br />unscriptable: the module strawman looked a bit more like AMD, at least the module loader syntax, but it has shifted a bit for the elevated harmony proposal. Still, I am hopeful that there will be an easy way to translate. However it is still a proposal that is in exploration mode.James Burkehttps://www.blogger.com/profile/00451746837849321739noreply@blogger.comtag:blogger.com,1999:blog-19002723.post-46988233707417182712011-04-07T04:57:23.042-07:002011-04-07T04:57:23.042-07:00Hey James!
Excellent post!
I had run across a pa...Hey James!<br /><br />Excellent post!<br /><br />I had run across a page somewhere that described / recommended a migration path to ES-Harmony and it looked amazingly like AMD! I am kicking myself for not saving the url.<br /><br />Anyways, I've done some serious research into Javascript modules and AMD is as close as we're going to get to perfection in the reasonable future.<br /><br />Keep up the awesome work.<br /><br />-- Johnunscriptablehttp://unscriptable.com/noreply@blogger.comtag:blogger.com,1999:blog-19002723.post-68377860065670790272011-04-07T01:31:47.542-07:002011-04-07T01:31:47.542-07:00Re: globals are needed. Harmony actually won't...Re: globals are needed. Harmony actually won't have a global scope as we know it right now. So for the ECMA committee, this is not something they will bother with (as it doesn't need to be backwards compt).<br /><br />My suggestion would be to follow the path ECMA is taking. If you don't agree with that path, now is indeed the time to propose a different path. I've seen so many ways come by of doing the module game, I stopped caring one way or the other.<br /><br />But yeah, if you're going to do a module loader, you're best off following the api the spec will use. Otherwise migration tax for your users will only increase.Peter van der Zeehttp://qfox.nlnoreply@blogger.com