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

2:00 PM
@DaveRandom And another off-by-one ... lol
@rdlowrey uv-php progress so far :D
 
user895378
@Ja͢ck I was just about to ask for an update lol :)
 
Yeah, just 9 commits to make travis happy again
I'm not whether it's Darwin, but I find more memory related issues with it <-- good thing
 
http://thecodinglove.com/post/95281403973
The coding love
unexpected output
kbironneau
1408543256
 
^^ This is why my kids can only have pets that can defend themselves.
 
@Ja͢ck what's the point of adding libuv to php?
 
2:04 PM
@FlorianMargaine what do you mean?
 
That poor guinea pig;.
 
well, it's a library to handle event-loop IO
 
amongst others
 
I thought that was mostly it. Anyway, how does it benefit php?
 
@Ja͢ck I shall call you "off-by-@Ja͢ck" :-P
 
2:06 PM
@DaveRandom :D
@FlorianMargaine You don't see the benefit of having an event loop in php?
 
How does it benefit JavaScript?
 
user895378
@FlorianMargaine It would make it possible to do anything in parallel
 
I guess I'm stuck in SAPI
 
user895378
2:07 PM
Without threading.
 
user895378
So you could, for example, do something like ...
 
yeah, php has pthreads too, that's why I find it weird
 
@DaveRandom wt ... af
 
@rdlowrey * without needing to manage threading yourself
 
@DaveRandom hahahahah
 
user895378
2:08 PM
@DaveRandom yes, that's more correct.
 
user895378
Well, filesystem anyway.
 
user895378
That's the only kind of IO you need threads for.
 
I be back, yarr
 
user895378
Ahoy, matey!
 
@AndreaFaulds A month too early :-P
(the pirate talk, not you coming back)
 
2:09 PM
user image
2
How can anyone not want that?
 
Totally want that.
 
user895378
A T-Rex unicorn? What's not to love?
 
Unicorn-Rex?
 
user895378
@FlorianMargaine it lets you do things like this:
 
user895378
$dbPromise = mysql_async_query(...);
$httpPromise = http_async_request(...);
$redisPromise = redis_async_query(...);

list($db, $http, $redis) = all($dbPromise, $httpPromise, $redisPromise)->wait();
 
user895378
2:11 PM
^ where all of that works in parallel
 
user895378
instead of doing one slow thing, waiting for it to finish, then doing the next slow thing
 
user895378
So you're only bounded by the slowest operation and not the sum of the execution time for all slow operations
 
@DaveRandom Almost exactly a month! :)
 
@rdlowrey Rebased my junk to hide my travis noobness.
 
@rdlowrey I must admit I am dubious as to how often this occurs, simply because usually the data in the request is based on the result of one of the other operations (and similar sequencing clauses)
 
user895378
2:13 PM
@Ja͢ck don't feel bad. My travis noobitude is severe.
 
@rdlowrey heh
 
user895378
@DaveRandom I wouldn't say usually.
 
user895378
I would say "frequently"
 
user895378
but there are all sorts of times when concurrent IO is useful.
 
Don't get me wrong, I still think it should be done, but I can't quite get a handle on anything I've ever done when writing the standard imperitive web app where that would be useful
 
2:14 PM
[$db, $http, $redis] = Promise::all($dbPromise, $httpPromise, $redisPromise)->wait(); is something I want :P
 
user895378
@FlorianMargaine would be cool
 
anyway, it sure is useful (I've used it a lot in js world), but I don't think it's well fit for PHP. It really adds a layer of complexity.
 
@FlorianMargaine I'd guess AST will make that easier to do
 
@DaveRandom yup :P
that was a reference to it
he even mentions it in his RFC iirc
 
oic
 
user895378
2:15 PM
@FlorianMargaine it fits perfectly well in the php world. It's less useful in the CRUD PHP web SAPI world where you do one thing then the next and it's super basic. But if you use PHP strictly on the CLI like me it's incredibly useful.
 
Not read the RFC fully because it's not really my area
 
user895378
For a programming language this kind of feature is a no-brainer.
 
user895378
For a templating language ... less so.
 
Additionally the current compiler architecture prevents us from implementing some types of syntax altogether. Examples include:

Array destructuring using [$a, $b, $c] = $array instead of a dedicated list() syntax. This is common in other languages, but not possible in PHP.
 
Oh right, cool
 
2:17 PM
@rdlowrey tomorrow i'll find a way to reenable the http parser :D done coding for today
 
user895378
So it's really about whether PHP is intended to be a programming language or a templating language going forward. If it's the former then libuv is a brilliant option.
 
user895378
@Ja͢ck cool :)
 
