« first day (1411 days earlier)      last day (3537 days later) » 

12:00 AM
@rdlowrey What do you think about exposing some functionality on Artax\Client to allow global (from the context of the client) callbacks on After\Promise::watch($cb)? Something like Artax\Client::watchPromise($cb)?
Right now setting the callback on all promises is the only reason my use case needs to be inheritance. I need to capture all requests and attach watchers to every promise
Or maybe there's some nifty way to use Artax that I'm not aware of
 
@Fabien :D
 
12:16 AM
@NikiC Do you know of situations where -fPIC cflag must be explicitly mentioned in the config.m4?
I was reading this old comment that suggested it was necessary to get stuff compiled properly on 64bit.
 
user895378
@cspray I don't really understand what you're asking. Could you clarify?
 
@rdlowrey Sure, let me put up some code
 
user895378
@DaveRandom congrats man :) now you get to merge your SSL_pending() fix. Lemme know if you have any trouble merging into 5.6
 
user895378
@cspray If I understand correctly you could easily wrap the client object to do that.
 
user895378
You're talking about a callback for all events on all requests, right?
 
12:27 AM
@rdlowrey Yes
Simply wrapping isn't enough though... the wrapper needs to be able to pass Artax\Client typehints.
This isn't just "normal" use cases... this is meant to test API consumption. If I can't pass typehints for Artax\Client it is pointless that I've wrapped it with code that will only ever be used in a test case.
And this isn't meant to just test one specific API. This is meant to be a library to allow anybody to do that... not just specific APIs that I care about consuming
 
Is it just me, or is current php-src master b0rked?
 
@rdlowrey Here is a very rough code example of what I'm thinking gist.github.com/cspray/a8ad0182c8862f49fef2
That sample isn't meant to be how I would necessarily go about actually solving this problem but just demonstrating the principle of my idea
All that being said if we can't come up with some use case for why "normal" code would want to do this then I don't think it would be worth it.
 
something something That's not a unit test something something
 
@Danack Ok, not a unit test... fine call it an integration test
I'd rather not get caught up on the semantics of whether that is a unit test or an integration test or "whatever you wanna call it" test
:P
 
be warned, the guy giving that talk sounds like a massive twat, but he's got a point.
 
12:40 AM
And I'm adverse to the idea of writing a library to consume an API that doesn't have some kind of testing on it
I've watched it already ;)
 
@Danack he kinda is one, but he's good
 
@Ocramius I need to draw a diagram that's the equivalent of crazy/hot for girlfriends but good/asshole for programmers.
 
@Danack we all tend to become assholes as we become more and more pissed over time
for example: WHY THE EFF AM I DEBUGGING A QUERY SINCE 6 HOURS AGO?!
 
@DaveRandom Congrats.
 
@cspray I am super tired, but is the real problem as you said, "the wrapper needs to be able to pass Artax\Client typehints.", and so writing your mock/stub/wrapper class for use during testing is more difficult that it should be?
 
12:51 AM
@Ocramius Because you're paid per hour? :P
 
-.-
 
I'm running in circles for 7 days now.
 
@Danack Well, I'm actually wanting to write a library similar to github.com/vcr/vcr but for Artax :P
 
:D
 
12:53 AM
And now I have to go walk my dog. Be back later
 
Don't neglect the doge.
 
@cspray so that would still be better as:
class SaddleWithComposition implements Artax\ClientInterface {
	function record(\Artax\Client $client) {
	}

	function playback() {
	}
}
right?
 
@Ocramius how's life in Frankfurt?
 
Except there is no Artax\ClientInterface?
 
12:55 AM
 
@webarto :P
 
I mean, well yes, having ClientInterface would solve basically all these problems
 
@Danack Christoph Waltz, best.
@Ocramius I'm sirius :P Weren't you in Berlin? Or maybe that was Igor.
 
I vaguely recall something from @rdlowrey that he was taking the interface out for some reason...
And now the dog is starting to jump up and down... be back later for real
 
@webarto yeah, I'm in cryfurt :P
 
user895378
12:58 AM
@cspray Then all I need to do is expose an Artax\HttpClient interface and have the Client class implement that then the typehint thing isn't an issue. You can just hint against the interface and have the wrapper class implement it.
 
@Ocramius Ha ... Ha ...
 
1:10 AM
@rdlowrey I'm all up for some interfaces... I just remember you mentioning taking them out for a reason
Of course that could just be the beer talking
 
Anyone online with Zend karma?
This needs merging.
 
I have.
Travis is still running on that ...
 
