« first day (2205 days earlier)      last day (2759 days later) » 

5:00 PM
@Jimbo I … uh … DO IT
 
ThW
Not me, I build an editor that was scriptable with php
 
@Jimbo See! Alcohol works!
I knew it!
@ThW So @Jimbo is lying again?
I am shocked. SHOCKED
 
@JoeWatkins so, what about exposing a file descriptor in libui?
 
It's almost getting christmas again
You know it's comin
 
@bwoebi so removing timers would also have fixed it?
well, masked the problem
 
5:03 PM
@DaveRandom Same thing
:P
 
It's a good thing I didn't do what I suggested then :-P
 
@DaveRandom removing that timer in SocketPool essentially would have fixed the actual memory leak
@DaveRandom What did you suggest?
 
@DaveRandom Good/Evil it's all relative!
ALSO THE AMOUNT OF EXCLAMATION POINTS I AM USING CLEARLY SHOW I AM SLOWLY BUT SURELY REACHING A CERTAIN PEAK!
 
@bwoebi replacing the repeat() in the github poller with resolve($loopingGenerator) and yield new Pause
Which btw I am still going to do because there are good reasons to do it
 
@DaveRandom this would have made no difference — it just would have leaked a bit more :'-D
 
5:05 PM
Isn't that still valid advice @DaveRandom?
yes!oneelevenpoop
 
@bwoebi then what was it, the once() for the keepalive timeout?
 
@DaveRandom yes
 
OK so do you think this is also the cause of the actual memory usage issues as well @bwoebi?
I'm going to add some kind of !!stats or something where we can keep an eye on it simply
 
well, there seem to be no memory leaks anymore since the last restart, so probably yes
 
@bwoebi well there's some interesting reading in the issues list, other people have tried and it doesn't look well supported everywhere
 
5:09 PM
@bwoebi wait, why was it leaving sockets in CLOSE_WAIT then? surely there's still logic within artax/socket to avoid that? i.e. the timer was still presumably firing?
 
@DaveRandom the timer fired, but the Closure containing the SocketPoolStruct was retained (and the SocketPoolStruct held the final reference on the stream resource)
 
it is difficult to know what is possible ... I think we (you) should try something and work up a patch, and hope it be merged upstream (probably would be if it were well tested on every platform)
 
@JoeWatkins do you have a few quick links?
 
@bwoebi doesn't it explicitly shut down the socket anywhere? It probably should...
 
@DaveRandom no, and there's no need to either.
 
5:11 PM
does PHP do it underneath when it releases the resource or is it just left to the OS?
the latter sounds risky...
 
the former
 
OK cool
then winner
 
the OS only cleans these things up upon program close
 
38 mins ago, by PeeHaa
> 48.69 Mb /usr/bin/php -d error_reporting=-1 -d display_errors=1 /srv/www/Jeeves/cli/run.php >> /srv/www/Jeeves/data/log.txt 2>&1
I'm not saying bob is a sexy motherfucker for nothing
He has to work for it ya know
 
@bwoebi I assume since Remi is suddenly taking an interest that you have made some move to get it in to pecl?
 
5:13 PM
@PeeHaa ah stop hiding the truth … Everyone knows that I've just bribed you to tell the world that :-D
 
Bitch that assumes bribes are needed
:P
 
:-P
@DaveRandom good guess :-)
 
OK cool well I will do some more windows builds as it currently stands but I guess the build system can deal with it once it's up there
 
@DaveRandom So basically. Whatever I need on Windows I can start bugging you rite?
 
...
I have a fully functioning Windows build system, yes
 
5:18 PM
Is there a web frontend for it yet?
 
Well, I managed to build ui and uv
 
:P
 
so at least for 2 letter things starting with u it works
 
Are you trying to C. Wright at my level or just typos :P
It will not get better tonight
 
also it says help wanted, and owner opened it ...
 
5:21 PM
@PeeHaa STOP DRINKING
 
parro-it maintains the node wrapper
 
40 secs ago, by bwoebi
@PeeHaa STOP DRINKING
 
although that's odd because andlabs have a node wrapper too
 