Something I thought might be useful would be adding key support to list(), but don't expect me to implement that any time soon.
 
I would very much like list not to be a reserved word, but I guess that will never happen
 
other examples
Array destructuring using [$a, $b, $c] = $array instead of a dedicated list() syntax. This is common in other languages, but not possible in PHP.
List comprehensions / generator expressions where the result expression comes first, e.g. [x * x for x in list] in Python. In PHP only the reverse syntax is possible: [foreach ($list as $x) yield $x * $x]
C#-style expression trees and LINQ. These require an AST pretty much by definition.
 
2:17 PM
List comprehension is gonna be fun
 
Actually @bwoebi are you planning to resurrect keywords as identifiers off the back of the AST?
 
Ooh, that's an idea.
Though I'm not sure it's a good one...
 
@DaveRandom I've asked him, he said that currently it's not yet easy to do .. but having moved to AST it does come a step closer :)
 
Just class member names would make me happy
 
By the way, there is one keyword you can use as an identifier: abstract is a valid class name
The parser specifically allows that for BC reasons
 
2:19 PM
Yay!
 
@AndreaFaulds lolwut
 
Because class Foo extends abstract ... is ehh, awesome stuff
 
It's not case-preserving though. I believe that class ABSTRACT would come out as abstract
 
@AndreaFaulds wut
 
2:20 PM
Or maybe it's not a valid class name. I remember it's a valid something though
 
abstract is def not a valid anything
maybe you mean static?
 
class abstract same as abstract class isn't it ?
 
as the LSB class name?
@JoeWatkins nope, abstract has to come first
 
@JoeWatkins lord I hope not
 
Argh, something else is
@NikiC That's the one!
 
2:21 PM
implements Iterator class Foo extends abstract Bar { } ... w000t
 
Yoda class definitions
class abstract, Foo is
 
No, wait...
It might be static. But that's not a valid class name
 
@AndreaFaulds static is a valid class_name, but not a valid fully_qualified_class_name
if we're talking bison that is ;)
 
There's a rule for it so that self::something and static::something works iirc
 
@NikiC Ah. It's because we implement it by checking for the name static case-insensitively at compile-time, right?
 
2:23 PM
@Ja͢ck Maybe. Not sure yet.
 
:)
 
@AndreaFaulds it just has an extra rule for a T_STATIC class name ^^
 
I still need to handle that in function referencing. And update the patch to deal with Closure::call's changes. Oh how I love to rebase...
 
git rebase --all-the-things
 
@NikiC I just had a chat with Dragoonis about left -> right behavior for list().
 
2:30 PM
and?
 
He misunderstood.
 
If you list() is not messed up enough, just do list(list()) :)
 
This seems to be common enough you might want to update the RFC to indicate that list($a, $b) = array(1, 2); behavior is effectively unchanged.
(The end result is unchanged in this example)
 
yeah, I see how that might be confusing
 
The difference between 5.x and AST is just the order they are assigned, which sometimes matters on error conditions.
I can respond on-list if you want, or I can leave it up to you.
 
2:32 PM
@LeviMorrison you can respond :)
 
user895378
@AndreaFaulds good luck with Closure::call(), hope it passes :)
 
user895378
I don't really care much about the func referencing, though. Need to re-read and think about where it could actually benefit me.
 
Hi Folks, I got invited here for an internals discussion :)
 
user895378
Hi Paul.
 
Welcome :)
 
2:34 PM
I'm looking to hire a DBA, so I have an interview in 25 minutes so I will disappear soon.
 
hum, I just happened on a fourth-order tensor
 
user895378
@LeviMorrison Did you and @NikiC have something you wanted to specifically discuss with @PaulDragoonis?
 
Not really; I just suspected that he misunderstood a few things about the RFC and wanted to double check before I spammed the list.
But NikiC is going to update the RFC to clear this up, right?
I think he mostly wanted to check on that, right Paul?
 
user895378
I find myself mostly eschewing the list these days and just going to #php.pecl to talk things out with people. More helpful. Shorter feedback loop. Less likely to cause misunderstanding.
 
