« first day (1413 days earlier)      last day (3538 days later) » 

9:00 PM
Oh, oops. I did a reset but only unstaged changes, didn't do --hard to reset the files. Noob me. Rerunning tests now.
 
it would be nice to have a green travis build...
so at least that can be used as a reference
 
someone download release tarball of php-5.6.0
tell me if it's missing files
ext/pcre/pcrelib/pcre_jit_compile.c
@FlorianMargaine the release tarball is fucked when I download it too ... something strange going on I think ... possible voodoo
 
@JoeWatkins possibly my git was messed up...
trying to rerun ./configure et al
 
but I got source from php.net on your machine and mine, they are both missing files
 
are you sure about that? maybe pcrelib got changes?
 
9:07 PM
Is there a function that sorts an array without reference?
 
I can see the file on git.php.net
 
oh...
in the PHP-5.6 branch?
 
@SecondRikudo What do you mean "without reference"?
 
it seems to compile fine
 
sort() sorts an array passed by reference
I don't want to affect the original array, and I don't want to start cloning shit around.
 
9:08 PM
I dunno what the fuck is going on ...
 
"seems", let me keep going.
 
Google indexed.....
 
@SecondRikudo As far as I can tell, all of the built-in array sorts work on the passed array directly.
 
yeah it looks like it went further than pcrelib without issue
 
Sucks :|
 
9:10 PM
@SecondRikudo Where is a problem?
 
@SecondRikudo function lolsort(array $array) { $clone = $array; sort($clone); return $clone; } ?
 
@Charles Yeah, I could do that myself :P
 
yeah not in there
should finish
 
Thanks though
I'll manage
 
9:11 PM
yeah was just looking at that
 
dunno how my git repo got fucked up :|
I forked github's php-src and cloned my fork...
thanks for your help anyway
 
Is it worth sorting an array before searching something in it N times?
 
@SecondRikudo Measure it.
 
It also depends what you're searching for.
 
I don't have the size of the array, or the number of times I need to iterate it.
 
9:14 PM
npnp
 
@Charles Something I can sort to appear first in the array
Or at least near the top
 
there are many warnings...
 
About eleven years ago, we ended up rolling our own sort routine that first scanned an associative array into buckets of keys, figured out which buckets we needed to sort based on which slice of the list was being looked at, then only sorting within the buckets. We had a huge-at-the-time dataset to worry about, and couldn't do it in the (non-existent) database...
 
@Charles And What is an input?
 
@SecondRikudo So, what, just changing the sort order of the keys then?
 
ThW
9:15 PM
for a single search no,but searching on a sorted array is much faster, so if you have to do at more then once sort it, build indizes,...
 
Just want to tell @JoeWatkins, @NikiC, @ircmaxell and @rdlowrey that your codez is and will be used at one major hosting company :P Of course, other than PHP itself.
 
@VeeeneX About 100k records, pulled from a delimited text file on every pageview...
 
So you guys make me look good.
Even tho I have no idea what I'm talking about.
 
@webarto always a pleasure ...
 
@Charles Ok
 
9:16 PM
Thanks, Danke, Hvala, Spasiba.
 
 <?php
    function lolsort(array $array) {
     $clone = $array;
     krsort($clone);
     return $clone;
     }
     var_dump(lolsort(array(3 => 'a',4 =>'b', 1 =>'c')));
 
ThW
@Charles tried to convert it into an sqlite db on first request?
 
@webarto which codes would that be :-D
 
@Charles
sort() rsort() asort() ksort() arsort() krsort()
 
9:19 PM
@ThW Perl application designed for late 90s era shared hosting, targeting 5.00503. No databases allowed, and this predated sqlite.
 
:D
 
@VeeeneX wat
 
ThW
ok,but still this is now if you want to do any kind of query or aggregation, why not converting it into sqlite?
 
@JoeWatkins ok, make passed
my git repo is really fucked up...
 
@ThW I no longer work on that application, haven't in eight years. It's dead as a doornail. In fact, I think I have one of only a few dozen surviving installations.
 
9:22 PM
@FlorianMargaine burn it ... with fire ... twice ... then stamp on it ...
 
yeah, already done
 
ThW
@Charles burn it ... with fire ... twice ... then stamp on it ... ;-)
 
@ThW Can't until I write a replacement. Or port it to something modern. Forum software, and all modern forum software sucks.
 
shred should be good enough.
 
ThW
@JoeWatkins thanks for the template
 
9:23 PM
hehe
 
@JoeWatkins replied
 
ThW
@JoeWatkins will I met you in Manchester?
 
you will
 