Wes
lol @PeeHaa. btw twitter.com/bgmotogp/status/789158156849020928 found this the other day
one handed motorbike drifting, just because
 
5:25 PM
Waaaay too slow :P
That's like last week's news
 
Wes
:P
 
:-D
 
there is something wrong with people who race motorcycles
 
Wes
never saw that before... is that motogp or superbike?
 
¯\_(ツ)_/¯
 
5:26 PM
> Win32 it's not publically exposed (though I can show you how to get it anyway); instead either:
demand people use MsgWaitForMultipleObjectsEx.
 
Looks cool is all I need to know
 
@JoeWatkins ^ PHP is using MsgWaitForMultipleObjects() internally in stream_select() func… but not an option for other loops like libuv (???)
 
Wes
@pee did you watch ricciardo's shoey past race?
with gerard butler
 
:D
 
Wes
ricciardo convinced butler to drink from his (ricciardo's) shoe
 
5:30 PM
ik. Such a hero
 
Wes
then butler signed the shoe. you can read it here pbs.twimg.com/media/CvgpRooXYAA5h1a.jpg:large
 
@JoeWatkins E.g. libuv is using I/O completion ports on Windows
 
He's such a cool guy
 
Wes
ricciardo you mean? :D
 
yea
 
Wes
5:32 PM
yeah he's great
i dream seeing him at ferrari
 
It's a great year in general for f1
 
Wes
and he dreams it too, probably :B
 
@JoeWatkins But I believe you have more knowledge about it (on windows) than I do, lol
 
@bwoebi That's not very nice to say :P
 
@JoeWatkins alternatively you might eventually ask Anatol whether he knows the right people who could help on that issue?
 
Wes
5:34 PM
imo this year sucked. not the worst year but pretty much
 
@Wes 2016 <3
 
@Wes It doesn't
 
Wes
and i'm usually happy even by just watching manor overtaking
 
Just depends on what you want to get out of it
 
Wes
compared to past year it's better, but if you compare to, say, 2010, f1 is way, way, worse
 
5:37 PM
brb shawarma
 
Wes
brb qualifying
 
@bwoebi btw what's the status of the ext/sockets + win32 thing? Do you want me to test if/how it works with shared/static ext/sockets?
 
@DaveRandom yes, please
 
k will do it this evening
 
It's kinda scary to wait for verstappen to either fuck up at the start (p whatever) or fuckup that crappy engine :P
 
5:38 PM
@bwoebi for expediency, do you have a test script?
 
@DaveRandom there's no phpt test yet
 
k I will just write one
 
Wes
crapping myself out because of the earthquake. checking every 2 min if something happened :(
 
@bwoebi oh no I really don't
 
9 mins ago, by bwoebi
@JoeWatkins alternatively you might eventually ask Anatol whether he knows the right people who could help on that issue?
 
5:43 PM
yeah was just replying to that bit ...
"yes" basically ...
he'll know how to do it himself most likely
I really have a hard time reading objc, I think I hate it ...
 
It's... odd
 
yeah but it's beyond just unfamiliar ...
 
Been there. Done that. Still don't like it
 
:D
 
user image
5
 
Ah that looks familiair. @Jimbo DOING GIRLY COCKTAILS :)
woopsy caps
 
or milk
 
Room11 drinks in Dusseldorf with @Gordon and @ThW. @PeeHaa's mom is taking the picture
 
6:05 PM
:p
Also photo taken with a potato iphone
@ThW that better be vodka
That's still in dusseldorf right @Jimbo
 
Yeah still here!
 
Toll
 
nice click Jimbo :)
 
ThW
6:24 PM
@PeeHaa gin
 
@JoeWatkins what you mean?
does setMargin change the index?
 
@ThW works for me :)
 
◇/
 
Booyaa
I have a long Island Ice Tea just in case you are wondering
@PeeHaa ∆
 
Pina Coladas FTW
 
6:30 PM
PeeHaas momalada
 
ok @JoeWatkins libui seems to totally broken on windows...
same change on ubuntu and windows, on windows it crashes
 
6:44 PM
fucking around with tsrm … ugh.
 