user895378
Not sure why people like communicating via mailing list. It's 2014, after all.
 
2:38 PM
@rdlowrey Faster to resolve misunderstanding too :)
 
@rdlowrey +1 trillion
 
user895378
I get the paper trail, and that's a helpful record for posterity, but still ...
 
And StackOverflow chat is better than IRC too.
(Particularly when lots of people are active)
 
@PaulDragoonis What country you recruiting?
 
user895378
Yeah. And you get the "internet never forgets" google indexing here too.
 
user895378
2:40 PM
SO chat is a far more effective way to manage that sort of communication than a list IMO.
 
@rdlowrey Create a Miaou room :-P
 
user895378
And you can't rickroll people on a mailing list.
 
idk, I get quite a few HTML emails from the list
 
user895378
I get zero HTML emails from the list.
 
user895378
2:41 PM
It's never worked for me.
 
user895378
Like, ever.
 
user895378
I have to manually browse marcmail or the web interface. It sucks.
 
user895378
That whole process is a cluster.
 
@PeeHaa what. the. fuck.
@rdlowrey Oh mine all seem to be from docs
 
2:43 PM
@FlorianMargaine Disturbing..
 
.. or just trolling.
 
@FlorianMargaine Y U PLAGIARIZE?
 
@rdlowrey for example this renders really bizarrely in HTML for me in Gmail. Every mail I send to either list is text-only though, maybe it's just that you've never had one because people haven't sent them?
And when I say "really bizarrely" I mean that whoever formatted the email was clearly drunk
 
user895378
@DaveRandom I definitely do plaintext all of the things. I mean I get no emails from the internals list unless someone specifically adds me to the To: or CC: line. No digests nothing. I've subscribed and resubscribed and I still can't get anything.
 
2:49 PM
@rdlowrey Thanks! Nobody's voted against so far though.
@rdlowrey Plaintext ALL THE THINGS
 
By the way, Andrea, those snippets for a.php and b.php look horrible.
I should fix that >.<
 
user895378
Plaintext + Markdown = Happiness.
 
@rdlowrey If I do this I don't see 'Hi'. Is that normal?
 
user895378
The problem with that snippet is that you're never telling the event loop to run, @Fabien
 
user895378
If you use the Promise::wait() call that hides all the implementation details of the event loop for you in synchronous code.
 
user895378
2:51 PM
Lemme post a snippet for you.
 
If possible can you do a multi url snippet please @rdlowrey
 
user895378
@PeeHaa lol
 
...those "file" downloads use dl, dt and dd.
Why on earth do people use those?
Stop.
Don't use them for anything except definition lists like on dictionary.com
 
I use them :P @LeviMorrison
 
2:53 PM
@PeeHaa You're @Pee Haa
 
There are some other uses but the name of a file and its freaking content? It's not a many-to-many relationship!
 
hehe
 
@PeeHaa can we drink this?
 
lol @ dat adwords text
> COMMERCIAL DESCRIPTION Das frische Biererlebnis in typischer Wieselburger-Qualität! Wieselburger Gold ist in der 0,5l und 0,33l Flasche sowie in der 0,5l ...
 
LOL
 
2:57 PM
> Rating: 12% - ‎90 reviews
The communnity has spoken
 
@rdlowrey Using @php.net or...?
 
@PeeHaa link?
 
@webarto Rightclick image -> image search
 
Yeah, yeah, crap it is.
 
user895378
 
user895378
2:59 PM
@DaveRandom yeah php.net
 
@rdlowrey I presume you redirect @php.net to... Gmail?
 
Danka @rdlowrey
 
user895378
@DaveRandom yup
 
Weird. Mine goes to an @daverandom.com, which has a catch-all fwd to Gmail, but no reason why that should not work
I wonder if you're hard-coded into some blocklist in ezmlm for some reason or something
You have tried subscribing with your GMail address directly?
 
user895378
3:01 PM
@Fabien There are a ton of concepts you can take advantage of that I just gloss over there, but you can understand the fundamentals of working with the event loop by reading the Alert README -- I spent a lot of time on it to try to help people who are unfamiliar with that sort of thing (most PHP developers).
 
user895378
Once you understand how the event loop works you can do all sorts of crazy things.
 
Cool thaks @rdlowrey I will take a read
 
