« first day (2193 days earlier)      last day (2754 days later) » 

7:00 PM
@JayIsTooCommon @DaveRandom you both are the twats here :-D
@JayIsTooCommon please set zend.assertions=1 in your php.ini
 
true
 
meh, I think it creates more of a barrier to contribution to push your preferences onto every contributor, PSR-2 was already too much
 
@DaveRandom you did not know about github.com/amphp/amp/blob/v1.x/lib/Deferred.php#L9 ?
@JoeWatkins That we can argue about :-)
 
@bwoebi ...I don't get why that would make difference?
 
@DaveRandom because the returned object implements Promise and is still a Deferred, if assertions are disabled
 
7:03 PM
Oh right, so you are saying that his result is expected (sort of) and it just needs to be yielded?
 
precisely.
 
oic#
no I did not know that
til
 
@DaveRandom yep, it's an optimization for production envs.
 
@DaveRandom we don't c#
 
Anonymous
@DaveRandom Ok, I don't think I'm being stupid. So var_dumping $this->messageResolver->resolveMessageText($command->getRoom(), $command->getText() returns class Amp\Deferred#506 (5) {}
 
Anonymous
7:05 PM
Didn't read up..
 
@JayIsTooCommon the reason that happens is complicated, but the tl;dr is that it's actually a promise and you just need to yield it
see Bob's explanation
dinner bbiab
 
I didn't know travis could do osx builds
 
Anonymous
I really need to learn about generators
 
Anonymous
Cool that works, thanks @DaveRandom @bwoebi - will push to pr
 
what does yielding mean in that context?
 
7:11 PM
@Tiffany using yield operator
 
!!docs yield
 
The yield keyword is used to emit a value from a generator.
 
Interesting. If you're trying to get a specific yield value from a generator when there are more than one, how would that be done?
errr
let me reword that
or can only one value be yielded from a generator, so it's not an issue?
 
what does "to core" mean?
 
In general?
 
7:20 PM
"core" was a verb, not a noun. — Christopher Jones 18 hours ago
 
@tereško removing a core
 
in "core php"
 
@tereško ah, I guess he meant adjective then
core as in internal in this context
 
no
not in the context of internals
 
he's not using it as a verb...
 
7:22 PM
the phrase "core php" was used in context of "not framework"
 
Wes
dunno if sound feedback would drive me crazy youtube.com/watch?v=hUN93Xz-7pg or be useful
 
@Wes my keyboard irritated the piss out of a coworker across the hall from me.
I bought a Cherry Brown board to mediate the situation, but instead my boss moved the coworker down the hall, away from my office....
 
Wes
ahah
the cherry brown isn't actually silent too
so i should probably stick to that, it's silent enough and i'm used to it
 
Cherry Reds might be a tiny bit quieter, but they're not as great for typing
the lateral feel is different, and there's no bump
 
7:37 PM
@bwoebi conditional eval? can't you do conditional class decls
 
if I use parameter instead of param in my code, is it frowned upon? Just something about the abbreviation, "param" irritates me.
 
$ php -r '$x = true; if ($x) { class A { public $foo = true; } } else { class A { public $foo = false; } } var_dump(new A);'
object(A)#1 (1) {
  ["foo"]=>
  bool(true)
}
 
Wes
@Tiffany meh nobody would care. unless you are talking of @param
 
@Tiffany I would be "annoyed" if you would use param instead of parameter
 
Wes
abbreviations suck
 
7:50 PM
I agree. I twitch a little when I see "param" instead of "parameter."
 
Wes
but that is a very much common one
 
Anonymous
hoi pie o/
 
hola jay o/
 
Wes
\o
 
o/
 
7:51 PM
\o/
 
Wes
wait peehaa is pronounced pie?
 
I think I might scrap my code again for the second or third time and opt for something that hopefully fills the requirement of being a model, base and controller (or whatever...) for the codebase to see it, and then just doing it my own way... I'm getting so frustrated with this
 