ThW
nice
 
@LeviMorrison Pong
 
9:29 PM
Larry asked q on blog too ...
 
0
A: Filtering by value X from array Y with a fallback

Madara UchihaThere are a few things I would have done differently, I'll say those before showing my own solution: What's this magic number 1000? What does priority 1000 mean? Why is it hardcoded? You should be using type hints wherever possible (You can typehint an array). Instead of iterating all of the $t...

 
yup, saw that
 
Any comments?
 
and have a good answer to it me thinks
 
ThW
just for a chance, does anybody has worked with mpeg/dash lifestreams inthe browser, I use dash.js but the result is not really usable
 
9:32 PM
So I go to http://www.ibiblio.org/catalog/ & immediately notice an APC error on the right pane. *sigh*
 
@JoeWatkins Why do people feel the need to have error_reporting on in production environments?
 
@SecondRikudo that's not the issue. The issue is that errors happen at all.
 
@bwoebi Shit will happen
If you can recover, recover and shut up about it.
 
this isn't actually an error ... that code path should never be traveled, this is bad programming being reported to the user ... apc is a mess ... assumptions are made everywhere ... it never checks return values from any calls to acquire release or destroy mutex ... that's why it locks up, that's why it fails to allocate memory (even though management strategy says cache should be purged if full, there should be no means for that to happen)
 
If you can't, display a 500 error, apologize, and log the error.
 
9:35 PM
make clean isn't good enough :(
or is there a make very clean?
 
@FlorianMargaine For one thing to be make clean, another must be make dirty.
 
make distclean
 
ah. Thanks.
 
I can't even approach these problems in apcu, it has to support so many differnt kinds of locking that it's it is impossible to solve ...
xinchen wrote a real clever lockless cache ... it's really clever, nobody ever even bothered to research it ...
 
you mean the yac one?
 
9:38 PM
yeah
very cool thing
I have a reservations but it needs researching, I'm wrong all the time ...
 
clever code is terrifying
 
florian@fedora php-src$ /opt/php-zts/bin/php --version
PHP 7.0.0-dev (cli) (built: Aug 29 2014 23:38:17)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.8.0-dev, Copyright (c) 1998-2014 Zend Technologies
yay
 
s/7.0.0-dev/6.0.0-dev/ and your yay will hold
 
@ircmaxell :-)
 
florian@fedora php-src$ /opt/php-zts/bin/php --version
PHP "7.0.0"-dev (cli) (built: Aug 29 2014 23:38:17)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.8.0-dev, Copyright (c) 1998-2014 Zend Technologies
 
9:40 PM
there are funnier branches it seems
remotes/origin/broken-5.6-20140206
 
enough to put the 7 in quotes^^
 
The Recki Compiler Toolkit for PHP, by Google! https://github.com/google/recki-ct
ppl no speak precise so good ...
 
@ircmaxell why did you put the repo under github.com/google and not github.com/ircmaxell?
you're forced to put it there if it's in your 20%?
 
@JoeWatkins s/Google/@ircmaxell/ :-/
 
it's bound to happen though ... a pretty honest mistake ...
 
9:43 PM
@JoeWatkins it is by google. Look at the copyright lines in the files
 
@bwoebi github.com/google... nothing else to expect
 
Warning: MemcachePool::set(): The lowest two bytes of the flags array is reserved for pecl/memcache internal use in
WTH is that
 
@FlorianMargaine I don't want to go into it much, but it's a 20% time project, meaning it's google copyright, and hence released through Google
 
@FlorianMargaine ircmaxell being the one who put it online…
 
9:45 PM
Ah right, compression thingymabob
 
@bwoebi and look at the commit history
 
@bwoebi yeah, but you can't say it's not google when it's under github.com/google, and you can't say people can't be confused
 
yeah…
 
this is all very confusing ... on the one hand you can't call it a google project, on the other, you have too, and somewhere in between is everyone that doesn't work for google thinking "wtf" ...
something is either google backed or it's not ... either a google project or it's not ... except if it's a google project, it seems ...
you see how we are confused ?
 
@JoeWatkins I know. It is a Google project, but it's not an "Official Google Project". meaning there's no team, no budget, etc. It's just volunteer time by googlers
and by "Googlers" I mean myself
3
 
9:48 PM
and this "dave", no?
 
I see I see ... so we can't call it google backed, but can call it a google project
 
@ircmaxell Had to star this.
 
he's not a googler I don't think ... I think I met him at a phpthing ... did I @Fabien ?
 
Who?
 
@FlorianMargaine he signed the CLA, and submitted a pull request
 
9:49 PM
oh, ok
 