user895378
@cspray i weeded them out before because the old ones were a mess and sucked because I didn't know what I was doing with regard to async at the time they were created :)
 
this regex101.com/r/rG2hB9/2 regex works in the demo but in the code it fails.
 
@rdlowrey Ah, fair enough.
 
1:16 AM
@Ja͢ck Ah, good point. It'll come back fail, though, as master has broken tests :P
 
user895378
@cspray I will add an HttpClient interface back though to match the two exposed methods on the new Client and that should address your issue.
 
@rdlowrey Yes, yes it would. Thanks!
Would it wind up having the setOption/s methods?
 
user895378
Oh, that too. request/requestMulti/setOption
 
@AndreaFaulds Yeah, just encountered an issue in ZEND_STRLEN handler =S
 
Awesome. Thanks for working through this with me :)
 
1:18 AM
I just had a crazy idea
function foobar(array/callable $thing) - allowing multiple parameter types
 
user895378
@cspray No problem, it's important for me to work out the issues in my code too :)
 
user895378
Good software takes a lot of work, man.
 
user895378
And collaboration.
 
Yes it does
 
user895378
No one person has a monopoly on good ideas.
 
1:19 AM
@AndreaFaulds uhh... no, we have contracts for that :|
 
Good software is free.
 
@Ocramius ?
 
@AndreaFaulds that seems to be a validation of mixed
 
@Ocramius It's like mixed but you specify the specific permitted types
 
Maybe int or something else first :P
 
user895378
1:20 AM
Is it just me or is there a lot more general positive feeling around php-src lately?
 
user895378
It seems like the project is moving along better than it used to be.
 
user895378
Better collaboration and more progress it seems like.
 
@rdlowrey Maybe the General Negative is on vacation.
 
@AndreaFaulds I see it working only with primitive types. For object types, interfaces should rule it IMO
 
user895378
Maybe just my imagination. Not sure.
 
1:21 AM
unless you implement it like Golang
 
@rdlowrey Room 11 bias.
 
@Ocramius I was thinking of UString specifically, where you'd want foobar(UString/string $qux);
 
user895378
@cspray It may be that. Perhaps just because @NikiC and @ircmaxell wrangled us all into participating it seems better :)
 
@AndreaFaulds yeah, but then people would abuse it :|
 
@rdlowrey the amount of infighting seems to have reduced, yeah ;-)
 
1:23 AM
Regulars in this room provided the password_hash APIs, an AST, return type hinting (eventually), and no telling what else things I'm missing
 
I can already see myself fixing a load of mixed and people getting interfaces wrong
 
user895378
Well 5.6 is largely a room 11 release.
 
Indeed
 
@cspray The power operator!!!
 
@cspray phpdbg
 
1:23 AM
It is hard to be a regular in this room and not eventually feel positive about PHP
 
The OpenSSL fixes were awesome too
 
Yep
Generators
 
user895378
Selfishly motivated, but still awesome :)
 
The list goes on
 
I have nothing in 5.6
 
1:24 AM
Cocaine
 
I did, however, remove Logo GUIDs in 5.5...
 
@rdlowrey with that pr i've become the 2nd biggest contributor to php-uv overnight lol
 
user895378
@AndreaFaulds Best. Contribution. Ever.
 
user895378
@Ja͢ck lol nice!
 
@AndreaFaulds Remove doesn't count :P
 
1:25 AM
btw, pierre mentioned we should move it to pecl.
which is reasonable me thinks
 
@webarto Oh, I actually added bloat, as data URIs take up more memory ;)
 
user895378
@Ja͢ck I told you @chobie is amenable to PRs. I think he's generally happy other people are starting to find it useful.
 
@AndreaFaulds Adding more bloat to bloat can't hurt :P
 
user895378
php-uv is actually really useful.
 
@rdlowrey Yeah, I'm wondering whether he's waiting for the OO interface before he's willing to move into PECL ... I've asked him to consider just releasing the proc version first.
 
user895378
1:26 AM
Well I'm a big proponent of waiting to push things out to official releases until you're good and ready.
 
It doesn't even build with uv 0.12 yet
 
user895378
Yeah, needs more testing, usage and improvement before it goes to PECL.
 
The question is whether OO will replace the whole thing.
 
user895378
Resources MUST die.
 
user895378
I don't even care from an API standpoint. But extensions need to stop using resources.
 
1:28 AM
In that case we'll have a whole lot of work ahead of us ;-)
 
user895378
Like. Now.
 
Surely we can have the OO as supplementary.
 
user895378
I would like to finish up all my existing userland projects by the end of 2014 so I can focus hard on libuv integration as a basis for future PHPs in 2015
 
