« first day (1865 days earlier)      last day (3083 days later) » 

10:00 PM
the patch removes the optimisation where we do HANDLE_NUMERIC at compile-time
 
@rtheunissen yeah, no, I'd like to see the current patch, not the old PR ;-)
 
@Andrea so this is why php7 is so fast... /dev/null
 
@bwoebi my bad, removed.
 
My test case is contrived
Maybe I should remove the numeric strings from it entirely
 
there are moments where I wonder whether the whole numeric handling is worth it…
 
10:04 PM
Yes it is worth it
 
why?
 
compatibility, weak typing
 
Any OpenCart experts in here?
 
@Andrea I'm just talking about array keys
 
10:05 PM
isn't the opencart the one with the insane dev that doesn't care at all about security?
 
@ircmaxell ... github isn't open source?
 
yup! It is!
@FlorianMargaine nope. It should be "git" not github"
good point
 
@bwoebi $_GET and $_POST and string interpolation :)
 
@Andrea explain...?
 
oh, I didn't share the project here. My last weekend project: dpsv.margaine.com/packages/stable/php5/5.6.7+dfsg-1 (you can go to dpsv.margaine.com and search another debian package if you want)
basically: get sources debian packages sources. Including debian patches and the likes
with, what I like to call, a nice interface :D
 
10:10 PM
:-)
 
(better than downloading them on packages.debian.org)
 
though, I'd rather just see them from the real source, rather than the fake debian source
/me is strongly biased against debian for what they do to packages
 
@bwoebi $items[$_GET["item_idx"]] etc
 
@ircmaxell for most sources, you have upstream + a debian/ folder in which they do their stuff
@ircmaxell there's usually a debian/patches/ folder
 
@Andrea uhm… yeah… I'm talking about keys being all-strings … cast int keys to strings too instead of the reverse
 
10:11 PM
fair, but still
I wish they would just compile and stop forking projects
 
well, at least my site lets you easily see what patches they apply :D
 
If you do something like this in artisan tinker, $user= new User() and then screw up by doing something like $user-namme = "bill" can you drop the namme attribute w/ out re-instantiating the variable?
 
fix your code
 
@FlorianMargaine, are you talking to me?
 
10:16 PM
Do you mean fix my code here in the chat...or don't screw up, otherwise you have to retype your code?
 
don't screw up
 
Okay, I thought so. I take things too literally a lot...
A programmer is going to the grocery store and his wife tells him, "Buy a gallon of milk, and if there are eggs, buy a dozen." So the programmer goes, buys everything, and drives back to his house. Upon arrival, his wife angrily asks him, "Why did you get 13 gallons of milk?" The programmer says, "There were eggs!"
 
interesting
(the platform, not the result)
 
10:36 PM
@ircmaxell a room owner in the js room used to work at runnable
 
@ircmaxell happy new pic :-)
 
(SomeKittens)
 
:-)
 
@AwalGarg Nope sorry. Not really familiar with programming books
 
Anonymous
@ircmaxell first time to see a free access to a linux machine with root privileges!!
 
Anonymous
10:41 PM
maybe, it's a simulator .. I can't tell
 
:-)
 
@ircmaxell also the result is interesting too ...!
 
not really
 
PHP knows 1 is equal with 'zero', that is not interesting?
 
Anonymous
@Shafizadeh it is a bug actually.
 
Anonymous
10:43 PM
or it should be
 
@NikiC finally done: git.php.net/… … was a bit more change than expected…
 
o/
I'm having this : mod_fcgid: read data timeout in 45 seconds
on my logs for a quite long cron I need to run that should send around 4k emails
 
I expected it to be more like the 10-min fix… turned out to be the 1-hour fix ^^
Tomorrow I'll try to fix the thing with f($x, $x = 1) in the arg passing cleanup… // good night.
 
@bwoebi Did you see the new yield from bug?
 
10:50 PM
@NikiC A new one…?let me check…
 
@NikiC this was fixed as a side effect of this one now…
the last values should be int(10) int(10)
 
@bwoebi okay, great ^^
 
FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10
- If I set FcgidIOTimeout 3000 would this do any harm? or setting that alone would help? (sorry to bug in, should I ask somewhere else?)
 