@Wes Not unless you're dutch and you are missing the last part of the nick :)
 
Anonymous
@Tiffany That's learning, scrapping and starting again :)
 
Sure, but I should have been done with this two months ago ;_;
My supervisor is about done with my shit. I've been working on it, I just keep getting stumped on stuff, and taking time to figure it out, which is time consuming. If she'd known in the beginning it would take me this long, it would have been contracted out.
a couple of weeks ago, I was ready to throw in the towel, and she wouldn't let me, because I've already spent so much time on it >.<
self-doubt is eating me alive today.
 
8:04 PM
@Tiffany Generator implements Iterator, each value comes at each tick as you loop over it. What yield really does, though, is save the current state and return execution control to the caller, which is something that one can abuse in async code to help you write saner code. I'm in the middle of putting together a talk on the subject, I will link you the slides when I have finished making them.
You could also read nikic.github.io/2012/12/22/…
 
Anonymous
@DaveRandom Are you planning on going to PHPUK ?
 
@DaveRandom Interesting.I can see how that can be useful
 
Wes
Our systems have detected unusual traffic from your computer network. This page checks to see if it's really you sending the requests, and not a robot. Why did this happen?
i might have some virus
i wasn't using google at all :\
 
or you're on a company network
 
Wes
nope.
 
8:15 PM
or you are on a wifi router
 
Wes
nope.
 
well, bad for you
 
@Wes Where'd you receive that?
 
Wes
google
 
I think we have played 20-question long enough
 
Wes
8:17 PM
@tereško negative
:B
 
∑:
 
E:
Gurren Lagann is always good for a pick me up
 
@Andrea it fucks up IDE scanning :-(
 
@bwoebi nice
 
@Tiffany Until it spirals out of control...
 
8:35 PM
/me sticks to reading mangas
 
@Machavity then we'll drill through the heavens
 
that last space
 
8:51 PM
The part about holiday being extended because of illness, I could see that getting abused. We just had a board policy pass where if an employee works on a day that the college is closed (which they get paid for anyway), they won't receive overtime. Screws over our maintenance crew when it snows, because they have to work off hours to clear the parking lot. :/
wat
accidentally tabbed and hit space, which prematurely sent my message. Yay!
@tereško with regards to the article you sent me, I don't see how using a templating engine would make my life easier with this project. I understand that I need to separate my presentation logic from my business logic, which I'm working towards. Unless there's something else the article highlights that you're wanting me to see, and I'm completely missing?
 
@tereško eh, it says that excludes office work
 
Wes
9:07 PM
@Gordon @Jimbo bikeexif.com/guzzi-custom-build damn hipsters. but this actually beautiful :B
 
@NikiC yeah, it's no excuse for living 50 km from your workplace and needing a 2 hour commute each morning…
 
9:58 PM
Ha, I just learned that "HTML input arrays" are not actually a thing. This is a PHP thing.
<input name="fields[]" ...> would just have a name of "fields[]" but PHP's form processor converts parameters with [] at the end to arrays.
Normally a form processor would see multiple fields of the same name and make an array since it's present multiple times.
 
@LeviMorrison Really? That was something I learned early on while I was building this form. But then again, I've been researching a lot about forms in the process, so...
anyway, g'night everyone.
 
there was this answer that called it "Oftimes Confusing PHPism"
g'night Tiffany
 
Wes
@LeviMorrison btw, github.com/Netmosfera/php-dot-querystring only thing i made that works
in fact, i didn't write it @crypticツ did :B
 
It's not often I use form "arrays" so I just never encountered it in another language.
 
Wes
also querystrings iirc, there are conventions but no actual standard
for instance some use ; over & for separating kv pairs, eg ?foo=baz;bar=qux;yup=uop
!!should i go to sleep or finish work
 
10:17 PM
You should go to sleep.
 
Wes
i think i can predict the result of random_int(), if that's what jeeves is using
 
yea it's random_int(0,1) for yes/no
and there's a !random_int(0,15) for dunno
then it gets from array by yes/no/dunno :D
 
Wes
i got too many dunno to be 0,15 :D
 
oh wait that was for is
it's this
 
Wes
damn random always picking on me
 
10:22 PM
I'm playing a game with Dmitry right now: Give me a patch and I'll show you where it breaks.
 
:-)
 
