« first day (1587 days earlier)      last day (3358 days later) » 

11:01 PM
I'll have to find my implementation, I started with private functions and hadn't done classes yet
Hm, to clarify, when you say "does not work outside of classes", do you mean "does not work on entities that are not classes"? (i.e. functions)
 
@ircmaxell unsure
 
k, I'll post a question to list
 
@NikiC hey, I'm doing a quick attempt to have php engine to complain when a function is called with exceeding argument count, the implementation is aware of func_get_args and func_get_arg usage thanks to a compile time check but I couldn't find a way to cover the following use case:
function im_dumb_and_do_obfuscated_func_get_args(){
    $fn = "func_get_args";
    $args = $fn();
    //...
}
 
@marcio what about the backtrace method?
note: I'm not being serious there. I'm happy to not support that use-case :-P
 
11:10 PM
<?php
function gen() {
    yield *[1, 2, 3];
}
foreach (gen() as $val) {
    var_dump($val);
}

// int(1)
// int(2)
// int(3)
now only the hard part is left ^^
 
@ircmaxell haha, the problem is that by not supporting the use case the patch would go from "hey I'm adding a good BC break" to "hey I'm adding a potentially annoying BC break"
 
@marcio anyone doing that deserves to be broken
 
@marcio I don't believe that dynamically called func_get_args is a major use-case
 
Ok, I second that, there is no legit reasons to do indirect calls to func_get_args :) and probably no one is doing it anyway
 
However, don't listen to me. I'm not exactly an expert on legacy code :P
I've used two gotos in the last half hour. I'm afraid for my life now.
 
11:13 PM
hi5
 
but just for sake of curiosity, IF I was going to do it, would it be easy on current state of the engine or "impossible mission" status? I'm not very familiar with what's going on zend_vm_def.h land yet.
 
Nothing wrong with goto
 
@ircmaxell I don't even know what that means.
 
user895378
@NikiC \o/
 
user895378
Keep me posted.
 
Eh, I'm too tired to form a valid opinion. Ask me tomorrow :)
 
will do, and thanks :-)
 
in the end, after becoming fond to the strict mode, declare is actually a good solution... // flees away
 
:-P
 
@NikiC it looks like EG(scope) is populated for function calls too...
 
user895378
11:21 PM
@LeviMorrison I think this is an underrated emotion. It's extremely useful to actually tell people when you're feeling this way and I'm trying to do a better job of this when I feel that way.
 
user895378
Otherwise: burnout.
 
Morning
 
user895378
"I'm tired and don't want to think about that right now," is never the wrong answer :)
 
@Leigh I mean code inside functions (outside classes)
 
@ircmaxell I can see the potential abuse from people already by a feature introduces because symfony needs to do scary stuff
 
11:23 PM
@PeeHaa more than one person has brought up that use-case tho
 
@rdlowrey I'll just make use of this advice right away and stop writing code
2
 
This is UKIP. http://t.co/tYi1HT393b
 
@ircmaxell Like?
 
There is just way too much brain-fuck involved here to write it at this time...
 
user895378
@NikiC Caveat: "... is never the wrong answer" ... UNLESS there's a feature-freeze looming.
 
11:24 PM
unless:
- Ohg oh I'm dying please help cough ough
- I'm tired and don't want to think about that right now
 
@PeeHaa people here have said it. It just took symfony pointing out the use-case to realize that it was wode-spread
 
Now why do I think people here means @Ocramius? :P
 
I may whip up a patch tomorrow
 
Why do people prefer Stackoverflow chat vs Freenode##php?
 
Because it sucks less
 
11:28 PM
@TheodoreR.Smith This is a more opinionated chat room. It's not the right thing for everyone.
 
it's really less of a ##php and more of a #phpmentoring or #phpc
 
Holy cow. That moment you stop working and you realize it is actually friday \o/
 
that moment you look up and it's 18:30
 
@PeeHaa as long as you don0t trick us into watching a certain video…
 
user895378
yeah that.
 