user895378
I'd like to really get into working on php-uv as a primer for that.
 
user895378
Because having a good extension would provide all the functionality I need in the short term until core has a real IO model.
 
user895378
1:30 AM
Then I figure that experience can be built upon to try to build a core on top of libuv
 
user895378
Or at the very least a custom SAPI to do specifically what I want.
 
@rdlowrey we can probably have an OO up quickly if we just create a simple wrapper over the proc functions.
 
user895378
Yeah probably.
 
The definition of the interface vs the implementation should be about 60/40.
Would it be multiple classes / interfaces ?
 
user895378
I'm not sure ... I haven't given much thought at all to an API.
 
user895378
1:33 AM
Given the generally global nature of the event loop, though. I'm not sure how heavy into OO we really need to go.
 
I'll see what I can conjure up and we can discuss the "header" files so to speak.
 
You need to give me the code that makes you money @rdlowrey, I don't think I've progressed much in now - 12 months, while I'm working on challenging things, basically nothing new and radical.
 
user895378
We could stick with many of the same functions and just wrap up the C stuff in objects instead of resources.
 
Yeah
 
user895378
But an OO API would be nice.
 
user895378
1:35 AM
@webarto It's a grind man, I understand.
 
user895378
I wish I would have accomplished more than I have TBH. You start working on one thing then you realize that to do it well you have to fix/address ten other things.
 
user895378
And before you know it you've spent months and the original thing still isn't finished.
 
user895378
That's what my 2014 has been, anyway.
 
heehee i'm so happy seeing that green "build passing" image on php-uv <3
 
user895378
Hurray for not breaking stuff!
 
1:36 AM
@rdlowrey yeah, that sucks =S
 
@rdlowrey That sounds a lot like my 2014
 
@rdlowrey Found a ticket for you :D:D:D
 
user895378
@Ja͢ck This is an interesting question. I've only kicked around ideas at this point.
 
user895378
It kind of goes back to the underlying IO stuff ...
 
user895378
We really need a solid internal IO API (no, the existing streams API doesn't count) so we can start layering things like encryption on.
 
user895378
1:39 AM
IMO crypto stuff should be baked in as part of the language as well and not kind of bolted on like with ext/openssl
 
I agree.
 
user895378
We need to create a lib-agnostic API for dealing with crypto as well so that whether we used openssl or something else it wouldn't matter.
 
The downsides of organically grown projects :)
 
user895378
Yeah ... by the time you realize what you need and how it should be done you have to completely rewrite everything
 
Is there a competing lib to openssl?
... which is OSS friendly.
 
user895378
1:41 AM
NSS seems to be the only real option to me (it's a mozilla thing)
 
Ah yes
 
user895378
I don't have a problem with openssl personally. Every lib is going to have its warts.
 
user895378
But openssl has been understaffed and underfunded for so long it's a bit of a mess.
 
Hmm, I just found out that Singapore has NSS too :)
Nature Society (Singapore)
It's pretty amazing that the security of so many would fall squarely on the shoulders of, like, two developers =/
 
@Ja͢ck No shit
 
1:44 AM
Shit :)
 
@rdlowrey I'm very in "what is the purpose of life" mood :) Thanks, you wise man.
 
user895378
@Ja͢ck I know that's nuts
 
Hmm, wasn't it Johannes who (somewhat sarcastically) suggested we add STRLEN opcode?
 
user895378
@webarto If it makes you feel any better I slip into those moods quite often too
 
Personally I think this Samy is attention whore... but you see people are making drones that have open WiFi and you can control them. Because passwords are hard.
 
1:45 AM
@webarto Shuddup and take my money!
 
Attention whore or not that's pretty awesome if it does indeed work
 
It works for Parrot drone which sucks, but he mentions Amazon (Prime) in the context.
 
@webarto Yea, I noticed that
 
That's as much as hacking as when you connect to neighbors open WiFi.
 
@webarto Yea, perhaps... but drones
 
1:49 AM
I mean, he's not humble at all.
DRONES, SLUR
 
64-bit chrome for windows finally made it to stable release google.com/chrome/browser/?platform=win64
 
@Ja͢ck Travis CI build failed now
Will you merge Closure::call()?
 
user895378
@AndreaFaulds I didn't realize voting had finished on Closure::call(). Congratulations! And it will make a non-trivial difference in my own code, so thank you :)
 
user895378
2:05 AM
No active room 11 RFCs at this time for pinning ...
 
Hmm, I remember there was a particular way in which you can merge PR's with command line ...
 
