« first day (1810 days earlier)      last day (3154 days later) » 

6:00 PM
this is a bit confusing: sizeof(zend_execute_data)/sizeof(zval)
 
eih… yeah
 
I think (num - 1) / sizeof(zval)
 
should be (sizeof(zend_execute_data) - 1) / sizeof(zval) + 1
 
#define UOPZ_ZVAL_NUM(c) (c > 0 ? (c - sizeof(zend_execute_data)) / sizeof(zval) : c)
array(8) {
  ["name"]=>
  string(9) "{closure}"
  ["flags"]=>
  array(1) {
    ["public"]=>
    bool(true)
  }
  ["nargs"]=>
  int(2)
  ["rnargs"]=>
  int(2)
  ["arginfo"]=>
  array(2) {
    [0]=>
    array(5) {
      ["name"]=>
      string(3) "op1"
      ["type"]=>
      int(0)
      ["reference"]=>
      bool(false)
      ["null"]=>
      bool(true)
      ["variadic"]=>
      bool(false)
    }
    [1]=>
    array(5) {
      ["name"]=>
      string(3) "op2"
      ["type"]=>
      int(0)
      ["reference"]=>
looks right to me ?
not sure why allow_null is always set there ...
and need return type support ...
this isn't going to work on windows (32bit use abs addr iirc) ... god I hate windows ...
 
user1804599
6:18 PM
cool you can write 'f'(1) in PHP 7 instead of f(1). :D
 
@elyse that's a side-effect ^^
 
user1804599
It makes code generation easier.
 
user1804599
And [$o, 'f']($x) instead of $o->f($x)! :D
 
good morning
 
6:30 PM
\o
anyone have any strong feelings about kohana?
 
trying hard to develop some within the minute
 
@Orangepill @tereško has, but that's more because of yii iirc
 
@Orangepill I haven't used Kohana in about 4 years
 
anything good to say about it??
 
@Orangepill it was an honest try at implementing HMVC
but it failed because of coming from the tainted bloodline of codeigniter
@PeeHaa yii is a DJango clone
 
6:37 PM
That's the nicest thing I've heard you say about any framework :)
 
I learned a lot from it .. but mostly how thing's shouldn't be done
 
Anonymous
7:06 PM
Putty sucks
 
Anonymous
</rant>
 
<?="\u{"; … what this does, makes me cry :'(
 
@nikita2206 are you editing the RFC right now?
 
Hello,

I have a JavaScript from the www and it deletes database-generated content via drag & drop on a dropzone. I would like to generate in that case NEW content from the DB.

Or is it possible to exchange content with php with an if-statement, which checks for submit of a delete-button bound to the content / parent-element?

What is easier?
 
@marcio hey, nope
 
7:13 PM
@nikita2206 ok, I was afraid we could be overwriting each other changes because "Variance and Signature Validation" suddenly appeared on the preview :P
 
let me check what's new out there
 
I didn't publish yet, just previewing.
 
Btw just so you know that I'm not just lazying my ass off :D I'm not doing anything about this rfc right now because we have lots of stuff at my work place and it will all be finished in 21st of october, so after this date I'll start working on it again
 
Anonymous
@salathe It says invalid unicode. What's wrong with it?
 
I think my slides are finally done :D
All gulp 65 of them
 
7:22 PM
@nikita2206 don't worry, I'm very overwhelmed too and you already did a lot, just leave the rest with me. I'll have plenty of time to respond on mailing list this month, so maybe we'll be able to move it into discussion soon.
@nikita2206 do you think this makes sense wiki.php.net/rfc/callable-types#idiomatic_code ?
 
@Andrea you should put a little elephpant in the background that's in a slightly different position from slide to slide so if you play it through quickly it dances
 
@Andrea I'm sure you'll do a nice job :-)
 
@PaulCrovella :D
that's a lovely idea
 
And @Andrea may I please see your tweets… it's a bit annoying to see conversations without contexts…
 
@bwoebi okay
 
user1804599
7:26 PM
return $a ?? ($a = new T());
 
user1804599
this is cool
 
@elyse right… is useful for e.g. statics in functions.
 
@marcio hmm, to be honest, I wouldn't say "idiomatic php code". It might be better to just say that it's much shorter to use callable types (I realize that's what you tried to imply with "idiomatic php code", but this can cause "what actually is a truly php-way?" kind of questions I think)
 
user1804599
What's the precedence of ???
 
@nikita2206 lol, that's true. This is an enormous bikeshedding bait.
 
7:37 PM
Installs OS 10.11 … update routine shuts down after install instead of reboot?!?!
Also… I'm totally missing the log functionality while updating :o(
 
> But it does show that "short closures" and "auto-capture closures" are two different features; we could save up to 17 characters without changing behaviour if we could eliminate the keywords "function", "use", and "return".
 
7:57 PM
@bwoebi ... av a look at this ...
<?php
var_dump(uopz_disassemble(function($max = 13) {
    if($max < 1)
        return [];

    $sequence = [];

    $older = 0;
    $newer = 1;

    do {
        $number = $newer + $older;
        $sequence[] =  $number;

        $older = $newer;
        $newer = $number;
    } while($number < $max);

    return $sequence;
}));
?>
  ["opcodes"]=>
  array(17) {
    [0]=>
    array(3) {
      ["opcode"]=>
      string(14) "ZEND_RECV_INIT"
      ["op2"]=>
      array(1) {
        ["constant"]=>
        int(0)
      }
      ["result"]=>
      array(1) {
        ["cv"]=>
        int(0)
      }
    }
    [1]=>
    array(4) {
      ["opcode"]=>
      string(15) "ZEND_IS_SMALLER"
      ["op1"]=>
      array(1) {
        ["cv"]=>
        int(0)
      }
      ["op2"]=>
      array(1) {
        ["constant"]=>
        int(1152921504606846971)
...
  ["literals"]=>
  array(7) {
    [0]=>
    int(13)
    [1]=>
    int(1)
    [2]=>
    array(0) {
    }
    [3]=>
    array(0) {
    }
    [4]=>
    int(0)
    [5]=>
    int(1)
    [6]=>
    NULL
  }
}
 
hmm?
 
what sorcery is that?
 
why u no have constant index ?
 
@JoeWatkins meaning ["constant"] => int(1152921504606846971) ?
 
7:59 PM
@JoeWatkins yeah, that's probably some address?
 
nah, too big, and they don't use addresses
 L3    #1     IS_SMALLER              $max                 1                    ~0
phpdbg gets it right ...
wait, no it doesn't actually
 L2    #0     RECV_INIT               1                    13                   $max
 L3    #1     IS_SMALLER              $max                 1                    ~0
that doesn't look right either
 
$max < 1 => tmp var 0
what's wrong there?
 
RECV_INIT line shouldn't have 13, just $max
oh woops
I'll shut up ... I didn't read the code
 
^^
San Francisco font… let's see how long it takes me to get used to it…
 
user1804599
Does PHP collect objects that are involved in reference cycles?
 
8:09 PM
looks like -sizeof(zend_execute_data) just isn't right
@marcio a uopz thing ...
what used to be explain ... only I can't be bothered with a frontend this time ... so I've shoe horned a disassembler in uopz ... gracefully ...
 
@JoeWatkins well… the CVs are correct, no?
@JoeWatkins why did you put that into uopz instead of porting the explain ext to 7?
 
lazyness
explain was a bit stupid, it used a whole bunch of memory, like loads and loads ...
 
I'm reading the manuals php.net/manual/en/function.uopz-compose.php, this is wizardry™
 
better to do that kind of tooling in php
 
Do you consider the creation of magic tool "__toString" an error?
 
8:18 PM
cv num and var num are different ...
array(4) {
      ["opcode"]=>
      string(15) "ZEND_IS_SMALLER"
      ["op1"]=>
      array(1) {
        ["cv"]=>
        int(0)
      }
      ["op2"]=>
      array(1) {
        ["constant"]=>
        int(1)
      }
      ["result"]=>
      array(1) {
        ["tmp"]=>
        int(7)
      }
    }
that's it ...
 
Greeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeetings. Guys 0/
how are you?
 
@nikita2206 found a little bug
> Argument 2 passed to crunch_data() must be callable of compliant signature: callable(int $left, int $right): integer, callable(integer $left, integer $right): integer given
 
Eh heh
lemme check
 
8:44 PM
Gah, if anyone ever tries to tell you that speaking isn't too hard and doesn't eat up a significant part of your time, they're telling porkies
 
@elyse yes, PHP has had a cycle collector for a few years now
 
user1804599
@Andrea yay!
 
Hmm
 
@marcio the last commit should fix it
 
Now my talk is an hour long
Need to shave off 10 minutes
 
8:49 PM
I've had enough of today ... night all ...
 
@Andrea Do you think this picture accurately describes inversion of control?
4
 
@Jimbo I uh
 
@JoeWatkins g'night
 
maybe
 
:D
 
8:51 PM
goodnight
@Jimbo got your slides done?
 
@Andrea Yeah, going through them, rephrasing words and still converting paragraphs to speakers notes
 
:)
 
You?
 
the tech specs document says I'm supposed to email them the slides before today
 
Oh sh* really?
 
8:53 PM
yes
 
Absolutely not a chance that's happening for me lol
 
I meant to get them done yesterday (so I could send them in) but didn't quite
heavily stretching my interpretation of the wording, I could send them today, they're pretty complete
but I probably want to make further changes
 
Me too, I'm sure they'll be fine with that
Why do they want them anyway?
To make sure there's no profanity or something?
 
something about the videographer
also, oh gosh, the speakers' dinner
this sounds nice
 
@nikita2206 works :)
 
9:01 PM
@Andrea Yep, 7pm and then there's a social afterwards although I'll likely be going to my room and practicing
The main social is on the Saturday anyway
 
@Jimbo heh
hmm, I only just now replied to the email asking about the dinner
I hope that's not too late
they said 'by the end of today'
oh well
 
@JoeWatkins I got a refund for the ticket, are you able to email me your bank details so I can send you the monies back?
@Andrea I've emailed twice about two different things and not even gotten one response :P
 
@Jimbo ditto :/
I was worried that it might be my email provider causing trouble. That you've had the same treatment is reassuring
 
Oh good, it's not just me then haha - thought they might be like 'not that bastard again'
 
hahaha
@Jimbo did you read the tech specs?
you probably should, useful info there
For example, the projectors are 4:3, VGA or HDMI
They have Windows 7 PCs but I dunno if anyone will use them :p
 
9:06 PM
:-/
 
Crap, I've been doing my slides widescreen
 
@Jimbo Ditto
 
I've just read it now
 
It's easy to change it, thankfully
@ircmaxell why the slanted face?
 
How do they mean 'letterboxed' - you think they'll remove parts or just squash it?
 
9:06 PM
"4:3 VGA"
 
@ircmaxell We're British, we're a bit behind with the times
 
Letterboxing is the practice of transferring film shot in a widescreen aspect ratio to standard-width video formats while preserving the film's original aspect ratio. The resulting videographic image has mattes (black bars) above and below it; these mattes are part of the image (i.e., of each frame of the video signal). LBX or LTBX are the identifying abbreviations for films and images so formatted. The term refers to the shape of a letter box, a slot in a wall or door through which mail is delivered, being rectangular and wider than it is high. == DescriptionEdit == Letterboxing is used as an...
@ircmaxell they only have HDMI via adapters, even
I was surprised too
But the conference people probably didn't choose this. Most likely it's just what the centre is offering
 
Meh, I'll figure it out tomorrow, I'm sure it'll work out in the end :-) Good night
 
@Jimbo there's "behind the times" and then there's just "wth"
 
hey, at least we've had broadcast TV that has reliable colour reproduction for more then 10 years....
 
ThW
9:12 PM
you don't update good projectors that often, they are expensive, as is installing the cables
 
Oh my god. You didn't just go there
 
ThW
most of the locations still have vga cables "in the wall"
 
9:25 PM
@JoeWatkins are you going to support a uopz_assemble(array $opcodes)???
 
@Jimbo sure, thanks :)
@ircmaxell well, it's doable ...
you have something in mind ?
 
user895378
@Jimbo Feel free to send me the monies too if you want.
 
I need to write a million billion tests for the disassembler first ... it had crossed my mind to support assembling, but ... I don't want people to do nasty things ... on the other hand if you are going to be writing tooling, then I'm less worried ...
it looks right to me ...
 
9:45 PM
hey guys, is there a function in php to just extract the directory path from a file path? For example I want to extract "C:\xampp\tmp" from "C:\xampp\tmp\php44AB.tmp".
 
@JoeWatkins not really. Just thinking out loud
 
ThW
@PedroPinheiro php.net/dirname
 
@ThW All I get is a dot: ideone.com/CqmZlO
 
ThW
depends on the os - / will work on all, \ only on windows
I suggest working with / or DIRECTORY_SEPARATOR
 
10:01 PM
@ircmaxell it might happen .. I dunno yet ...
 
@PedroPinheiro if you know it's going to be a windows path you can do something like this: echo strtr(dirname(strtr("C:\\xampp\\tmp\\php44AB.tmp","\\","/")), "/","\\");
@rdlowrey how's life in the big city?
 
I really mean it this time, going to bed ... nn
 
ThW
@Orangepill the conversion back is not necessary expect for shell commands. The PHP methods all work with / on Windows.
 
user895378
@Orangepill couldn't be better!
 
user895378
10:09 PM
@JoeWatkins nn
 
@thw but it you want to retain the os native representation you would have to ..
 
ThW
only for shell commands, anything other it is easier using /
 
@rdlowrey that's good to hear.
 
ThW
and shell commands open another can of worms anyway
 
I was just answering the question as asked ... "C:\xampp\tmp" from "C:\xampp\tmp\php44AB.tmp"
 
ThW
10:13 PM
I am mostly developing on windows for linux systems, so I get hit by most of the differences during dev.
 
case sensitivity is the one I see the most with that kind of dev environment. I'm 100% linux thank god
last window box I had was XP
 
ThW
case sensitivity is an VCS issue, it is difficult to just change case, but it doesn't happen that often.
strict naming guidelines help
 
"foo.txt" => "Foo_oh_technology.txt" => "Foo.txt"
 
ThW
@Danack exactly
 
how I use Google Docs to share presentations:
1) make presentation in PowerPoint
2) upload to Google Docs
3) ignore take into account valuable feedback
 
ThW
10:27 PM
lol
 
4) delete all the slides in the Google Docs presentation and "import slides" from the PowerPoint presentation
(with (4) I'd like to be able to just upload a new version, but there doesn't seem to be a button for that)
 
Basically: stupid gdocs interface???
 
ThW
@Andrea btw Marcus would have done about 120 slides for a talk like that. Well it would have been about iterators. :-)
 
@bwoebi nah, I'm doing it wrong
it's supposed to be one-way
Google wants to lock you into their ecosystem
 
well… then… even more stupid gdocs interface :-D
 
LGL
11:04 PM
Can someone help me with this SQL Please, I get the same result for both numberofVote & numberOfComment, What I'm I doing wrong pastebin.com/btUSdKdt?
 
well, for one you're using pastebin instead of sqlfiddle when asking for sql help
 
LGL
Yeah but do I really need to SQLFiddle? I mean it just matter of JOIN
 
LGL
11:47 PM
Solved
 

« first day (1810 days earlier)      last day (3154 days later) »