oh, your old avatar is back
 
yep
 
@Tiffany you were asking about dealing with session variables. As it is now, you have session variables (with some minor logic) all over your html, which is why I linked you to an article about templating \
 
@bwoebi Heh ^^ What's the patch for?
 
10:28 PM
@NikiC some out-of-bounds read in cleanup_unfinished_calls() if the exception happens in init call opcode and EX(call) has been set.
@NikiC github.com/bwoebi/php-src/commit/… I have a patch for him, but he doesn't like it…
So he proposes alternative patches which all have some flaw :-D
 
@bwoebi is that the right link?
 
no :-P
 
what's the repro case for the oob read?
 
set_error_handler(function() { throw new Error; }); call_user_func("fail");
set_error_handler(function() { throw new Error; }); (function() { call_user_func("fail"); })();
(the latter is an assertion failure in ZEND_ASSERT(op_num) in that function)
 
@bwoebi heh, yeah that looks like the kind of patch dmitry doesn't like :D
 
10:33 PM
@NikiC I'm waiting for him to either come up with something completely arcane or just coming back to my patch, reluctantly.
 
...did I scan that correctly? You are inserting dummy stack frames so the OOB reads are harmless?
 
@LeviMorrison … so that no OOB reads happen at all.
 
@bwoebi So the problem is if an exception is thrown on the init of outermost call right?
 
@NikiC it doesn't matter.
thanks to the loop it might just be as well in the innermost call
 
@bwoebi anyway, not sure I see why this can't be fixed in the cleanup function
 
10:40 PM
@NikiC technically it could …
it is just much more complicated than it's worth.
 
Why wouldn't it work to skip the argument handling stuff in the case where the exception is on the init? I.e. basically jump to the handling at the bottom of the loop (I mean only for the one call of course)
 
you'd first have to iterate completely once to check whether to skip the inner init op or not
@NikiC because sometimes EX(call) has been set and sometimes not by that init.
you'd have to first figure out whether that init has created a new stack frame and conditionally skip it
 
@bwoebi in which cases has it been set?
 
call_user_func(new class { function __destruct () { throw new Error; } }); for example
 
@bwoebi ah
but that breaks lots of things anyway :D
 
10:43 PM
@NikiC well, my patch fixes it perfectly^^
@NikiC so, you see… a lot of fun, and fixing it any other way round is going to be much more hacky than my dummy frame insertion :-D
 
:)
 
is EX() a macro?
 
@Ekin yes, it is a shorthand for execute_data
EX(foo) == execute_data->foo
 
ah I see
looking like that I found the def in zend_compile.h
thanks
 
Wes
10:54 PM
i can only watch "js is crap" kind of talks, is that one? :B
 
@Wes watch it, then you'll know.
 
Wes
if it isn't, how do i unwatch it?
 
@NikiC gist.github.com/dstogov/fe5ce08e5d1dc1fdab2ca34c85190028 Ah, that's what I was waiting for
hmm, he missed ZEND_INIT_DYNAMIC_CALL
but well, that's fine
 
11:14 PM
user image
2
 
@tereško I thought this were from George Washington …
 
some link from r/KotakuInAction post about another instance of mods in one of subs being stupid
 
speaking of kotaku, this is really impressive
 
some one has spent at least month on making that thing \
of course I still prefer Kerrigan cosplay cosplayers :P
 
:D
that's no surprise
 

« first day (2193 days earlier)      last day (2754 days later) »