Dave Hulbert
 
oh, an hour ago
 
The speaker. We didn't speak to him directly no.
 
First contributors are always typo type.
 
@webarto which I almost wanted to deny, but what the heck
 
9:52 PM
Well opening a PR and adding yourself to contributors over one letter is too much, IMHO.
It creates a false github profile, too.
 
yeah I think so too
 
he also fixed a bug that I should have caught
yay to net splits
 
Turn on error reporting :P
 
I had it on
I just didn't have a test covering that portion of code
 
@Fabien I think he was the guy who said "thanks for pthreads" on the way out ...
typo pr's are annoying
 
9:57 PM
@JoeWatkins Yeah, think so.
 
but shows they are paying attention, and it sets the tone I guess ... there's no much point in putting effort into actually trying to be helpful if you're not willing to merge that kind of pr ...
I'm guilty of ignoring them though ...
because they can start stupid arguments ...
 
I think they load up the project and have tool check for typos.
 
@Fabien I remembered a face, and name ... at the same time ... pretty impressive ...
 
@JoeWatkins lol. You remembered the compliment ;)
 
lol perhaps
 
10:01 PM
ugh
pushing takes so long
 
I thought it was quite an achievement ... but probably right ...
 
I have a good download bandwidth
upload.... not so good
 
@rdlowrey So I think my use case still needs access to the Request object before it is sent over the network, even when a user passes a string to Client::request. Here are my reasons why I think we should have a RequestGenerator
That being said my use case is supposed to be for testing stuff and I don't mind using some workaround if you don't think the extra functionality/maintenance is worth it
 
this kind of bug requires an RFC? bugs.php.net/bug.php?id=67915
 
well ... it requires discussion
 
10:08 PM
this one looks like so too.. bugs.php.net/bug.php?id=67837
 
that would
 
@JoeWatkins Well it is an achievement, you remembered what I forgot :P. We should mingle more though.
 
and an argument ...
 
just to confirm: any development for php5.6 must be done on the PHP-5.6 branch?
 
if you implemented the first such that it was backward compatible, that probably could get in on a PR and bit of discussion around it on irc or mailing list...
 
10:09 PM
ah, thanks.
 
@Fabien we should ... I'm not great at mingle ...
 
It's easy. Walk over to someone, say hi. The rest is just awkward silence.
 
lol
 
you guys prefer github PRs or patches by mail?
 
handwritten on your best correspondence stock
 
10:14 PM
put a patch on the bug report, then goto #php.pecl on freenode and make noise, if that doesn't work because everyone is looking at kittens on the internet, then email to the list ... you might get told to email to list anyway ...
 
@JoeWatkins you like kittens a lot, don't you? :D
 
@derp hehe ...
wait it's on EFNet I think ...
I dunno, for me its on idle.php.net
 
it's on efnet
 
is efnet
@FlorianMargaine computers are good for two things ... 1) kittens 2) developing ways to make more pictures of kittens available, faster
 
sorry... I prefer dogs
 
10:17 PM
they don't like me ...
even little ones make me edgy and they can sense it ...
 
@FlorianMargaine Dogs are way better than cats
 
ok, either I don't know how to use git, or the repo is fucked up
 
I'm out, later all!
 
lata @ircmaxell
 
10:21 PM
See ya
 
@ircmaxell Enjoy your extended weekend.
 
you all too :-D
 
extended weekend? was today an holiday?
 
@bwoebi Monday is
 
10:23 PM
@cspray in US? okay.
 
