« first day (2182 days earlier)      last day (2784 days later) » 

12:00 PM
@Rahul while it's highly unlikely that information is actually useful to you tbh (99.99999999% will be HTTP/1.1):
!!docs $_SERVER
dammit
 
The $_SERVER superglobal variable is an associative array containing information such as headers, paths, and script locations.
 
it will ^ be in there somewhere
 
Wes
not for americans #l10n
 
@DaveRandom ok but there is other protocol too.
 
12:02 PM
Something went badly wrong with that lookup... Allowed transfer timeout exceeded: 120000 ms
 
@Archer every day is a unique day, according to the general understanding of space and time.
 
Anonymous
@Archer 06
 
morning
 
@Ocramius well, that's true...
 
@Jeeves 2 fucking minutes?
 
12:04 PM
@JayIsTooCommon you must be fun at parties, @Ocramius as well :P :B
 
@Rahul like what?
 
did @Jeeves just tell us something went wrong ?
 
@Archer why does everyone tell me that?
 
Nothing will use HTTP/1.0, and it's unlikely to make a material difference if something using HTTP/2 or SPDY
 
like SPDY
 
12:05 PM
what difference will that make to your application?
 
uh, duh, it will make it faster, obviously @DaveRandom
 
how will it make it faster
 
it's called speedy ...
 
http2 has server push feature
Lol
 
@Wes well, only not for insane Americans
 
Wes
12:10 PM
@bwoebi also lux?
 
SPDY protocol dictates that all packets are painted red before pushing them out
 
Wes
(are you from lux, right?)
 
@Rahul If you are specifically writing for an HTTP/2 feature, then sure
 
@Wes I meant… It's also fine for sane Americans. (As far as they do exist)
@Wes yes.
 
Although tbh I'm not a fan of HTTP/2 server push from PHP because of the way web servers work
websockets are a much more scalable solution
 
12:11 PM
Implementation wise, is there that big of a difference?
 
ohh ok
 
Wes
@bwoebi do they exist? :P
 
The difference is that e.g if you are using fpm, you have a whole thread that's busy serving 1 client for however long the connection remains open
 
@Wes not sure.
@Wes (btw. note only not vs not only)
@DaveRandom sure, Aerys is doing it fine (hehe)
@DaveRandom websockets are fine, but not for like static content
 
well yeh, it's a different set of consideration there :-P
 
Wes
12:14 PM
@bwoebi like i understand english words ordering :B
 
@Wes sure you don't…
………
 
@bwoebi talking here specifically about the context of apache/nginx/whatever where PHP is CGI/fpm/mod_php/whatever - server push makes no sense there (unless I'm missing something)
well, it makes no sense when websockets are an option
 
@DaveRandom server push still makes sense for static content pushing
(i.e. images etc.)
 
Wes
@bwoebi talk like yoda i think i do
 
also i wonder how client will notify if server pushing something to client
eg i request for post information json and server sends me post information as well as pushes the post comment json also
 
12:17 PM
@bwoebi oh right I see, yes that would make sense if you are just using it to deliver page resources and then bailing. Although I'd question whether it's worth the effort when the browser is perfectly capable of dealing with that problem all by itself via parallel requests.
 
@DaveRandom uh… the browser only can request the content after page parsing
It's saving a whole roundtrip
 
Wes
@Archer i have no idea what that is, but i would kick the guy in the nuts for fun
 
as before page parsing he doesn't know yet what to request @DaveRandom
 
@Wes pen pineapple apple pen
haven't you heard of it?
 
12:19 PM
@bwoebi Only if you are only delivering one, maybe two resource. After that I suspect that the browser can deal with the problem faster. Would need to bench it though.
 
@DaveRandom uh why should it?
 
Hello I have a problem which is described here:
http://stackoverflow.com/questions/39894611/unable-to-browse-to-codeigniter-custom-controller
 
@DaveRandom pong
@JayIsTooCommon pong
@all pong
 
basically I can't use custom CODEIGNITER controllers, only the default ones...
 
WHERE'S MY PONG?
oh there it is
 
12:20 PM
@DaveRandom you can just push/send files simultaneously too (thanks to HTTP/2 stream multiplexing)
 
Anonymous
@PeeHaa hai
 
people have tried to help me, but it was unsuccessfully
 
@PeeHaa \o
 
Wes
@Archer not everyone rolls in weird japanese shit like you do :B
 
@Wes cough
 
12:22 PM
can anyone help? :)
 