@bwoebi I really need to read and understand that yield from code
 
10:57 PM
@NikiC have fun and read the comment in zend_generator.h carefully… I'm off for now, but if you have questions, you can ping me ;-)
 
@bwoebi good night
you got home well?
 
I'll get home tomorrow ;-)
 
ah, right
 
And your flight was fine? :-)
 
The flight was fine, but I barely made it to it
 
10:58 PM
:-)
 
Last minute… ;-D // me sleeps with two elephpants :-)
 
That's right, @bwoebi went to ForumPHP
 
The RER B took something like an hour for the first 4 stations due to an "incident"
but after that thankfully normal and I still made it
 
@NikiC RER B??
 
@bwoebi Hey, where did you get the second one?!
 
10:59 PM
Trying to figure out how to re-optimise ZEND_HANDLE_NUMERIC and failing
 
@bwoebi RER B train to CDG
 
@bwoebi a "metro" line
 
@FlorianMargaine ah… okay. Abbreviations……… (At least I can guess CDG==Charles de Gaulle…)
 
Julien did warn me though that the RER lines are total crap and this kind of thing happens regularly.
 
@bwoebi RER is more like a train than a metro though
 
11:01 PM
@Andrea Add an EV flag? It will add one cond branch
 
(i.e. much faster)
 
@NikiC see twitter DM
 
@FlorianMargaine You live in France? Why did you not come to the forum?
 
@NikiC ev flag?
Where do those live
 
@NikiC I only found out there was a forum today
 
11:02 PM
@FlorianMargaine ah, okay
@Andrea sorry, extended_value
 
I would've tried to go otherwise :/
 
@FlorianMargaine It was great
 
@NikiC oh right, yeah, that can work
 
Apart from being too French, that is :P
 
ooh, that's not even an extra branch. If the flag is there we can assume const
(maybe ZEND_ASSERT() it just in case)
 
11:04 PM
Seems like French are not big fans of English language ^^
 
yeah, France is proud of its language
 
@Andrea branch on IS_CONST is not a branch ;) so this is an extra branch
 
@NikiC no problem… I wasn't too annoyed of being able to not speak English all the time… at least I'm more used to listen to French ^^
 
@bwoebi how did it go?
 
@NikiC it is a branch for most ops which call a function
 
11:05 PM
@ircmaxell totally would do again :-D
 
You're right otherwise though, good point
 
@NikiC lol, some talks were in french?
 
@FlorianMargaine most were in french
 
there were three tracks, and only one of them was english --- and even that, not always
 
11:06 PM
j'adore la PHP sept
 
@NikiC not always?
@Andrea le ou la?
 
@bwoebi There were a couple of slots where there were no english talks
 
@bwoebi neither
 
Yeah, no article :p
 
@Andrea I thought you meant "PHP september" and didn't understand... :>
 
11:08 PM
@NikiC well… after all we had enough time to speak in a small group ^^
 
@bwoebi Yeah. I ended up not seeing many talks
I found our chat with Rasmus today very interesting
 
@NikiC talks are boring when you know the subject at hand though, you'll end up going to confs just to have nice chats with other people
 
The part about how PHP originally implemented loops using ftell and fseek. That just blew my mind
Makes me wonder how PHP ever got popular :D
 
when you don't have a parser :-P
 
And no lexer either
 
11:10 PM
@NikiC amazing
 
@NikiC welcome to the club
 
And no mmap either ^^
 
@NikiC did mmap() already exist back then?
 
lol
 
Now I see why PHP 3 needed to rewrite the parser
 
11:11 PM
@Andrea lol
 
Thank you Zend
 
Yep :-) I sadly haven't understood everything… And for me it's hard to keep everything in mid-term memory when having to listen intensively… that's why I just stopped being around at about 1 p.m. and instead worked on the arg cleanup patch…
 
As annoying as they can be they made PHP have a decent VM
 
@bwoebi I think so
Wikipedia has a ref dating to 1983
 
Without Zend I don't guess PHP has had that tremendous success…
 
11:12 PM
What is mmap()? Maps pages to files?
 
@bwoebi where did you go? didn't see you in the speaker room below
 
@Andrea I'd rather say files to pages
 