/home/florian/src/c/php-src/ext/opcache/Optimizer/pass1_5.c:15:1: error: expected identifier or ‘(’ before ‘if’
 if (ZEND_OPTIMIZER_PASS_1 & OPTIMIZATION_LEVEL) {
 ^
make: *** [ext/opcache/Optimizer/pass1_5.lo] Error 1
florian@fedora php-src$
hmf...
 
@bwoebi Yep, we call it Labor Day
 
@cspray That day was about four months ago I thought…
 
@bwoebi That sounds like Memorial Day
 
first May is Labor Day in most countries of Europe I mean…
 
10:26 PM
Ah
 
can confirm
 
Well, you know how us 'Murican are... we can't be copying no dirty foreigner
 
(for France)
 
@cspray Soviet... but funny thing Labor day was American thing.
 
Of course it was.
 
10:29 PM
s/Labor Day/International Workers' Day
 
oh what the fucking fuck
 
can previous revisions of a question be scrubbed? another poor bastard just gave away his db credentials stackoverflow.com/questions/25576944/…
 
@derp You can flag it for mods
 
Hah!
That happens way more times than it should
 
/me sleeps
nn
 
10:36 PM
See ya
 
later mr joe
 
@derp Man, that looks like some really awful code to be working in
If you see mysql_connect 3 lines above <html> you are doing it wrong on so many levels.
 
@DaveRandom I just had a quick look again at the cvpls repo. Man talk about code rot...
 
10:51 PM
@cspray to their credit, they are using mysqli. :p
 
@FlorianMargaine still have compile issues?
 
nope, all sorted out
forgot I had to run ./buildconf after checkoutting to another branch
 
yes
actually .. you should also check out the git-new-workdir script
 
@derp Perhaps. It didn't look like they were using prepared statements though which makes that a wash.
I can't recall though and they removed the question
 
they weren't
 
11:02 PM
@Ja͢ck will do, thanks
 
Then I would argue that might actually make it worse somehow
Still... holy amazeballs at that code
 
they were also writing out a new php file per user to generate profile pages so.... yeah
 
11:16 PM
@Ja͢ck is my comment alright? bugs.php.net/bug.php?id=67731
 
@FlorianMargaine Do you enjoy drupal development more than bespoke?
 
bespoke?
 
@ircmaxwell Great blog ! And PHPPHP amazing work !
 
@Fabien sorry, I think my english is failing me. Care to find another word?
 
Just why do you predominately work with drupal?
 
11:18 PM
Oh
I kinda fell in it
I wasn't much of a developer 3 years ago
 
Do you not feel limited by it for work?
 
The company I was in decided to do a Drupal site and I was assigned to it
At work I don't have the choice of technology
 
But you do have a choice of where you work.
 
Honestly? You'll always work with not so good technologies. The team you work with is more important than the code you work on
 
> OS: travis-ci ... :)
 
11:21 PM
I wanted a company that cares about development, not about the latest Dev trend
 
in any case, the test case looks fine to me and if it passes on 5.6, then great
 
It doesn't pass yet
Did you read the comment? :p
 
well, it's because you're expecting the wrong thing heh
 
And so I assume your company does that.
 
I need more info, wasn't sure if it was the right way to ask
@Fabien the new product my future company is doing relies on several technologies, some in php, some in C, some in Go
 
11:24 PM
@FlorianMargaine You shouldn't pick a .o file, because those are considered executable :)
 
And yeah, I know the developers are great
 
Just create a file with bogus in it .. like, the output of /dev/urandom
 
how do you do that?
 
dd if=/dev/urandom of=output.bin count=1
 
oh, nice
I never think about dd
 
 
I can reproduce now...
 
aha!
btw, depending on how big that older binary file was, you may wish to consider pruning it from the repo
or maybe interactive rebase would get rid of it as well ...
 
it was 6k
but yeah I'll probably rebase
to clean up
 
:D
 
I tried coding when I got home but my baby wanted to sit in my computer chair and watch Earth, Wind and Fire music videos instead. :D
 
11:35 PM
@FlorianMargaine have you tried running finfo on a directory? heh
@LeviMorrison My cat (the only other living thing in the study) is pretending to be a statue .. perfect :)
Kids will wake up soon, though ..
 
Fatal error: Successfully authenticated! in Unknown on line 0 — that's how I debug my php extensions ;-D
 
I think I can find a reason why that would happen :)
 
@Ja͢ck nope
 
It yields "directory" as a "mime" type
 
reading the code, currently
yeah, the code says so
 
11:40 PM
oh, the fix you probably want is in libmagic/encoding.c
 
I thought it'd be more in libmagic/funcs.c
 
*code_mime = "binary"; ...
well, maybe that too.
 
I first tried randomly replacing binary with application/octet-stream, didn't work
so I just read the code :P
and as line 289 in libmagic/funcs.c shows, it should print type, which is defined as application/octet-stream
 
Yeah, you don't simply randomly replace code ;)
 
11:45 PM
@FlorianMargaine Yeah, but it gets passed to file_encoding() by ref
 
oh yeah, didn't see that
 
yeah... I changed that, but it doesn't work :/
I run make clean; make; TEST_PHP_EXECUTABLE=/opt/php-zts/bin/php php run-tests.php in the fileinfo directory
still get the same test result
 
ugh, why did they have to mix up mime type and type ...
 
love the struct name... "magic_set"
 
11:56 PM
It's MAGIC
lol, it says "binary; charset=binary" for me (without any patch)
 
how do I make with debug symbols?
so that I can run gdb?
@Ja͢ck rofl
 
./config.nice --enable-debug
 

« first day (1413 days earlier)      last day (3538 days later) »