@bwoebi it just feels to me like any moderately complex page (let's say 50 images) is going to get better speed from multiple sockets, but would have to bench it. One thing I am 100% certain of is that it's a buttload of logic on the server side for a handful of ms at best.
> are you facebook?
etc etc
 
Wes
btw, they even ruined f1 @Archer
 
@PeeHaa Did you get anywhere with modifying the twitter lib? and if so what did you do/are you doing?
 
:P
 
I'm going to push a small change to the plugin shortly unless you got a new change ready to land
 
12:24 PM
@DaveRandom you mean you'll get worse speed… if having it on one stream you can stuff multiple images into a single TCP packet even
 
Go ahead. I only looked at it, but haven;t written anything yet
 
> would have to bench it
you may be right, I just have this feeling it's not going to make a meaningful difference in the 99% use case
my feelings are often wrong...
Like last night, I thought I wasn't feeling hungry, turned out I actually was able to consume an entire thing of Cadbury's Fingers no problem at all
 
!!? Cadbury's Fingers
 
Search for "Cadbury's Fingers" (https://www.google.com/search?q=Cadbury%27s+Fingers&lr=lang_en)
• Cadbury Fingers | Burton's Biscuits Corporate Web… - This scrumptious treat is a national treasure, with the perfect combination of delicious Cadbury Mi… (https://www.burtonsbiscuits.com/our-brands/cadburys-biscuits/fingers/)
• Cadbury Fingers - Wikipedia, the free encyclopedi… - Fingers are a popular biscuit in the United Kingdom and Ireland which consists of a biscuit centre… (https://en.wikipedia.org/wiki/Cadbury_Fingers)
 
@DaveRandom thanks for info
 
12:27 PM
wow their site is shitty
So basically you ate Chris jr's cookies?
 
lawl
 
he's not getting a look in on that one
 
@DaveRandom It depends very much on your latency
if you have 20 ms ping, then obviously, you won't notice anything
 
@AlmaDo :O
 
12:38 PM
@AlmaDo IEEE 754 <3
 
@bwoebi i.e. the 99% use case :-P
 
@DaveRandom you mean the 1%? :-P
Except if yourself are the only user :-P
 
for most people who are loading web pages, things with resources, 20ms is optimistic (in the UK and US at least)
 
@bwoebi the issue is from 2008 :D
 
@DaveRandom dunno… normal pings are more like 100 ms … e.g. this SO chat
 
12:44 PM
time curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.de/?gfe_rd=cr&amp;ei=A0f2V9PYK-qA8QfQhYHQCA">here</A>.
</BODY></HTML>

real    0m0.096s
user    0m0.008s
sys     0m0.002s
 
well… google.
 
:p
 
Woah, found a decent Monad paper (me thinks) homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/baastad.pdf
/me figures out how to turn on the printer
 
@AlmaDo I mean like common non geo-dns and anycast optimized domains
 
@Ocramius I misread the last word as "bastard" :'\
 
12:45 PM
same
It's a Either (Monad, Bastard)
 
@Ocramius If it's an exhaustive paper on <insert programming concept here> then I don't think there are enough trees for that
 
..or toilet paper?
 
Well, it's surely better than a monoid in the category of endofunctors
 
@Duikboot so you mean you want your front desk to be all pink aswell?
 
Anonymous
@PeeHaa They don't have them in the third world.
 
12:50 PM
No they don't because @DaveRandom ate all of them
 
damn straight
 
!!wotd
 
mavourneen: darling; dear.
 
!!wololo
 
Roses are red, wololo, roses are blue
4
 
12:55 PM
@Sean I died
 
@DaveRandom /giphy wanker
 
Hello everyone
Can anyone has integrated chase payment gateway in php ?
 
g'morning
I remember spamming wololo in lobby chat
a chorus of WOLOLOs at LAN parties
 
1:11 PM
mandatum
 
@bwoebi do I actually need to yield from? Can't I just yield a Generator and have it resolved? And if not why not?
 
@DaveRandom because Generator does not implement Promise
 
Well no but surely it could be special-cased?
seems like a kind of arbitrary limitation
I get that I can't return one
 
We actually did this back in time
 
but I don't see any conflict that might arise from being able to yield one
 
1:15 PM
the issue was though that then all the combinator functions and whatever operating on promises would need a special handling too
and direct when() still not working on it
 
:-(
 
you need to be aware what's a Generator and what's a Promise
 
really need some way to extend Generator
 
yes.
That'd be awesome
 
Couldn't you just use return types to instruct the engine what to instantiate?
Generators are already magical anyway
 
1:17 PM
technically sure
practically there's an internals process
 
/me runs away screaming
 
so, if you'd RFC it and get it through internals, I'd be quite happy :-P
 
@bwoebi if you just had a protected method on generator that you could override in a child class which the engine would invoke i.e. onComplete(), would that work?
 
But internals may decide that return types altering return value type in that way would be too magic
 
@bwoebi sure, I'm trying to think of another (sane-ish) way right now
 
1:21 PM
@DaveRandom why onComplete? that class would take the Generator in its constructor and overload it (e.g. start immediately as coroutine)
 
@bwoebi wait, couldn't you just throw them into resolve() actually in the loop anyway? Or is there more than one place in the code that advances co-routines?
 
@DaveRandom ?
 
@bwoebi here and here, if ($yielded instanceof \Generator) { $yielded = resolve($yielded); }
 
i.reddituploads.com/… Google on Responsive Designs...
 
@DaveRandom yeah, that's not the issue
 
1:27 PM
then I don't understand the issue :-P
 
@Tiffany seems pretty responsive :) just cut off the text that doesn't fit ^^or use overflow :D
 
The issue is that we'd be treating something not exposing a Promise interface etc. as a Promise
 
where would you be doing that?
Wouldn't that ^^ effectively just convert it to a promise for places where that actually matters?
 
well, in Generator resolving, by special casing them
@DaveRandom that's one place. And what about any other places like combinator funcs, direct ->when() calls etc.?
 
@bwoebi but those places can only operate on awaitables, that's just how the API works. What I'm talking about is specifically to remove the overhead of having think about whether I need to yield or yield from
If you want to treat a co-routine as a promise then sure, you need to "convert" it explicitly
but when you yield, you are just saying "don't continue this code until this task is complete"
 
user895378
1:32 PM
morning
 
@DaveRandom and it's the same in Generators, really
 
morning daniel
 
@rdlowrey moin — Are you remaining at Grovo with Anthony leaving?
 
user895378
yes :)
 
user895378
quite happy here
 
1:33 PM
okay great :-)
 
@bwoebi I'm confuddled, is there any chance you could knock up a code sample that demonstrates where it's a problem? I'd really like to understand this if possible
 
Wes
noons
 
@rdlowrey o/
 
@rdlowrey Anyway, can you try to explain to @DaveRandom why we do not allow yield'ing of Generators and require yield from?
 
user895378
I know I've said it before but we'll be doubling down on async php here. Specifically moving away from the php web sapi ... it's literally the last technology choice I would choose in a distributed microservice environment
 
user895378
1:34 PM
I think there's value in the explicit syntactic differentiation of yield and yield from
 
user895378
They do different things and I want to know that difference if I'm reading code
 
user895378
Otherwise I have to go hunting for whatever is being yielded to figure out what's happening
 
@Dave And from a purely technical perspective, yield from is a lot faster than just yield
 
true, I do understand that much
 
@rdlowrey so, when's this long awaited amqp driver coming?
@rdlowrey or the Artax rewrite? :-D
 
user895378
1:37 PM
@bwoebi Arg, I have no choice but to start working on it.
 
user895378
@bwoebi And that too.
 
As said, I'm always available to discuss APIs or collaborate…
 
user895378
I got a new girlfriend, too, which isn't helpful in the productivity department. She's out of town this weekend, though. Will be able to code.
 
What bugs me most about it is that I have a bunch of public methods that are just code wrapped in resolve(function() {}) because I am definitely sure that a public API needs to be uniform in the respect of not having to think about whether to yield or yield from - because that would exposing implementation details
 
@DaveRandom believe me, it annoys me too
but the issue is rather on the Generator side than on the consumer side
(i.e. Generators not being able to be directly returning a coroutine)
 
1:40 PM
I am going to do some thinking about a sane way to extend Generator and see if I can find the energy to draft an RFC
 
user895378
The resolve() plague is annoying, but I think standardizing around APIs that return Promise s is the only sane option
 
Yep.
 
user895378
or Awaitable s ... rather.
 
user895378
Sorry.
 
The ideal would be being able to somehow directly return a custom object implementing Generator
@rdlowrey re awaitable:
add a +1 or -1 @rdlowrey
 
1:43 PM
@rdlowrey it really bugs me a lot because I have been writing with C# a lot recently (which I would like to marry). The explicit keywords I can live without, but resolve() often screws with my diffs when refactoring
and that's, like, really annoying
 
@DaveRandom you can exclude whitespace changes in your diffs though?
 
on github?
 
@DaveRandom do you have a diff where it's an issue?
 
There are some in Jeeves somewhere, but not to hand
 
user895378
@DaveRandom C# is actually pretty nice, right? I feel so much self-loathing for saying that but it's true.
 
1:54 PM
As a high level language, it's my current favourite. It's just a shame it comes with the baggage of .net
 
@DaveRandom yep … just append ?w=1 to github commit url
 
noted
 
@rdlowrey The central part missing in PHP here is native async ^^
 
user895378
agree
 
tbf I also love generics and static typing with a compiler that is capable of inferring types enough that it often doesn't feel like static typing
 
1:59 PM
I like Dart even more than C#.
I really don't know why it hasn't gotten more adoption.
 
Some day I'll figure why people are so amazed with Generics…
 
Dart is amazing. It's like everyone thinks it only works in a browser or something. It has many libraries that only work in the VM environment.
@bwoebi Not sure "amazed" is the right word but having type-safe, expressive code is really nice.
Legacy C++ is like the part-opposite; type safe but definitely not expressive in many cases.
 
And then there's Go on the other end of the spectrum
 
@bwoebi I think a lot of it is that it really appeals to the anally retentive part of me (and probably others) that likes to be 100% certain of the type of stuff, even though it's code I wrote and I know there's nothing in there that I didn't put there
Yes, I realise that's completely irrational
 
@LeviMorrison didn't they discontinue that?
 
2:04 PM
See? Why do people think this.
There is a very healthy Dart VM. It's very fast.
It just isn't inside a browser. If you want to run in the browser then you compile to JS.
 
Anyone here ever get worried about publishing your email with packages? I swear I've been getting loads of spam lately because of it
 
@tibanez I haven't really had this issue, no.
 
Like on GitHub and Packagist
 
@LeviMorrison Ah, it was because they announced that they won't integrate
Misremembered that, I thought they just gave up on the non-transpiler part entirely
 
@LeviMorrison Isn't it so easy to write a crawler which just goes through these sites scrapping emails
 
2:06 PM
@tibanez Yes.
 
I'm 99% sure this is the reason for all my spam. Never used to get it before
Not in my main inbox.
This spam gets through the filters so easily too
 
@Danack It doesn't help that the Library GPL and the Lesser GPL have the same acronym
aha
> Please note that the GNU Library General Public License has been superseded by the GNU Lesser General Public License.
much of a muchness then
 
Packagist puts a <span style="display:none">.woop</span> in the middle of your email so it appears regular on the page but has that in the middle of it which is hidden. Pretty much 100% pointless really. It would take 2 minutes to modify your crawler to still catch these emails
 
@Leigh iirc the gpl mafia thought that calling it "library gpl" will make people automatically license libraries using it instead of the gpl, which they wanted to avoid.
Which is why they needed a new name...
 
I think I'm going to move all of my stuff to the beerware license
Fun fact, the SSL protocol has a bunch of covert channels you can hide arbitrary data in and have valid packets
 
2:17 PM
@Leigh yeah, and?
 
shrug, fun fact :)
 