@Gordon Now that's a proper drink. Although I only know that stuff drinking out of an actual bucket
 
7:01 PM
@Jimbo I'm all for drinks that taste nice and eschewing gender stereotypes and whatnot, but also Ha! Gay!
@PeeHaa lolwut
Long Island is one of those drinks that it it's made well is like 25% abv and tastes like a soft drink
 
@DaveRandom I'm pretty sure there are pictures of me diving into a bucket of the stuff somewhere on the web
 
It's also a drink that gets you drunk from the bottom upwards, you can talk fine and people think you are suave and/or sober until you attempt to stand up to go to the toilet and you fall over
 
Highly accurate
 
7:16 PM
!!should I have red bull Jägermeister or whisky sour next?
 
You should whisky sour next.
 
I'll go with jägerbombs
 
yeah...
 
7:39 PM
Not a bomb but long drink. And more manly than @Jimbo's strawberry daiquiri
 
@Gordon I am agree. Even that is more manly
 
Wtf … drinks being manlier than other drinks…
 
I have array $k['val']. This key may have value 0, 1 or may not be set. How should I use isset() or empty() to output a check box in html?
 
7:58 PM
!!docs array_key_exists
 
[ array_key_exists() ] Checks if the given key or index exists in the array
 
@Jimbo ^
 
hahahaha
 
LOL
Cant grow a proper beard :-(
 
$app=(isset($prop['app']))
			?($prop['app']==0
				?"<input type='checkbox' value='1' selected />"
				:"<input type='checkbox' value='0' />")
			:"Not Provided";
@Jeeves Is my way right?
 
8:08 PM
Let me talk for @Jeeves: No that is horrible use of the ternary operator
 
@PeeHaa :/
 
Use a default value and a normal if statement
 
@PeeHaa Should I use if else statement? Is there a good way? I think its shorter code.
 
!!is @VishalKumarSahu's approach OK?
 
Yes.
 
8:10 PM
That kinda backfired didn't it @Gurden
 
Nope. I like it
 
@VishalKumarSahu Size is a terrible metric for quality
And yes indeed. That's what she said
 
@PeeHaa Okay, I got that.
 
@VishalKumarSahu Having to find parens hidden on multiple lines alone will be annoying for the next person
 
@Gordon Thank you.
@PeeHaa Thank you. I am fan of these ternary operators.
 
8:14 PM
Yes I can see that :) But I'm sure next week you would be less impressed :P
 
@MadaraUchiha What are you doing in this pic?
@PeeHaa Ha Ha Ha :D Yeah! just realised it.
@PeeHaa Apart from ternary operators, is my approach to use isset() and empty() right? (Or should I go for array_key_exists()? I am getting the desired output currently, but who knows future.
 
What you have is fine (logic wise)
 
@PeeHaa Thanks :)
 
!!should I open that wine bottle now or just have another beer
 
You should open that wine bottle now.
 
8:29 PM
!!should @Gordon go home at 11 or stay out and buy everyone drinks and get smashed?
 
@⁠Gordon should stay out and buy everyone drinks and get smashed.
 
!!should @Ekin open the JD or should she not?
 
Dunno.
@⁠Ekin should open the JD.
 
Good boy
 
Heh I left that at my bro's place tho hence the wine
You guys seem to be having fun out there
Cheers all
 
8:34 PM
@JoeWatkins there?
 
9:20 PM
yes @bwoebi
 
@JoeWatkins too late, figured myself :-P
 
anyway, I got the answer wrong ... the answer was no, I wasn't here ... can you believe I got that wrong ?
such a simple question ...
 
@JoeWatkins well, you attached no tense
So, yes, you now are here.
 
9:35 PM
windows drives me crazy >.> cant compile ui bcs the configure has no --enable-ui option
what iam doing wrong?
 
You haven't put the ext source code in the right place
 
i followed the wiki
 
however there's no need to compile it yourself anyway
 
There's a DLL on PECL
 
9:36 PM
i want compile it :D
C:\php-sdk\phpdev\vc14\x64\pecl\ui there is the git clone of the source
should work or im wrong?
 
