« first day (1946 days earlier)      last day (3227 days later) » 

20:01
I feel like I've seen this discussion before. What was the problem with keys in list again?
there's none … =)
only some subjective "issues"
I fail to see any. What do the nay sayers nay about?
List comprehension is pretty desirable in PHP, IMO.
that's not list comprehension?
It's always made little sense, in my mind, that list() didn't work with keys when it operates on a data structure that is made up of key/value pairs.
@Sherif syntax would be ugly
20:04
!!eval list(,$two) = array(1,2); echo $two;
will this break ^^
@bwoebi Ahh, if they wanted pretty why'd they chose PHP?
:p
@FélixGagnon-Grenier no
20:07
There... 23:11
Oh wait.. this requires 2/3
heh
I guess 67% is 2/3 huh
yeah, 22:11 is enough
I don't know why I was thinking 22:11 amounts to 50%
Must be that time of day
lol
o/
@JoeWatkins moin
arh, I found out when using bindValue/bindParams/execute(array()), the placeholder does not necessarily need to start with ":" ..... stupid me
20:32
uhhh
where does opcache's dylib build to again
I can't remember
@Andrea in modules dir in build root
aha
ugh why is opcache not loading
@Andrea I usually run opcache with ./sapi/cli/php -d zend_extension=`pwd`/modules/opcache.so -d opcache.enable_cli=1 script.php
are you doing list keys patch for it ?
20:57
why do people insist on trying to talk to me in IRC ...
it doesn't work ...
I dunno why I sign in actually ... gossip I suppose :D
I just never notice messages in there, I get a notification but it must be easy to ignore ...
@JoeWatkins not using a bnc?
I used to use a bouncer ... but then when the machine was hacked it was all changed, and it was setup for me again but I've literally no idea how to use it ...
@JoeWatkins I have a "bouncer through http" if you want an account
it's only in the browser
but it's also always on
it's this, on my vps
it looks cool, but don't really want to commit to another browser tab ... thanks tho :)
fair enough
21:03
a good client is what I need though, and a bouncer ... or maybe some kind of notification thing to send me an email when someone talks directly to me
I see the notification when it comes up, but can rarely respond at that second, and simply forget about it ...
but I'd keep seeing an email right there in bold until I done something about it ...
> Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.
is there a name for that kind of notification, is that a thing ?
email notification?
well yeah, email :D
but it would need to be a feature of a thing, I think ....
yes, of znc or w/e bnc you use
21:07
ah
don't have a nick like "you" though
@tereško lol
21:21
@bwoebi ./sapi/cli/php? you're wasting two keystrokes :)
@Andrea which two?
@bwoebi ./
why …
why…
./ is only necessary for files in the current directory
oh
lol
I've never realized that
21:23
hehe
@bwoebi Just think of many minutes of your life this has cost you ...
oh yeah that reminds me, somehow
I think opcache broke my code
@NikiC definitely … my whole life has been worth nothing!
Bah… I'm supposed to write docs and just can't stop procrastinating…
nope, wasn't opcache
okay that's more worrying
why does this only break in Travis?
@Andrea maybe valgrind can tell?
21:30
@bwoebi it's the sort of thing that shouldn't be able to break in travis if-
wait I didn't check why it broke
I should look at the diff
oh god now I'm worried
@Andrea I just facepalmed so hard that it actually hurted a bit :x
2
why are these notices not appearing at all under Travis?
ok, I think I need to try doing something productive
does Travis have weird error_reporting settings or something? hmm
if (*str > '9') {
    return 0;
}
what the hell
oh
or, wait, maybe the problem is opcache
but in that case I should be able to reproduce it
I'm so confused
@Andrea well, travis is doing two runs … if both fail, it's not opcache?
21:36
@bwoebi both fail, but I should check if the test fails in both
@Andrea do that
ah, it's opcache
it doesn't happen in the non-ZTS non-debug build
then it's probably opcache
but it does happen on my local opcache debug build
D:
@Andrea which PR are we talking about?
21:39
@bwoebi invalid numeric strings
I think optimizer is "optimising" the operations
@Andrea but the tests fail in both versions?
I disabled that in zend_compile.c
possible
@bwoebi not the test that matters, there's another broken test which isn't opcache's fault
21:42
so, the problem is that the notices aren't produced
if opcache "optimised" the code this would explain why
    case ZEND_MOD:
    case ZEND_SL:
    case ZEND_SR:
        if (ZEND_OP1_TYPE(opline) == IS_CONST) {
            if (Z_TYPE(ZEND_OP1_LITERAL(opline)) != IS_LONG) {
                convert_to_long(&ZEND_OP1_LITERAL(opline));
            }
        }