:-D
 
Guys i read that two force a download for a file there is two possible solutions : one would be to set the Content-Type:application/force-download and the other would be to set Content-Disposition: attachment . I tried both , both did work. But which is the correct one to use ?
 
Content-Disposition: attachment
 
And that should be octet-stream, not force-download
 
2:21 PM
Actually it should just be the correct type
 
hi
 
But guys if do that (ie octect steam and attachment i lose my file extention and it becomes html file type)
nvm my bad, it works
Thanks
 
Don't use octet stream
It's a kinda silly thing to do
 
what should it be then ? :) Please
 
The correct type of the file you are serving
 
2:24 PM
		//$extention = mime_content_type( $path_to_file );

		header("Cache-Control: no-cache, must-revalidate");
		header("Cache-Control: post-check=0,pre-check=0");
		header("Content-Transfer-Encoding: binary");
		header("Cache-Control: max-age=0");
		header("Accept-Ranges: bytes");
		header("Pragma: no-cache");
		header("Expires: 0");

		header("Content-Type:application/octet-stream");
		header('Content-Disposition: attachment; filename="' . $file . '"');

		$size = filesize($path_to_file);
		header("Content-Length: ".$size);
@PeeHaa should i use the extention then ?
 
Actually scratch that I don't have time to support right now
 