OK, did you buildconf after you got the extension source?
 
sure
 
try buildconf --force
 
C:\php-sdk\phpdev\vc14\x64\php-7.0.12>buildconf --force
Rebuilding configure.js
Now run 'configure --help'

C:\php-sdk\phpdev\vc14\x64\php-7.0.12>configure --enable-ui
Unknown option --enable-ui; please try configure.js --help for a list of valid options

C:\php-sdk\phpdev\vc14\x64\php-7.0.12>
 
it's --with-ui
also you need to have built libui
 
9:38 PM
y i know
--with-ui works mhmm
someone should mention that on the wiki
 
OK then you need to --with-ui=C:\path\to\libui
@Stricted it's dependent on the extension
some are --with and some --enable
 
ok
 
ThW
How you define the condition
 
If it relies on an external library, it's --with (as a general rule)
 
hai @Stricted
 
9:40 PM
hi @JoeWatkins
 
--with takes a path to the lib, --enable doesn't (is the main difference)
 
at least for debugging, you can see the child controls now ...
 
ok thanks @DaveRandom and tanks @JoeWatkins
 
var_dump() anything with children ...
 
then im going now to compile libui... :D
 
9:41 PM
libui I found pretty painless
 
@JoeWatkins 500 MB of output?
 
I find it all very painful
you don't need to compile that by the way, it's on the windows server
@bwoebi it's quite a lot yeah
 
@DaveRandom you managed to test uv on win?
 
ThW
@DaveRandom doesn't the macro define all variants and just the default is different
 
@bwoebi no I've only just sat back down at my comp but it's what I'm doing right now
 
9:42 PM
@DaveRandom when i have compiled libui where i should pu the files? C:\php-sdk\phpdev\vc14\x64\deps ?
 
http://windows.php.net/downloads/pecl/deps/libui-20161025-vc14-x64.zip
http://windows.php.net/downloads/pecl/deps/libui-20161025-vc14-x86.zip
 
or, well, getting ready to do
 
@DaveRandom that's lame … just kidding :-P
 
that wiki is super super out of date
do you have a compiler, and the correct SDK ?
 
ThW
Not the only core doc that is out of date
 
9:44 PM
all you need to download is the binary tools package, the release you want to test against, and the devel pack for that release and you can phpize extensions like you do on proper operating systems
 