one day I'll make a RFC and it will be pinned in this room...one day =o(
4
 
user895378
@Ja͢ck yes
 
user895378
Add the PR source as a remote, fetch the remote, merge the PR branch. Push to origin. Done.
 
user895378
@crypticツ Why the sad face? Don't get down on yourself for not dabbling in C :)
 
user895378
2:20 AM
RFCs are a pretty cool nerd-core thing to do, though. It's nice to engage in long-form exposition on a technical subject. Often you don't have the opportunity to do that sort of thing once you're outside an academic setting.
 
@crypticツ you do cool stuff with php ... i dont see any need to do that until you have got enough time to learn C :)
 
everything that should be RFCed has been made an RFC. PHP is forever complete.
I should email that out to internals, and tell everyone to go home.
 
@AndreaFaulds Done
 
@Ja͢ck Yay, thanks!
 
2:46 AM
:D
 
 
2 hours later…
4:50 AM
morning @Jack
 
good moaning!
 
sorry wasn't here last night, fell asleep ... thnx for fixing build etc
 
np!
@JoeWatkins Btw, I found an odd issue with the ZEND_STRLEN opcode handler.
 
what's that ?
 
It breaks one of the UString test cases, namely the one that iterates over a string.
With this fix in place it works.
Without it, it crashes
 
4:57 AM
check for another ext with that handlers
I am not properly awake yet
 
there aren't that many.
there's tidy.
 
yh can't think of one
 
5:08 AM
/me slowly wakes up as joint and tea go down ...
 
a factory is a class returning objects?
 
no questions !!!
 
why?
 
that one ...
so then @Jack ...
if int is being used for string length ...
what's 64bit patch done ?
I thought that's what it was doing, int is not 64 bit, it cannot be anywhere so we still have 32bit strings ?
 
isn't an abstract factory called a provider? i mean factory of factories?
 
5:14 AM
no
 
> The purpose of the Abstract Factory is to provide an interface for creating families of related objects, without specifying concrete classes.
 
@JoeWatkins not the faintest clue; apparently it doesn't apply to zpp?
 
is there some additional zpp typespec ?
this is a mess ...
I really don't like this 64 bit stuff ...
we were actually okay (on unix), it wasn't a problem ...
 
@JoeWatkins yup, and it's still steaming.
 
@shortCircuit this might help: stackoverflow.com/a/11369679/727208
"provider" is no a name of a pattern (but people tend to use the name to describe a function which creates some object)
 
5:16 AM
Oh, I found one of my old fixes ... shame it didn't get picked up yet.
 
@shortCircuit listen to @tereško ... he's much better to listen to than me ... I'm not really (ever) focused on high level code anymore ... because of @Jack ...
mmmmuuultiping
 
Because of me? Not sure whether compliment or complaint ;-)
 
i have been listening to since i started with MVC, Active Records and now i am interested in design patterns ....
 
Note to self: always stir instant coffee ...
 
5:18 AM
I know what happened ... gross ...
you at work ?
 
I'm working from home this morning.
 
or replaced wife with machine ?
 
Wife is lousy at making coffee lol
 
vs7
Hi Everyone ,

I need some assistance in ZIP creating and download ...

I have a list oh array which have mp3 URL's , what i want is when a user click over download button according to list of song , a zip must be created and downloaded ...

But I don't want to store that zip on server, its just be available on run time ...

As multiple user can request different list of songs to download ...

What i have user so far : http://pastebin.com/jS9xawWH
 
Actually, I'm still saving up to buy a proper coffee machine at home.
And with proper I mean you do all the things.
 
5:19 AM
I have kids, instead of saving for anything ...
 
@Ja͢ck I have drunk 3 coffees this year: one, with milk, when I was hang-over (slightly bad idea) and lattes
 
one of them can just about make tea ... though it's sometimes pretty horrible ... and she spills quite a lot of it ...
 
Milk and hangover don't combine well =(
 
I can't drink coffee either, I'd rather smoke a crack pipe than drink coffee ... tea I can handle ...
 
@Ja͢ck yes and no. I was puking before it already. But the milk-puke make me stop.
 
5:20 AM
ewwww
 
haha, the puke to stop them all.
 
kinda
 
I've made the same mistake with cereal in the morning while nurturing hangover.
 
anyways, I prefer tea
 
Unlike coffee I don't like drinking tea without sugar, though.
 
5:22 AM
<- doesn't use sugar at all
I haven't bought a pack of sugar in ... hmm ... 12 years
and no, it's not some strange diet-thing
 
@JoeWatkins Ah okay, so zend_string->len is size_t but the ZPP arg is int ... beautiful.
 