okie no problem , thanks anyway
 
@PeeHaa is currently AFK.
 
:P
 
I was howling at that.
 
2:25 PM
> Why you not suggested to asynchronous process in php, if possible then please suggest. we checked HHVM asynchronous process but i want to PHP process, i request to you please release and suggest.
 
That an internals suggestion email?
 
yeah
send to private list
 
@JoeWatkins to sec?
 
@bwoebi Could an await keyword be added that automatically makes a function a Coroutine? Of course we'd need a Promise interface in the engine, but that seems simple enough.
 
2:29 PM
@bwoebi yeah
 
Evenin
 
@PeeHaa are you happy to have a hard dependency on ext/intl?
(in Jeeves)
 
Purpose?
 
not you personally
@PeeHaa converting everything to NFC
 
I'm fine with it
I am going to need it for something else myself later either way
!!uptime
 
2:35 PM
@PeeHaa I have been running for 2 days, 19 hours, 31 minutes and 52 seconds, since 2016-10-03 19:03:45
 
Uhhhmm I'm being stupid. I cannot find where the invite thing is for jeeves in chat interface?
I thought you just had to click his avatar
 
@Trowski sure, we could.
 
@bwoebi Maybe that's a reasonable step one?
 
@Trowski If this is how we want to design our asnyc/await
@Trowski alternatively we might want to promisify any function call on request.
on caller side
 