@Stricted just put the .h files and the .lib in a directory somewhere (anywhere, doesn't really matter) and do --with-ui=C:\path\to\those\files
 
ok
 
@ThW well you call either PHP_ARG_ENABLE or PHP_ARG_WITH
 
it expects h files in \\include and lib files in \\lib
 
@JoeWatkins oh I forgot that exists
 
ThW
9:48 PM
And you can define the condition as a positive or a negative
 
so did I, all these years I have been compiling all of php, just to build one extension ...
I just found out the other day you don't have to do that ... someone fixed phpize ages ago and never thought to write it down anywhere, or announce it, or even whisper to anyone ...
I was gonna do a page the other day for the wiki, but I can't get my head around the requirements, and when you ask anyone about them, the conversation never actually ends ...
it will be simpler when we don't have to care about 5 anymore
 
good to know
 
ThW
Does anyone know how to get runtests not to sent reports and not ask for it
 
i had the compiler installed anyways
 
you still need the compiler, but you don't need to do all that stuff the wiki with the strange dir layout, and you don't need to build any of php
 
9:51 PM
ok
 
@ThW Set the environment var NO_INTERACTION to something that PHP will see as truthy
if (!getenv('NO_INTERACTION') && !TRAVIS_CI) {
 
ThW
Thanks I will try that
It is really annoying for the samples
 
NO_INTERACTION=SHUT_YOUR_STUPID_MOUTH_PHP
recommended ...
 
@JoeWatkins I came across an SO post a while ago where someone (I think Johannes?) mentioned it in a comment. On an SO answer. Apparently that's what passes for an announcement.
 
\o
 
9:55 PM
@JoeWatkins I was going to suggest NO_INTERACTION=Bitch!
 
I wrote bitches first
 
@DaveRandom how's the talk practice going?
 
@Wes Legit though, those avatars you've done are amazing
 
@Danack badly. I'm taking an evening off because I'm killing myself over it, basically.
 
ThW
I am still trying to understand the attached struct implementation
 
9:57 PM
what struct ?
 
Yeah...prepping a talk takes a significant amount of time...
 
@Sean they are ... next year, I want the hat ...
 
@JoeWatkins I think he's referring to zend_object and the weird struct offset thing for interned data, which I also really don't get
 
@JoeWatkins :P Trade?
 
ThW
Attaching a struct to a zend class entry for internal variables
 
9:59 PM
It used to be that you put the original struct at the start of your custom one and then you could just cast it, I understood that
 
ThW
I am trying to understand and build an example for it
 
you're trying to do something like that, or you think that happens ?
it's for very fast access to declared properties, it works by allocating additional memory after each zend_object (you are responsible for this in create handler) suitable for storing sizeof(zval) * numDeclaredProperties
 
ThW
Basically a private variable that does not show up and does not need the hash table lookup
Yeah that
 
then when a property is looked up, we don't necessarily have to do a ht lookup, we cache offset from property info in this routine, or as you can see at the top, hit the cache on subsequent executions ...
 
ThW
Do you know my samples repository?
 
10:03 PM
samples of what ?
oh no
show me
 
which branch am I supposed to be looking at ?
 
ThW
class_property
 
public ?
or did you forget to push ?
 
ThW
This Logic But With An Internal Var
 
10:06 PM
whats up guys
anyone familiar with Laravel 5.2 here?
 
I think I get what you want ...
struct {
    zval *mine;
    zend_object std;
} my_object;
that ?
but you want it to be a property of the class, right ?
 
ThW
@JoeWatkins yea
No
 
okay, you only want to access it with internal methods ?
 
ThW
Yes as opposite for the PropertieS
Yes as opposite for the Properties
 
one sec
 
ThW
10:14 PM
Most of the current Implementations use a struct and not a property
a private property is easy
@JoeWatkins the repository is basically my learning notes
 
using a struct becomes very complicated by the way
the problem is garbage
 
ThW
I noticed will read that tomorrow
 
you can set a gc handler, and it can cleanup declared properties (zval** param and int* param), and a HashTable* (return value), but not more than one hashtable ... so if you store objects or arrays inline like that where they have circular references, you will get leaks ...
a better way to do it is use the property table, but cache the pointer to the property, letting the engine do the work the first time ...
and then set a write handler that prohibits writing as appropriate, if appropriate ...
 
ThW
I am a little drunk
 
then you should read tomorrow ;)
 
ThW
10:25 PM
Was out with @Gordon and @Jimbo
 
I remember now actually ...
there was a photo :)
 
ThW
Yeah
Most extensions use an attached struct but they abstract it away
Makes it difficult to understand
 
What is resolve supposed to do in Amp/Promise? Looking at EvalCode to try and get a feel of how yields are used
Damn, I still don't get any of this.
 
/me sleeps nn all
 
(i'm pretty sure it just means wait until the promise has finished the thing it's doing and has returned some data....but that could be wrong.)
 
10:47 PM
What sort of magic is $var = yield ...? I.e. what's the difference between simply yielding as opposed to using it in an assignment?
 
@Sean yeah....the manual could do with improving on it. 3v4l.org/pudOX
Using it in assignment allows two way sending.
aka magic.gif
 
Oh right I see, so this magic stuff is only really happening when you're running with Amp
Looking at the doc parts where it's saying you can wait for a promise by assigning it to a yield, but I'm guessing that's because there's something underneath where your code is which is pushing the result back up to you
 
Well, you could use it with other stuff, but Amp uses it to do stuff in co-routine ways.
 
@JoeWatkins GN
 
@Danack Good grief, well this makes things confusing :P Fun, but confusing for now
 
10:58 PM
[master 567ca4f] Fix #18 remove all traces of http parser
9 files changed, 2 insertions(+), 442 deletions(-)
 

« first day (2205 days earlier)      last day (2759 days later) »