Re: What is the status of Weak References?

2013-02-03 Thread David Bruant
Le 03/02/2013 06:21, Brandon Benvie a écrit : Some people would say that garbage collection is the most important advancement in computer science in the last 20 yearshttp://www.codinghorror.com/blog/2009/01/die-you-gravy-sucking-pig-dog.html Don't get me wrong, I didn't say nor didn't mean

Re: What is the status of Weak References?

2013-02-03 Thread Kevin Gadd
On Sun, Feb 3, 2013 at 2:58 AM, David Bruant bruan...@gmail.com wrote: Let's see how the example would be with weakrefs: function Storage(){ var storage = [] return { push(e){storage.push(makeWeakRef(e))}, last(){ var last =

Re: What is the status of Weak References?

2013-02-03 Thread David Bruant
Le 03/02/2013 12:08, Kevin Gadd a écrit : On Sun, Feb 3, 2013 at 2:58 AM, David Bruant bruan...@gmail.com wrote: Let's see how the example would be with weakrefs: function Storage(){ var storage = [] return { push(e){storage.push(makeWeakRef(e))},

Re: Action proxies

2013-02-03 Thread David Bruant
Le 03/02/2013 01:59, Mark S. Miller a écrit : Hi David, have you seen https://github.com/tvcutsem/harmony-reflect/tree/master/notification ? I remember seeing the announcement, but I must have forgotten about it. My bad :-s AFAICT, this provides the same flexibility as action proxies with

Re: Action proxies

2013-02-03 Thread Mark S. Miller
On Sun, Feb 3, 2013 at 7:22 AM, David Bruant bruan...@gmail.com wrote: [...] This does indeed get rid of invariant checks while guaranteeing the invariants anyway and apparently not losing expressiveness. Wow. ;) Was this discussed during the January TC39 meeting? Do notification

Re: Action proxies

2013-02-03 Thread Tom Van Cutsem
Hi David, In short, I don't think action proxies bring anything more to the table than notification proxies and are not worth pursuing separately. Replies to more detailed points below: 2013/2/3 David Bruant bruan...@gmail.com Le 03/02/2013 01:59, Mark S. Miller a écrit : Hi David, have you

Combining typeof and instanceof

2013-02-03 Thread Axel Rauschmayer
It has always bothered me that one had to distinguish primitives and objects if one wanted to categorize values in JavaScript. The following is a proposal for changing that: http://www.2ality.com/2013/02/isinstance.html Comments and suggestions welcome. -- Dr. Axel Rauschmayer

Re: Combining typeof and instanceof

2013-02-03 Thread Andrea Giammarchi
you should link Have you met Empty? entry there: http://webreflection.blogspot.com/2013/01/have-you-met-empty.html It explains why typeof null is object, and provides more insights about the Empty constructor and the root of JS inheritance. Said that, the difference between is_type, is_a

ECMA-262 Edition 5.1: DecimalEscape

2013-02-03 Thread Axel Rauschmayer
First an EscapeValue is defined like this [1]: “An EscapeValue is either a character or an integer. An EscapeValue is used to denote the interpretation of a DecimalEscape escape sequence: a character ch means that the escape sequence is interpreted as the character ch, while an integer n means