Re: No more modes?

2010-10-18 Thread Dmitry A. Soshnikov
#means Prior to Means 3(I), there is Goal 4 (http://wiki.ecmascript.org/doku.php?id=harmony:harmony#goals): # Keep versioning as simple and linear as possible. We don't have concrete plans for a use strict in Harmony to opt into a stricter than ES5 strict mode. The no more modes plea is good

Re: No more modes?

2010-10-18 Thread Dmitry A. Soshnikov
): # Keep versioning as simple and linear as possible. We don't have concrete plans for a use strict in Harmony to opt into a stricter than ES5 strict mode. The no more modes plea is good as far as it goes (just not absolute), so I hope we do not add any such Harmony-strict-mode. We're really

Re: No more modes?

2010-10-18 Thread Mark S. Miller
in Harmony to opt into a stricter than ES5 strict mode. The no more modes plea is good as far as it goes (just not absolute), so I hope we do not add any such Harmony-strict-mode. We're really trying not to make an N-dimensional version/mode/pragma lattice. But, again, ES5 makes incompatible

Re: No more modes?

2010-10-18 Thread Dmitry A. Soshnikov
plans for a use strict in Harmony to opt into a stricter than ES5 strict mode. The no more modes plea is good as far as it goes (just not absolute), so I hope we do not add any such Harmony-strict-mode. We're really trying not to make an N-dimensional version/mode/pragma lattice

Re: No more modes?

2010-10-18 Thread Mark S. Miller
strict mode. The no more modes plea is good as far as it goes (just not absolute), so I hope we do not add any such Harmony-strict-mode. We're really trying not to make an N-dimensional version/mode/pragma lattice. But, again, ES5 makes incompatible (slight) changes to the de-facto standard

Re: No more modes?

2010-10-18 Thread Dmitry A. Soshnikov
for a use strict in Harmony to opt into a stricter than ES5 strict mode. The no more modes plea is good as far as it goes (just not absolute), so I hope we do not add any such Harmony-strict-mode. We're really trying not to make an N-dimensional version/mode/pragma lattice. But, again

Re: No more modes?

