Re: WeakMap API questions?

2010-09-03 Thread Erik Corry
2010/9/2 Mike Shaver mike.sha...@gmail.com: On Thu, Sep 2, 2010 at 11:32 AM, Erik Corry erik.co...@gmail.com wrote: Surely that is the case with WeakMap?  At least unless you lost the key and don't have any other references to the value.  In which case you can't reach the value any more, so

Re: WeakMap API questions?

2010-09-03 Thread David Herman
But HashMaps and WeakMaps both map objects to values. The difference is just that, with WeakMaps, the mapping is weak. The name is excellent, short, and clear. Perhaps ObjectMap would be better? That wouldn't distinguish them from HashMaps, since they are both object maps. WeakMap is a

Re: WeakMap API questions?

2010-09-03 Thread Mike Shaver
On Fri, Sep 3, 2010 at 8:22 AM, David Herman dher...@mozilla.com wrote: Mike momentarily forgot what they mean Yes, it was a lapse from a casual observer reading the conversations quickly; please don't let my brain-blip harm the sweet naming. Mike ___

Re: WeakMap API questions?

2010-09-03 Thread Mark S. Miller
From email on this thread and from private email I've received, I'm a bit worried that my earlier message was misunderstood. I agree that we're not going to secure JavaScript well enough to solve the covert channel problem. I stated so: On Tue, Aug 31, 2010 at 9:32 PM, Mark S. Miller

Re: WeakMap API questions?

2010-09-03 Thread Brendan Eich
On Sep 3, 2010, at 10:31 AM, Mark S. Miller wrote: From email on this thread and from private email I've received, I'm a bit worried that my earlier message was misunderstood. I wrote covert channel too, when inviiting you to reply -- sorry about that, you're right that the side channel is

Re: WeakMap API questions?

2010-09-03 Thread Mark S. Miller
On Fri, Sep 3, 2010 at 11:32 AM, Brendan Eich bren...@mozilla.com wrote: On Sep 3, 2010, at 10:31 AM, Mark S. Miller wrote: From email on this thread and from private email I've received, I'm a bit worried that my earlier message was misunderstood. I wrote covert channel too, when

Re: es-discuss Digest, Vol 43, Issue 7

2010-09-03 Thread Leo Meyerovich
Although I illustrated the non-overt channel here as a covert channel in a possibly failed attempt at clarity, my real point and my real worry is about its use as a side channel. As a side channel, this ability to sense the collection of individual objects is much more informative than

Re: es-discuss Digest, Vol 43, Issue 7

2010-09-03 Thread Mark S. Miller
On Fri, Sep 3, 2010 at 6:04 PM, Leo Meyerovich lmeye...@gmail.com wrote: Although I illustrated the non-overt channel here as a covert channel in a possibly failed attempt at clarity, my real point and my real worry is about its use as a side channel. As a side channel, this ability to sense