@SecondRikudo that GIF distresses me, the poor hamster :(
 
3:03 PM
@AndreaFaulds They're surprisingly resilient
But yeh, not recommended nonetheless
 
@rdlowrey Event loop? Wasn't that just a crazy shitload of pure magic? ;-P
 
@SecondRikudo hey i brought hosting form you link :) its mine first experience to manage Linux server .... xD
 
@NullPoiиteя Congrats! And thanks :)
 
user895378
@bwoebi Yup. I don't actually write any code -- I just do some hand-wavy stuff, say, "presto," and things just magically work.
 
yw . :)
 
3:05 PM
@AndreaFaulds And yes, before you ask, the flattened hamster is alive
 
@SecondRikudo I can read :P
 
@rdlowrey definitely. Just using a few magic event loop functions and it works.
 
@SecondRikudo weird
 
@DaveRandom Japanese...
 
@SecondRikudo ...and the nationality of a Hamster makes a difference to it's physiology? :-P
Quick! Everyone! @SecondRikudo is a hamster racist! GET HIM!!
 
3:13 PM
@DaveRandom No, it's the nationality of the owner that makes a difference to the kind of shit he makes up
 
Hello all
I have a question for you
 
I have to say, I had a couple of Hamsters when I was younger and they do not sit still for that long, like, ever
 
If i use
session_start();
session_regenerate_id();
Will this stop session hijacking completely ?
That code runs every page load btw
 
@CodeX No.
 
@SecondRikudo It's not crazy, it's just him petting a hamster
Or her.
 
3:15 PM
@AndreaFaulds Flattening it...
 
@SecondRikudo What are the vulnerabilities associated with that code?
 
@CodeX That it doesn't prevent session hijacking... Like at all.
 
Guys where can I ask questions about for my Laptop Drivers?
 
@SecondRikudo They're just showing off how a petted hamster can get quite flat. So?
 
@HassanAlthaf Super User
 
3:16 PM
 
ty
no such site peeha
lol
 
@PeeHaa trolololol
 
@SecondRikudo Ok, so it doesn't stop hijacking, does it stop them getting the right session id?
 
@CodeX Nope.
 
@HassanAlthaf What's the question?
 
3:17 PM
Hello @PeeHaa
 
@CodeX Have your learned how session work yet?
hola
 
It does make the server forget about the user once an attacker got his session though
 
Yeah, been reading a lot
 
You got how they work? The cookie part of it?>
awesome
 
Yep, thanks
 
3:18 PM
Dave
I need drivers for
HP Pavilion G6 - 1322 TX
 
lulz
yeah dave
 
Windows 8.1 Professional 64 bit
 
gimme teh drivars
 
Just pirated windows 8.1
l0l
 
@CodeX have you seen this one?
24
A: PHP: How do Cookies and Sessions work?

Second RikudoLet's go through this: Cookies and sessions are both ways to preserve the application's state between different requests the browser makes. It's thanks to them that, for instance, you don't need to log in every time you request a page on StackOverflow. Cookies Cookies are small bits of data, (...

 
3:18 PM
@DaveRandom I have a epson printer here not sure about model. CAN I HAZ TEH DRIVERS?
:-)
 
@HassanAlthaf Google is your best friend, google.co.uk/…
 
i did codex
 
@SecondRikudo No i havent seen that but im going to now, thanks :)
BRB
 
windows 8.1 aint there on their site
 
@HassanAlthaf Is Win 8 there? If not, have you tried Win 7 drivers?
There's a good chance a lot of them will work
 
3:20 PM
Just got an answer
Windows 8.1
automatically does it lmfao
 
Hey . After you told me I have been saying gist wrong all this time. I'm pretty sure I also have been saying gif (as in the extension) wrong
 
Win7 is semi auto also
 
Is it also kif instead of jif?
 
Using an older driver on a newer OS generally yields positive results a lot of the time, not so much the other way around
Also "automatic" only means "built in support for a lot of devices", it doesn't mean "magically works with every imaginable device"
It may have a driver for your toaster, but it doesn't support mine.
@PeeHaa I would say hard G
 
stupid confusing language
tnx
 
3:23 PM
It's "graphics interchange format", I would inherit the hard G from "graphics"
 
j.ist
Like j.if -> gif
The creator of the gif confirmed this.
 
@PeeHaa While gist => jist, the general rule says otherwise
 
lol
 
@Fabien Oh, what does he know
 