2010-10-15 Thread Brendan Eich
Prior to Means 3(I), there is Goal 4 (http://wiki.ecmascript.org/doku.php?id=harmony:harmony#goals): Keep versioning as simple and linear as possible. We don't have concrete plans for a use strict in Harmony to opt into a stricter than ES5 strict mode. The no more modes plea is good as far

Re: Extensions in ES5 strict mode (was: No more modes?)

2010-10-14 Thread Erik Corry
My thoughts for what they are worth: The semantics for const in Harmony are likely to be silently different in Harmony from the semantics it has in non-strict current implementations. (In particular the current const is hoisted to the surrounding function, whereas the one in Harmony won't, so

Re: Extensions in ES5 strict mode (was: No more modes?)

2010-10-14 Thread Brendan Eich
On Oct 13, 2010, at 11:56 PM, Erik Corry wrote: The semantics for const in Harmony are likely to be silently different in Harmony from the semantics it has in non-strict current implementations. (In particular the current const is hoisted to the surrounding function, whereas the one in

Re: No more modes?

2010-10-14 Thread Mark S. Miller
On Wed, Oct 13, 2010 at 5:35 PM, Brendan Eich bren...@mozilla.com wrote: On Oct 13, 2010, at 4:31 PM, Mark S. Miller wrote: Recently, I met with the Google V8 team for two full days. One message that came through loud and clear, that I said I would relay to the list, is please, no more modes

Re: No more modes?

2010-10-14 Thread Brendan Eich
said I would relay to the list, is please, no more modes. If this is an attempt to avoid script type=harmony (harmony a placeholder for something more RFC4329-conformant), it's not going to work. Declaring what the conclusions of discussions must be is not helpful. I am raising an issue

Re: No more modes?

2010-10-14 Thread Mark S. Miller
team for two full days. One message that came through loud and clear, that I said I would relay to the list, is please, no more modes. If this is an attempt to avoid script type=harmony (harmony a placeholder for something more RFC4329-conformant), it's not going to work. Declaring what

Re: No more modes?

2010-10-14 Thread David Herman
Given script type=harmony as an opt-in, I'm puzzled about how it would work anyway. Since it is per script, not per frame, presumably script type=harmonyuse strict; var e1 = eval;/script scriptuse strict; var e2 = eval;/script script ...use strict; e1 === e2 /*results in true*/ /script

Re: No more modes?

2010-10-14 Thread Mark S. Miller
would also not have the global object at the bottom of their scope chain. This in-language switch makes more sense to me than a markup-based switch such as script ..., and would allow the switch to be recognized in non-browser environments such as commonjs. I will address the more general more modes

Re: No more modes?

2010-10-14 Thread Brendan Eich
. Miller wrote: Recently, I met with the Google V8 team for two full days. One message that came through loud and clear, that I said I would relay to the list, is please, no more modes. If this is an attempt to avoid script type=harmony (harmony a placeholder for something more RFC4329

Re: No more modes?

2010-10-14 Thread Brendan Eich
tags without inevitable syntax errors in old browsers on the new syntax that follows the pragma. This means you have to eval, and this is both onerous for developers and expensive (and different from script-loading) at runtime. I will address the more general more modes and compatibility

Re: No more modes?

2010-10-14 Thread Brendan Eich
On Oct 14, 2010, at 10:14 AM, Brendan Eich wrote: I will address the more general more modes and compatibility direction questions for later messages. Please, let's get to this. Otherwise more-modular arguments about use harmony (which is still a mode, I note!) One more observation

Re: Extensions in ES5 strict mode (was: No more modes?)

2010-10-14 Thread Brendan Eich
On Oct 14, 2010, at 12:23 PM, Erik Corry wrote: 14. okt. 2010 17.11 skrev Brendan Eich bren...@mozilla.com: Flush out means make developers find all such uses, and do what? Replace them with var, making whatever other changes are needed to keep the program running. Most developers I know

Re: No more modes?

2010-10-14 Thread Jeff Walden
On 10/14/2010 08:29 AM, Brendan Eich wrote: Thus there is already one bit of opt-in versioning state in ES5, which must be carried from direct eval's caller to callee. SpiderMonkey currently does this, but fairly shortly (I have patches) it will not. The eval *function*'s implementation

Re: No more modes?

2010-10-14 Thread Brendan Eich
On Oct 14, 2010, at 1:39 PM, Jeff Walden wrote: On 10/14/2010 08:29 AM, Brendan Eich wrote: Thus there is already one bit of opt-in versioning state in ES5, which must be carried from direct eval's caller to callee. SpiderMonkey currently does this, I wasn't describing any implementation,

Re: No more modes?

2010-10-14 Thread Maciej Stachowiak
On Oct 14, 2010, at 2:54 PM, Brendan Eich wrote: On Oct 14, 2010, at 11:15 AM, Brendan Eich wrote: On Oct 14, 2010, at 11:09 AM, Brendan Eich wrote: Fixing this is possible too, if I can take liberties: script-if type=application/ecmascript;version=6 // new.js inline-exanded here

Re: No more modes?

2010-10-14 Thread Brendan Eich
On Oct 14, 2010, at 3:30 PM, Maciej Stachowiak wrote: My priors (before studying the thread closely): - I don't like modes. It will be simpler and shorten correspondence for those who *do* like modes to say so. crickets - If mode switching is necessary, I prefer in-band mode

No more modes?

2010-10-13 Thread Mark S. Miller
Recently, I met with the Google V8 team for two full days. One message that came through loud and clear, that I said I would relay to the list, is please, no more modes. Since we almost never get to retire anything that old code depends on, addition of modes (like use strict) adds