q u a l i t y
 
That said, who the fuck wants strings > 2G?
 
in case of a providers there is no constructor kind of thing.. its just a function returning an instance of a class.
in case of factories i also get an instance ... and then....
messed
 
I do if I have to go round changing every 3rd line of every extension I ever wrote ... or I want the whole patch to be reversed ...
dude #php7 today has an AST based compiler, support for 64bit things, a faster allocator, a faster engine ... are we grown up yet ? #php
 
5:26 AM
@shortCircuit object's can hold a state (like a cache of previously created instances)
 
Could bring it up to the list?
 
yeah do that ... oversight probably ... should be size_t there I think ...
 
I concur ... fixing all ZPP arguments everywhere will be a big undertaking though.
 
I propose the he whole smelt it should deal it rules of farting ... you have to fix it :D
 
yes objects always have a state... $provider is in a way = $instance , because that is what is returned by the anonymous function (from JS concept)... same is for $factory
 
5:29 AM
@shortCircuit "provider" is not a real pattern
 
it is more like a colloquial term for "functions that make objects using enclosed variables" by some people who use closures
 
vs7
-1
Q: Create zip of an array on run time and download it

vs7I need some assistance in ZIP creating and downloading... I have a list oh array which have mp3 URL's , what i want is when a user click over download button according to list of song , a zip must be created and downloaded ... But I don't want to store that zip on server, its just be availabl...

 
@JoeWatkins I could fix it with one commit per file, surely making me the biggest php-src contributor =D
And if I made those changes in batches of three each day it would look great on my github activity :)
 
5:40 AM
haha
 
5:53 AM
guys, how do you deal with test that require large amount of mocks ?
for example, when you are testing a class, which expect a factory/builder in a constructor ?
 
> The report estimates 1,400 children were sexually exploited over 16 years, with one young person telling the report's author that gang rape was a usual part of growing up in Rotherham.
jesus ...
 
wat
 
yeah ... just wat ... what a horrible thing ...
> Council leader Roger Stone said he would step down with immediate effect.
read
> Council leader Roger Stone said he would walk away with immediate effect.
 
6:11 AM
ReST, Rest, REST or reST? — Ja͢ck 1 min ago
 
REST-ing
Ebola vs Gaza
 
well ... something is fucked in PHPUnit's coverage tools
it tells me that I have uncovered line:
    trigger_error('not important');
}  <= THIS LINE
da faq
 
6:34 AM
posted on August 27, 2014 by kbironneau

/* by Craig */

 
7:29 AM
good mornings
 
7:52 AM
Good morning, Room "7" :)
 
haha.. arrive at work early, hoping to get some stuff done, BAM, servers went down :D I should go home :P
 
Why is it that the sites which style themselves as "provides of content for web professionals" are basically filled with military grade hype ?
 
that's about SO, right?
 
no, it is not
 
(:
 
8:21 AM
No naruto chapter for today, probably tomorrow or friday source-fr
 
meh
 
http://thecodinglove.com/post/95898886886
The coding love
debugging in production
kbironneau
1409128231
 
honestly, I not care about Naruto anymore .. I just read it because after 9 years it would feel like giving up
 
8:48 AM
there was no way to normally bind value of ' WHERE ... foo IN (:list) .. ' with PDO .. right ?
well ... at least not in any sane way
 
yeah, no sane way
 
mornings
 
Morning
 
morning all
 
@tereško nope
 
8:54 AM
thought so
 
@tereško How would you expect/like it to work? I guess PDO::PARAM_LIST | PDO::PARAM_STR might be possible to implement (meaning a list of strings, expects an array), not sure how that would play with named placeholders
 
Dave was using some magic with str_repeat/count???
 
I've never had any issues with the array_fill() approach though
 
oh ^that
 
Morning s
 
8:55 AM
@DaveRandom more like PDO::PARAM_ARRAY | PDO::PARAM_INT , but yeah
 
hmmm
might be doable
ain't gonna happen before 5.7 at the earliest though, if it's even possible in a sensible way
 
what is 5.7 ?
kinda doubt that'll happen
 
something I am still vaguely hoping will happen, although the further master departs from 5.6 the less likely it is I suppose
 
@DaveRandom unfortunately, I cannot code my out of paper bag in C, which means that someone else would end up implementing it
 
8:59 AM
Will try a userland impl first to make sure it's logically sound. I can't think of any reason it wouldn't work but it seems like it's kind of an obvious thing that someone would have already done
 

« first day (1411 days earlier)      last day (3537 days later) »