The Graphics Interchange Format (better known by its acronym GIF; /ˈdʒɪf/ or /ˈɡɪf/) is a bitmap image format that was introduced by CompuServe in 1987 and has since come into widespread usage on the World Wide Web due to its wide support and portability. The format supports up to 8 bits per pixel for each image, allowing a single image to reference its own palette of up to 256 different colors chosen from the 24-bit RGB color space. It also supports animations and allows a separate palette of up to 256 colors for each frame. These palette limitations make the GIF format unsuitable for reproducing...
:). I still say hard g Gif. But then again i also say "Kay.sh" instead of Cache
And "Ally Gin" instead of "Align"
 
3:26 PM
@Fabien wut
 
WTF
@Fabien :P
 
I read the word before i ever heard it IRL. So now I can't break the habit.
 
I've heard some Americans say "kay-sh". I think. Maybe. I'm not sure...
 
@Fabien "Ally Gin"! lol
 
OMGWTFBBQAPPELKRUIMEL
0
Q: Regex to match blocks inside blocks

Douglas ZanottaI have the follow string: {% if a == 3 %} Yes {% else %} {% if b == 2 %} Maybe {% else %} {% if c == 1 %} Hm... Not {% else %} No way! {% endif %} {% endif %} {% endif %} {% if d == 0 %} Ok {% endif %} If I use this re...

 
3:28 PM
@SecondRikudo Have you got 5mins to talk in another room?
 
LOL
 
@DaveRandom Genius...
 
@PeeHaa ..aaand the answer (:
 
Yeap, but I am still wondering what fucked up project rendered the input
It looks like some templating thing gone haywire
 
3:34 PM
@JoeWatkins if I have an issue with phpdbg, I should open an issue on github?
fwiw, I tried to run it on drupal, got this pastie.margaine.com/ab448b42-ceb7-48d3-82f8-e71346eac02f
 
3:50 PM
Recruiter called Nickkie Taylor wants to connect with me on LinkedIn. Unfortunately I refuse to do so until she removes at least one of the superfluous consonants from her name.
 
@DaveRandom Do it man.
For the numbers, to network
 
@AndreaFaulds Australians pronounce it kaish. They also pronounce 'router' as 'rowt-er' and some of them even say 'dart-a'. So when they say, "the rowter kaishes the darter" I really have to suppress instincts to
 
@Danack Australian accent joke: In the trenches in WWII. A new young lad joins the group. "Say young fellow, have you come here to die?" He responds: "Naw mate, I came here yesterday!" (pronounce it in an Australian accent)
 
@Danack Isn't it called inbred english :P
Although those brits also are able to confuse me
@Danack Over here we have an entire piece of our country which the other part cannot understand
(And we are a tiny country)
 
One day a genius person will implement whole PHP interpreter with a single regex ..Alma Do 26 mins ago
hmm. Sounds like a task for @HamZa ;-D
 
3:57 PM
@PeeHaa Not to their faces.
 
@bwoebi preg_replace('((.*?))e', 'eval($1)', $code); done :D
 
@Danack I'll get my gun
 
posted on August 20, 2014 by kbironneau

/* by BenBuilder */

 
4:25 PM
@DaveRandom are British allowed to even own guns?
 
@crypticツ Farmers have shotguns, everything else is a lot more carefully controlled. I think there are legal ways for private citizens to own handguns etc, but I guess there must be so many hoops to jump through that nobody bothers - also there are no gun shops to buy them from.
tbh I'm not overly familiar with that area of UK law because it's not relevant to me in any way
 
@DaveRandom *gives you some murrican guns*
 
@CodeX yes, I do. But only in this room
 
@crypticツ Really BIG and really LOUD but fundamentally useless?
Oh guns, sorry, I thought you said cars
/hides
 
@DaveRandom useless? pssh, you can hunt, target practice and protect yourself.
 
4:29 PM
@crypticツ My gun fires 200 democracies per second.
 
@DaveRandom Hah! I was just about to say that not all 'Muricans like driving big, honkin' cars and then I remembered my car is Japanese :(
 
@SecondRikudo that's all? =oP
 
freedom gas
 
4:55 PM
@DaveRandom I know a non-farmer with a license to have a gun.
Apparently one of the benefits is that if police search his license plate they need to call in a special unit to pull him over.
 
Let's just say he very much believes in the second amendment despite this being the UK.
 

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