well that might explain it
hey wait a second wouldn't that screw up non-numeric bitwise ops
oh wait SL/SR don't have that, do they?
oops
amends CT eval disable patch
come to think of it, what happens when you use convert_to_long in opcache and it produces an E_NOTICE? where does it go?
oh wait it wouldn't produce an E_NOTICE because I specifically made it not do that
maybe that was a mistake, who knows
21:59
@Andrea yeah, they don't … only &, ^ and |
Well, I patched opcache
Oh shit I forgot to update the unary CT eval, oops :)
wait, there's no such thing...
oh, there is actually
but that only covers ~ and ! so I'm fine :)
@bwoebi Why do we optimise +$a to 1 * $a, but not ~$a to $a ^ -1? :D
@Andrea because ~$a may apply to strings too?
@bwoebi oh, fair point
yeah, it's a nice feature
ah, but let's optimise !$a to $a xor TRUE :p
22:07
That's a deoptimization though
because we have no boolean xor and then we'd convert to integer and then back to bool
@bwoebi we don't have a boolean xor opcode? huh
@Andrea we have no boolean xor construct in the language?
@bwoebi we do :(
@bwoebi we do, xor
22:08
we don't have ^^, but we do have xor
which bothers me
^^ is the cutest operator, yet PHP lacks it
(more importantly, it's inconsistent)
@bwoebi we do actually have ZEND_BOOL_XOR!
oh, T_LOGICAL_XOR
let's optimise !$a to $a xor TRUE then :D
@Andrea "optimize"
I totally didn't know that.
dmitry will love me. one less opcode!!!!!!
22:10
@Andrea why one less?
@NikiC we already "optimise" unary negation like this :D
@bwoebi we can get rid of ZEND_BOOL_NOT
I'm tempted to actually write a patch for this
On a different note: oh crap, GitHub shows my commits in a different order to git log. I should rebase less...
@Andrea no, rebase more. into one single commit.
then order doesn't matter anymore :-D
@bwoebi when I merge it eventually :D
but yeah my commits are arranged (in git log) in the order that makes the test pass, not the chronological one
22:12
@Andrea Why stop at that? Implement a NAND opcode...
@NikiC oh, we definitely need to optimize boolean logic :-D … like !($a && $b) == $a nand $b
what could be the reason for TravisCI not picking up a pull request?
@NikiC what could that be used for?
@tereško overloaded?
it might just take a while?
no, it's not even queued
@Andrea simplifying boolean logic within opcodes
22:14
hmm :/
@Andrea nand is a functionally complete representative of boolean algebra
@bwoebi oh yes I see
scrutinizer started just fine, but it seem travis didnt even pick up the PR hook
@NikiC you can do everything with enough NANDs?
@Andrea yes
22:15
yes. or enough nors, alternatively
same for xnor
nice
hmm
@Andrea you might or might not like nand2tetris.org
huh, we have an opcode for boolean conversion
gah … I hate regex implementations not supporting PCRE :x
no recursion, no skip/fail … :-(
22:19
@tereško check that it's actually enabled for you through the travis settings page?
so I guess I can get rid of two opcodes :D
@Andrea two?
@bwoebi yes
@Danack it is .. and it worked just fine couple days ago
@Andrea bool cast?
oh, you said it already
22:20
@bwoebi ZEND_BOOL and ZEND_BOOL_NOT
@tereško serious suggestion, try turning it off and on again.
so much optimisation
I suspect I have managed to fuck up something
and that's what I am currently trying to do
@Andrea Just that it won't matter much ^^
there are opcodes with much more code
ha ... tuning off and on again actually helped
or not
22:22
@bwoebi removing code is always good though
@FlorianMargaine Oh, I could remove parts of code, but then the result would be crappier than before^^
since I just went with "fuck it" option and merged a PR without it having a OK from travis, it just started to run the test on the merge and not the PR
@bwoebi You have a snippet handy for generating coverage only on one php version?
@NikiC coverage? phpunit? locally? travis?
@bwoebi travis phpunit and that coveralls thingy?
22:24
ah
sec
  - $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
@NikiC ^
that's what I'm using
so you just generate it for all versions?
yes
because, why not?
php -r 'exit((int) (PHP_MAJOR_VERSION >= 7));' || phpdbg -qrr vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
^ @NikiC just PHP 7+
22:41
@NikiC github.com/php/php-src/commit/… why exactly didn't the test loop indefinitely before then?
oh. because the exception now freeing the object when the ex is thrown
got it…
yah
@bwoebi I also just noticed, that extra var is unnecessary
there already is a variable var that holds the same value :D
which extra var?
I'm shadowing another variable var, which happens to have the same value ^^
lol
don't call the variables var, that's somehow self-redundant when reading and I don't get that we're actually talking about a variable named "var" :-D
weekend decision
22:57
cool, MPV can stream youtube links directly
huh, streaming on youtube requires phone verification...I've not used a phone since 2014
no, the other way
oh
what I wanted was to run youtube video in a corner of my desktop in an "always-on-top" mode, in a small window, without all the "website" decorations
seems it has a nice looking interface
and if you're able to do that I'm getting it
23:07
not sure how it will work on windows
I normally use mint
on Arch I had to install "youtube-dl" as a dependency for "ffmpeg" which is a dependency for "mpv"
youtube-dl is a dependency of ffmpeg?
if you want to play youtube videos in your native video player - yes
er, are you sure you didn't get that dependency chain the wrong way round?
23:09
it's an optional dependency
so, ffmpeg has: Optionnaly depends on: youtube-dl?
monolith% mpv "https://www.youtube.com/watch?v=_4Pou5z3D98"
works for me
@FlorianMargaine yes, it need youtube-dl to pull from youtube.com
@Ekin it has the same keyboard controls as mplayer
(in case you have used it)
I love how I get a bill for $0.45 from AWS every month.
It's just amusing to see a $0.45 charge on my credit card like that.
I should start using s3 for backups
it's, like, almost free
but then I realize I don't have much to backup.
(code is already on git(hub|lab), photos are on dropbox/google, docs are on both too...)
23:27
@FlorianMargaine Are you on the AWS free tier?
@Sherif no, I don't have an AWS account
@FlorianMargaine and the ssh keys? your OS personalization? You really want to start from zero at setting everything up again when a crash happens?
@FlorianMargaine Ah, it's just because you said s3 (it really is free if you're on the free tier)
Well, the first 5GB anyway
@bwoebi I'm not trusting any cloud provider with my ssh keys
@bwoebi for my OS personalization, it's on dropbox or in git(hub|lab), depending on what part
@FlorianMargaine so, where are you backupping them?
23:30
@Sherif yeah I know, but 5GB is pretty small... still, it remains super cheap
@bwoebi I have a couple of USB keys
@bwoebi do you really think that giving Amazon your private keys is such a brilliant idea?
@tereško I wasn't implying that.
misread then
what the actual hell
why... why is this broken
it worked before ;_;
23:40
it's probably because of the gremlins
oh, riight
run-tests.php uses error_reporting=E_ALL, my terrible php.ini doesn't
class Foo {
    public static function getFn() {
        return function () {
            self::bar(); // This is resolved when getFn is called isn't it? i.e. it's safe to do?
        };
    }

    public static function bar() { }
}
23:56
@Danack Assuming Foo next gets extended. Otherwise you want static
@Danack rebinding notwithstanding, why should it not be safe?
Because PHP.
@Danack Oh, good point. I didn't consider that case.
PHP could execute it in the context of where it calls the function
i.e. self would be whatever object is calling getFn, and not Foo itself

« first day (1946 days earlier)      last day (3227 days later) »