@DaveRandom It doesn't require knowing the future. If the compiler is using a chain of temporaries it can encode information about whether it will reuse a value.
@Andrea what'd make more sense is decrementing rc of the lhs before the evaluation of all other ops on the rhs of the assign - then, within the functions we see that we are rc 1 and free to overwrite ourselves. (and only destroy within assign then as to maintain order of evaluation, if rc == 0)
Hi, what kind of polling mechanism does facebook/twitter use for their real-time chat/feed updates? Making an ajax request every x seconds doesn't seem to be very efficient.
@MátéKocsis I was bored in High School ... And then I went to Japan for 4 month during my Gap Year and dated a girl who didn't speak a word of English lol probably the only reason why I'm still okayish at the language without much practice after 3 years
English vowels are multipurpose, Korean has a letter for every vowel sound
It's one of the only languages that wasn't created organically... it was financed by an emperor to help improve literacy of the common person. It mas made to be easy to learn (at least for Koreans...)
@MarkR I've had been learning it for 2 years, was also able to read some manga in Japanese made for children, didn't really speak it before going to Japan but the sounds aren't that difficult (except the R ones which are more like Ls)
So.....explicit defaults is on the internals list again. Can anyone please proofread this for typos and making sense before I send it? explicit defaults
@bwoebi I'm tempted to add some other 'biased' stuff..... it seems to be that the need for explicit defaults is way more important for people who are maintaining code that has organically grown over time, where more and more default variables have been added.
For them, named params are not so good, as it means updating a lot of old code....
And a few people's position on various RFCs are about supporting their terrible code base...
@Danack yes and no. I means a updating a lot of old code if you want to use named params - but old code and code using names params can easily co-exist
He usually doesn't get that far, it seems we usually change the code so it doesn't break his stuff before it even gets to voting :P
I was pondering though, why is passing args a two step process of sending and then receiving, doesn't the engine know what it's passing it to from the zend_function?
I was trying to learn a bit more about the tracing jit mentioned yesterday and was trying to poke about to see if the type checking had similar kinds of checks / guards for type checking args
Is there something in there where if it has the exact same arg types as the last call it skips the checks, or am I going off on an erroneous tangent as to how things work
@bwoebi I may be wrong, but ZEND_RECV_INIT isn't the opcode which deals with default arguments? It was my understanding when I made a PR that is about the reflection of default args
If ZEND_VM_HOT_HANDLER(64, ZEND_RECV_INIT, NUM, CONST, CACHE_SLOT) is the right place to look, it seems like it's done every time, even when it's a default value derived from an AST which can't possibly change because it's cached?