11:29 PM
@NikiC Well, I think I can get it all from the current stack frame...
 
@ircmaxell :)
 
@PeeHaa It's not Friday by the "day starts at 6am" definition
 
@bwoebi I would never betray you!
 
@NikiC what about the "whenever you wake up after going to sleep"
 
@ircmaxell The 6am rule is a discrete approximation of that. Because I virtually never stay up til 6am and certainly never wake up before that :P
 
11:31 PM
hehehe
unless you go to a conference in the US with Lonnie, at which point you simply won't sleep for 3 days (so does that mean it's always the same day?)
 
@ircmaxell I think if the day is already 72 hours long we can no longer in good conscience consider it to be a single day
 
Ah, all these rules
 
@NikiC Doesn't that depend on the planet you are?
 
@PeeHaa Ah yes, that is indeed a valid concern
 
@Leigh Sorry for taking a while on random. Lots to learn. :) I don't want to hold things up! I'll push another commit today and if it's not up-to-snuff you can totes just take over if you like. Just trying to get involved more but don't want to at the expense of getting random added ASAP. :)
 
11:34 PM
Ok, since we've obviously gone ad-absurdism here, I'm off. Later all
 
@NikiC a few questions about yield* … Are you going to pass the yields directly through to the calling generator in case we have multiple levels of yield * or are you going to loop on each level over the yields (slow)? Also, we're going to have proper stack traces that way? (each generator level counting as one frame)
 
later @ircmaxell
 
We may also run into issues with people using polyphasic sleep schedules
 
ROTFL: Laravel, the new Static site generator
 
@ircmaxell later
 
11:35 PM
@ircmaxell where did you that from? :o
 
@SammyK It's OK man, but with feature freeze looming, RFC discussion and vote is going to be min 2 weeks
 
@bwoebi saw it on IRC...
 
but I realised, we can just RFC whenever, because the implementation is kind of trivial, we can implement whatever was voted on afterwards
 
Yeah, that's what I figured. I've never been involved with the RFC process so not sure where to start on that one. :)
 
anyway, latz
 
11:36 PM
Maybe we can use some bits from: github.com/SammyK/php-src-csprng
 
@SammyK OK, how about tomorrow, I draft it and forward it on for you to tweak? Do you have RFC karma on the wiki?
 
@bwoebi I'm currently targeting a stack'd implementation that directly passes through. Stack traces may be a problem though.
 
I don't think I have karma yet, but I requested it for my test contribution: github.com/php/php-src/pull/684 but didn't hear anything back :)
 
@NikiC because in async world, it's very annoying because you never really get where functions were called from… would be nice to have a nice stack trace here…
 
@SammyK You need a wiki account, and request RFC karma specifically. No biggie, I'll draft it anyway as a gist and we can do it that way
anyway, it's that time of night again ;) night
 
11:39 PM
Cool - I have a wiki account. Who do I need to hit up about karma?
 
@bwoebi Yeah I can see how it would be nice, but not sure if possible
 
I'll try to post in the IRC channel where the internals peeps hang out. Night! :)
 
If it's just adjusting a few prev_execute_data pointers it's okay, but it may also require more complex handling in which case it's probably not worth it
 
@NikiC oh, it definitely is possible… question is only how much you have to change for it in the engine…
 
@ircmaxell UKIP is one of the best know exports by Koch brothers
 
11:41 PM
@NikiC afaik, stack traces are only looping prev_execute_data. You just have to make attention to not mess these up...
 
user895378
@bwoebi lol, this is kind of true of all software isn't it?
 
user895378
"Yes, it's totally possible. But it might cost you an arm, a leg, an oxford comma and a firstborn child to make it happen."
 
@rdlowrey Where the oxford comma is the most valuable thing in that list, right?
 
user895378
Most likely.
 
@SammyK try reaching Tyrael, he added karma to my account in just a few minutes after the request.
 
11:47 PM
Cool - thanks @marcio!
 

« first day (1587 days earlier)      last day (3358 days later) »