@NikiC just sat on the stairs :-)
 
@Andrea Maps stuff to stuff
 
11:14 PM
@FlorianMargaine ah yeah it works how I thought it would
 
It's general virtual address space mapping
Mapping files into memory is one usage
 
@NikiC ah yes, on UNIX everything is a file, so :)
 
@Andrea mmap is usually the basic tool you need to write any JIT
 
huh?
 
Huh? Isn't that just +w? Why do you need mmap?
 
11:15 PM
mmap has not much to do with JIT
 
@NikiC can it also map memory to another memory location? (like a hardlink?)
 
@ircmaxell He probably means for mapping an rx segment
 
@bwoebi ah
 
ah yeah
 
well, in practice, I've always seen JITs being implemented with mmap
 
11:16 PM
@FlorianMargaine it's the alternative to mprotect()
 
@bwoebi I think so
 
@NikiC could be a nice alternative to some copying then sometime…
 
some people at Zend could read it cough
 
Zend JIT, remember that?
 
@bwoebi I'm probably wrong on that one
 
11:20 PM
IIRC wasn't it not a proper JIT
 
@Andrea it was an AOT compiler
 
Are we seriously mapping the text segment as rwx?
 
wtf…
 
That looks super fishy to me
 
11:22 PM
also… don't some OS just prevent X bit being set simultaneously with W?
 
@NikiC chmod 777 can never be wrong;)
 
what's this MAP_HUGETLB define?
 
@bwoebi OpenBSD does at least
 
@FlorianMargaine 2 MB page size (instead of 4 KB) oh, tlb, not page
 
@bwoebi Ah, it's mprotected to rx later: lxr.php.net/xref/PHP_TRUNK/ext/opcache/ZendAccelerator.c#2542
 
11:24 PM
@NikiC but… why?
 
@NikiC o.O
 
@bwoebi because we're copying it into it. however it should have been mapped as just rw for that
 
yeah that's what I was thinking
 
unless ... maybe it has something to do with us remapping the currently running code (?)
 
Anonymous
meh, haven't logged into my email server for 8 months, and now I forgot the password and the ssh port number :\
 
11:37 PM
@samayo this is why key based ssh is awesome....
 
Anonymous
Yeah, sadly this was done before I learned that fact.
 
Anonymous
scanning ports now though.
 
user5020521
can anybody tell me why I'm not allowed to access this page?
 
user5020521
403 forbidden so why?
 
Anonymous
11:40 PM
It probably processes Ajax requests only.
 
Anonymous
wild guess
 
user5020521
thank you
 
Seeing as you guys are talking about memory....does anyone know why PHP calls brk on every single request?
When I setup my server in the fully optimised situation, and all other system calls have been eliminated, PHP-FPM is still doing about 3 of calls to brk on every request, which takes about 2ms....which is about 25% of the time to serve a request.
 
@Danack We at least don't have direct calls to brk
 
So you're suggesting it's either an extension or something else doing the call?
or to put it another way, if I investigate, and find out that it is PHP doing it - I should report it somewhere?
 
11:51 PM
@Danack please report to me if you find something. I found this in swap-heavy applications, and didn't look much because the app was doing stuff it shouldn't, so we fixed that and it worked. But I didn't know where these brk() calls came from.
 
@Danack I was thinking about an indirect brk through some other API
@Danack At least report it here :)
 
hm
doesn't malloc() call brk when it needs memory?
 
@FlorianMargaine probably.....but you would have thought that once the current process had enough memory, that it would either stop calling it, or that the calls would start being very quick because the heap is already the requested size. At least for me it was being called a lot, and the call was taking a multiple milliseconds - which is weird to keep happening.
 
@Danack that sounds a lot like swapping. Check vmstat
@Danack iotop -P
 
@FlorianMargaine Probably. If it uses mmap only for large allocs
 
11:56 PM
@FlorianMargaine is there an equivalent of that for Centos 6.4?
 
@Danack iotop is on centos afaik
 
I made and put it on my todo list - github.com/Danack/TodoList/issues/1
kind of need to be in the right mood for tracing syscalls....
 
@Danack /proc/sys/vm should have some info
 

« first day (1865 days earlier)      last day (3083 days later) »