@PeeHaa I think that issue is related to clearing notifications. If there's an outstanding notification (as in the things you see on the main site) inviting an account to a specific room, you can't re-invite.
That's the main reason I made !!invite as well
 
2:45 PM
pfffff shit interface
 
@bwoebi Not sure how that would work… particularly for resolving.
 
Yeh I'm going to add a thing that runs every few minutes to clear notifications
 
It's amazing that chat even works
 
I just haven't figured out how you actually do that yet
 
@PeeHaa unlike you
 
2:45 PM
(I haven't looked)
 
Hi Good Morning
 
@Trowski well, if you do $foo = asnyc func(); func() gets installed on a separate vm stack with resumption points on inner await calls
 
when checking that someInput is a date, should I check to see that the input has -, /, or . and then explode based on that style into a list?
 
@PeeHaa ihave getting in error in php script
 
@bwoebi So if the function is called without async, it blocks until a function with await is resolved?
No… that would be wrong.
 
2:51 PM
Hi php guys , i have getting error in php script
 
I feel like I'm not seeing the advantage over traditional async/await patterns.
 
the error is PHP Warning: file_get_contents(): SSL operation failed with code 1.
 
!!google file_get_contents(): SSL operation failed with code 1
 
Search for "file_get_contents(): SSL operation failed with code 1" (https://www.google.com/search?q=file_get_contents%28%29%3A+SSL+operation+failed+with+code+1&lr=lang_en)
• php - file_get_contents(): SSL operation failed w… - 1 okt. 2014 - I've been trying to access this particular REST service from a PHP … This was an enor… (http://stackoverflow.com/questions/26148701/file-get-contents-ssl-operation-failed-with-code-1-and-more)
• php - file_get_contents() -> SSL operation failed… - 25 feb. 2015 - CURLOPT_SSL_VERIFYPEER is set to TRUE by default starting with cURL 7.10 You could s… (http:/
 
@santosh see all these ^ and please dont ping people randomly
 
2:53 PM
@Trowski huh? it would just block if no other async context exists
@Trowski you do not need to yield every single thing, but just where necessary
 
@bwoebi Shouldn't it return a promise, no matter the context?
 
@Gordon i have all the option did in my script ....but my script having same error
 
@santosh please go through the links @Jeeves gave you. Thanks.
 
@Gordon You're welcome!
 
@Trowski that's the point. You can get a Promise whenever you want, no matter the context, by just prefixing async
 
2:56 PM
okay thanks @Jeeves and @Gordon
 
@santosh You're welcome!
 
@Trowski i.e. not using async is equivalent to await async func()
 
@bwoebi which does what? execute it on another thread?
that sounds like a recipe for threading nightmares :-P
 
@DaveRandom thread?
We're talking about normal nbio
this isn't Go.
 
@bwoebi I don't see the point… why have a promise if the function isn't async?
 
2:59 PM
It's like Go, but single-threaded without parallelism
 

« first day (2182 days earlier)      last day (2784 days later) »