« first day (1478 days earlier)      last day (3466 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
So, um
Those 73 minutes of working on tests? Haven't happened yet
 
@rdlowrey @LeviMorrison ++
 
@ircmaxell php-php. Well, not finished, but it's stable.
 
@bwoebi that's FAR from finsihed or stable
 
I spent the past 73 minutes waiting for/getting PHP to compile, running the test suite, and watching an episode of an anime while the test suite runs
 
@ircmaxell well, wrong lib name
 
12:00 AM
Said test suite is still running, I think I'll watch another...
 
user image
8
@PeeHaa
 
user895378
@DaveRandom my openssl things for 5.6 were finished. That's about it.
 
@ircmaxell but stable it is? I thought…
 
nah, I just gave up
 
user895378
None of my open source things are "finished" ... though artax seems to be asymptotically approaching "finished"
 
12:03 AM
(PHP's test suite doesn't take that long to run... but it DOES in a 32-bit VM booted from an external USB hard drive accessing the PHP source dir via VirtualBox shared folders...)
 
I have launched projects
@AndreaFaulds it does take way too long
 
@rdlowrey No such thing, it's finished when it dies :)
 
@DaveRandom Wow, what did I finish?
 
@ircmaxell There have been some suggestions of parallelising it
 
@Fabien that site on that pc seriously look like the old mybb or phpbb
 
12:04 AM
@ircmaxell we should put amp behind it and make everything run in paralell
 
@AndreaFaulds bandaid on a gunshot wound
 
/s/finished/release
 
@DaveRandom Wait... [indefinitely]
 
@NikiC several rfc…
 
12:04 AM
the way to fix it, is to fix the tests to not be so dumb
 
@ircmaxell Hmm?
 
most of them are trying to be unit tests, and they are not
make them real unit tests
 
@NikiC Generators?
 
user895378
/me opts out of the .phpt discussion ... that's a mess I'm all too happy to let others deal with.
 
What, use PHPUnit?
 
12:05 AM
@ircmaxell how are the integration tests trying to be unit tests?
 
:-)
@AndreaFaulds no, real unit tests, in the language that the code is written in
 
@rdlowrey Oh yeh that's true
 
@bwoebi A lot are merely tests of a single function.
@ircmaxell That barely helps test peformance at all
 
@AndreaFaulds HUH?
 
Most tests couldn't be made into C unit tests
 
12:06 AM
 
@AndreaFaulds yes they can
the problem is the parser is tested by every single test int he entire suite
 
00:02 <Derick> the prob is some stupid distributions don't use PHP's internal DB but the system one
00:02 <Derick> and the format of that changed.
@PeeHaa ^ fyi
 
If you dropped the parser, would it really be any faster?
 
by moving tests into C, you can bypass it for tests that aren't designed to test it
@AndreaFaulds more than just the parser, the parser, executor, sometimes the memory manager, etc
 
I suppose this could solve the zpp issue
 
12:08 AM
@ircmaxell you mean the whole startup and shutdown sequences? yes. But when we have so many tests testing them we can definitely be sure that they're not broken (nearly…)
 
@webarto 20??
 
@ircmaxell My personal law of PHP tests: For any sufficiently popular PHP function, its integration tests will contain an excessive, repetitive and incomplete set of tests for the functionality of zend_parse_parameters.
 
Who the fuck drives a 20 mph?
Or is that kph?
 
@bwoebi you don't need 13000 tests testing all of that
 
Even more so in that case...
you'd never get anywhere
 
12:09 AM
@ircmaxell I didn't say that with any word… but yes, you're right.
@DaveRandom The street I live in… for more than 1 km ... 30 km/h
 
Do you live in a >1km long car park or something?
 
sadly, no. A normal street…
 
youtube.com/watch?v=vg5CWIPS1Vw since when are black and white screens back? XD
 
BTW guys you remember I used to work for a dating website company. tada
 
12:36 AM
@DaveRandom aha php is stupid
@Fabien hahahahahha
 
@PeeHaa It is, but in this case so is RHEL
Man, Radio 6 gets really fucking weird later at night
/cc @Fabien ^
 
Hmm, well
the test suite still hasn't finished
So I'll watch a third episode...
 
Highly recommend not putting on Radio 6
or 6music or whatever it's called now
 
@DaveRandom Radio is an old mans game -_-
 
I like having the stress of deciding what to put on taken away
I sometimes waste hours making playlists
 
12:48 AM
Google Play isn't bad for it's music suggestions.
Often I search a genre and let it go
 
Oh it's suddenly gone all (reasonably) normal again
 
I do sometimes listen to Frag Radio though.
 
@Fabien I'd rather let people do it, playlisting is an art, it needs to have a flow, and that flow is much more than just the transition between two tracks
 
Well it's a legitimate source of music. So it gets my thumbs up.
 
A lot of people are really bad at it as well, but computers just don't know what they are doing (literally and figuratively)
there must be a word for that
The germans probably have one, they have a word for everything
 
12:51 AM
DJ'ing... ? -_-
Anyhoo it's late and I got a full day of half-assed cleaning to do before the wife arrives tomorrow :P Night all.
 
nn
@Fabien no I mean when something expressed is true both literally and figuratively
 
1:09 AM
Oh look
My episode finished, and so did the test suite
finally
What the hell, Ubuntu lacks vim by default?! SACRILEGE!
What the hell, Ubuntu lacks vim by default?! SACRILEGE! #VimGate
 
@AndreaFaulds Even not nano :-(
 
@bwoebi It lacks nano now? It seems to have it these days...
 
@AndreaFaulds well, I had once to install it manually. Don't remember which *nix OS though. Everything opened in vim :-(
 
@bwoebi Also, that would be "not even nano". Like "nicht sogar", I don't think you say "sogar nicht" (or do you? I'm not sure, I'm not a native German speaker)
 
@AndreaFaulds same with centos. Comes with vi only.
 
1:20 AM
@bwoebi *once had (sorry if I'm tormenting you)
@DaveRandom What
Why would you
Why would you do that
 
Shout at Remi
It's not his fault or job, but shout at him anyway
 
:D
(or D: if you're Remi)
 
@AndreaFaulds Depends on what you mean. nicht sogar means something slightly else than sogar nicht. Can't explain the difference though… But both exist.
 
@ircmaxell In your blogpost "A Lesson In Security" - "Because there are more than one queries to prepare!" - Perhaps you meant "Because there is more than one query to prepare!"
@bwoebi Ah, okay. And you probably mean "something slightly different to" not "else than" ("else than" doesn't make sense)
 
@AndreaFaulds eih, probably… ?
@AndreaFaulds okay. Compare: nicht sogar like in Nicht sogar nano in Ubuntu! But sogar nicht like in Sogar nicht nano in Ubuntu!. … Gah… I'm really failing at explaining. You really should ask a question at german.stackexchange.com
 
1:33 AM
@AndreaFaulds You are such a linguist :-P
 
@bwoebi The "else than" wasn't about the nicht sogar thing though, just a slip-up in that message
@DaveRandom In this case it's more a function of being a polyglot :p
 
@AndreaFaulds I know, I added that to before…
 
@bwoebi if I'm following you right, the difference is "not even Ubuntu has nano!" (nothing has it, not even this thing that you would expect to have it) vs "Ubuntu doesn't even have nano!" (Ubuntu has hardly anything, not even this thing that you would expect it to have)
 
@DaveRandom that's it.
 
:-)
 
1:39 AM
Oh, right, that's what you were saying
I'm wondering if there's a difference between "Sogar nicht" and "nicht sogar" if nothing else in the sentence is changed, though
Wait, oh
argh]
nevermind :p
 
@AndreaFaulds though, that's more the result of the fact that there's no verb there. If there would be a verb, the construction still would be allowed, but it'd be ugly.
 
/me sleeps
nn
 
@bwoebi I'm still confused, but the point is it's always "Not even" in English
 
How to get rid of idiots: pastebin.com/N1KtZNiF
 
@AndreaFaulds yup, got it ;-) In German you're sometimes more flexible with word order and then such things are allowed.
 
1:51 AM
"Sogar nicht": exists / "nicht sogar" - blubberish
way any night good body every.
:)
late is it
 
@hakre lol that sentence made me <3 xD
 
@AndreaFaulds @bwoebi Pretty sure it has vi
 
@AndreaFaulds fixed
 
@ircmaxell :)
 
2:26 AM
@LeviMorrison yea… but she's talking about vim.
 
3:16 AM
Indeed.
 
 
3 hours later…
6:20 AM
@rdlowrey is there suppose to be a space after the ^ here?
Also, is there any timeline on when the stable for Arya would possibly be release? I want to use it for production and replace Silex.
 
@crypticツ don't think so, but not really sure, kinda forgot mod_rwrite
 
 
1 hour later…
7:35 AM
anyone here?
 
8:12 AM
Morning
 
morning
 
8:45 AM
@crypticツ yup, there is. ^ is just everything, it's the whole regex. \cc @rdlowrey
@crypticツ I think for that it's stable enough now... let's see what @rdlowrey thinks
 
8:56 AM
I use this regex to filter urls in text string
(https?:\/\/\S+)
But it also captures links like this
http://example.com/test-link.html<div>
In above link `<div>` is html tag which I don't wanna include in the captured result. Can you please suggest any modification in my regex?
 
@mwaseema please don't spam all the rooms with the same question
 
you need a much more complex regex
 
@Jimbo why did you link to m.wikipedia.org? ...
 
 
1 hour later…
10:26 AM
morning
> Many of you will just switch off because it's me spouting off again
Yes, that's exactly what happened :)
 
mornig
 
10:59 AM
@NikiC As usual, he's actively demonstrating his severe competence deficiency as if it's something everyone else should be accounting for and modifying their expectations of what's possible/sensible accordingly
 
> And wiping my neatly tab indented code is never going to convince
> me that THAT dictate is universally acceptable! Tabbed indenting goes
> far back even into Algol days and while the rules for C/C++ even in the
> PHP code base is TAB I'm not going to start being selective elsewhere!
^ well, for once Lester is right.
 
Yeh, internals is totally the right place to discuss that
 
@DaveRandom that's the problem...
He's right, but at the wrong place.
 
he isn't right dammit!
:-P
 
;-P
 
@SecondRikudo annoyingly, OP just fixed it
It pains me a bit to let it live but there are no real grounds to close it unless dupe
Which it will be I guess
 
@DaveRandom I'm sure there's a dupe about quotes somewhere
Although I wasted my chance to mjolnir
Also, you can close it as typo
@InternalPeople WDYT of the above?
 
user652649
11:25 AM
tl;dr

function test(interfacename[defaultautoboxclass] $var)
{
    var_dump($var instanceof defaultautoboxclass); // true
    var_dump($var instanceof interfacename); // true
}

class defaultautoboxclass implements interfacename
{
    function __autobox($value){
        if(is_string($value)) $this->storage = $value;
        else throw new Exception;
    }
}

test("foo");
 
user652649
morning :P
 
user652649
also:
function test(interfacename $var) <- autobox is not even attempted since it's an interface
function test(defaultautoboxclass $var) <- autobox works since it's a class containing the magic method __autobox()
one can write this last one only ofc, but this wont cope well with polymorphism
 
@WesleyCrushed NO.
 
user652649
@Leri just trying :D
 
user652649
what's wrong with this approach?
 
11:30 AM
@Leri WHY.
 
@SecondRikudo PHP has enough magic, does not it? :-)
@WesleyCrushed Too much magic.
 
user652649
that's not as magic as __autoload() @Leri no? :D
 
@WesleyCrushed __autoload() is not recommended for use.
 
user652649
i was being ironic @SecondRikudo y u always think im that noob
 
@WesleyCrushed My sarcasm detectors are malfunctioning.
 
11:35 AM
@WesleyCrushed That ^ and having bigger magic does not mean that you should introduce other magic stuff.
 
user652649
i don't see anything magic in that @Leri it's just like the ArrayAccess interface, which i bet you wouldn't consider "magic"
 
user652649
just remove the "__" make it part of an interface and it's not magic anymore xD
 
user652649
(still being ironic)
 
@WesleyCrushed It is. I see type-hint of class Foo and the end-user passes string and that passes due to magic method inside Foo. If that's not magic for you what's magic then?
 
user652649
conversion from scalars to object oriented containers is not considered magic in other languages
 
11:41 AM
room-11.github.io doesn't say anything about drunk texting :D
 
user652649
lol
 
user652649
anyway was just trying to help
 
user652649
/me hides in a ditch
 
@WesleyCrushed With one difference autoboxing happens to pre-defined types not in every class programmer wishes. And we all know most of php programmers are idiots. :-)
 
user652649
11:54 AM
that will never happen @Leri because no one will be so brave to try to write a standard String class. I'd be fine with that. but introducing a thing like that in php seems harder than achieving world peace
 
Morning y'all
 
user652649
morning
 
12:19 PM
@WesleyCrushed hmm, why?
I've been doing something... that could also go in that direction
 
user652649
i meant something bundled with php
 
why not:)
i've a lot of more work to do
 
user652649
because it's hard to harmonize php's internals members i guess
 
12:54 PM
morning and evening too... :/
 
wow. It took my phone an HOUR to upgrade
 
hmmm it looks like my root survived the upgrade though \o/
 
1:38 PM
Hi
 
yo
 
1:52 PM
Hello everybody.
Shall I update my iphone to 8.1?
 
@AndreaFaulds You asked on internals about a replacement session api. If I give you access to an prototype replacement session manager would you promise not to make fun of the shitty code in it?
 
@Danack Oh, I have no problems with the session API, it's cookies I'm worried about
 
Meh - two sides, same coin.
Although I may have just said stupid stuff on internals..
 
Cleaning my apartment so thoroughly my wife is going to wonder what I did wrong.
 
All of the cookie / session parsing could be done in userland...doing so would allow people to use whatever code they wanted to, and it would only be marginally slower than having it done in C. And that would completely remove the need to debate what the correct behaviour should be.
@FlorianMargaine Top posting is still bad.
 
2:14 PM
@NikiC
u there?
 
Jul 27 at 21:28, by Danack
Hello, I have a problem, but I am too lazy to write the question out until some says that they will help me. http://sol.gfxile.net/dontask.html
It's okay to have an asynchronous conversation....
 
@DanielRibeiro yes
 
@NikiC let me ask you something
i want to try to add the possibility for php to accept expressions after the instanceof operator
can you give me a hint on where to start that
?
 
@DanielRibeiro I'd suggest to start by thinking about what conflicts this introduces and whether it's really worth it
In particular consider that Foo is a class name in the context of instanceof, but usually Foo is a constant reference
 
sure, but first i want to try and understand how to change it
 
2:23 PM
Probably your best bet is to require (expr) to use arbitrary expressions
so the first thing I'd try would be to copy the instanceof rule and replace the class name reference with '(' expr ')' and see whether you get any conflicts
 
one might eventually do expr instanceof expr and resolve eventual constants without parenthesis around like a class name…
 
2:37 PM
RE: PHP7
 
2:54 PM
thanks @NikiC
 
3:17 PM
morning
 
Hey @PeeHaa, hope you had a good weekend
 
Yes pretty decent :)
 
I should really use classes more in the PHP code I write
 
Eh, classes are generally overused.
 
true.
 
3:44 PM
@AndreaFaulds well, wtf
 
@bwoebi ?
 
@AndreaFaulds global $SID_CONSTANT;
 
@bwoebi What about it?
It's global state, no use pretending it isn't
 
stahph using global state
also connectDB() …
 
I have a saying about people who write C and write PHP ;-)
 
3:46 PM
@PeeHaa Daniel writes C and PHP… so make attention to what you say :-P
 
I do as well ^^
 
I should probably make the database connection in api.php and then pass it to the user functions
But I didn't, so :p
That or make this into a class
 
@bwoebi I like to generalize. Makes things easier :P
 
@PeeHaa harhar
 
Please don't created classes for the sake of creating classes @AndreaFaulds
 
3:47 PM
@AndreaFaulds I'm okay with user_init touching $_GET and stuff; that's a convenience thing. But you should return something instead of making it global and then pass that something around to your user_* functions.
 
@PeeHaa Avoids passing around the DB handle
On the other hand, it's weird.
 
@AndreaFaulds Yeah if that is the goal don't :P
 
@LeviMorrison Yeah
But hey, look, this is MVC, kinda!
 
yeahno :P
 
MVC ……… sigh
 
3:49 PM
htdocs/api.php is the controller, include/user.php is the model, and there's no view
Because it's an API
 
yeahno... :P
 
I wish we had function autoloading. I guess it's time to force myself to implement that.
 
^ While that would be nice, that code could use a little oop... ;)
 
I'm not sure if there's a good way to make that use classes
Nor a good reason to
 
3:54 PM
Well, for one the code would become less of a mess/more maintainable...
 
I don't see how.
Classes don't magically make code maintainable
Also, classes and object-oriented programming are not necessarily the same thing
 
Agreed, which is why I said oop
Just putting things in classes won't help
 
12 @PeeHaa
In yo face eyes!
 
Neh that's just the fact you are younger than me :D
 
@PeeHaa Your score: 4
 
4:02 PM
^ Damn kids
 
Again younger than me, and @Fabien :p
 
:P
 
But pretty impressive nonetheless
Use your super powers responsibly :)
 
hehe
 
Wonder how I compare to other people of my age though
 
4:04 PM
Ask @Narf
I can only imagine @Danack scoring 850 or something like that :P
 
@PeeHaa Your score: 24
/me mumbles sth about calibrating the screen
 
Not too bad for someone of your age ;)
:D
 
@Fabien too early for xmas
 
Halloween just passed. Christmas is all we have left!
 
4:09 PM
@PeeHaa yeah, still among the good 30% according to the statistic at the end
 
And Guy Fawkes night.
 
last christmas is the equivalent of godwin's law in discussions
 
Classic attack!
I think Christmas music is the only thing that gives me that Christmas feeling of being a kid anymore.
Speaking of being a kid. One reason I am glad I was a 90s child.
 
yeah, now let's sing jingle bells.
 
Your score: 8
 
4:17 PM
@PeeHaa IN YOUR FACE MOFO.
 
user895378
morning
 
Mrnings @rdlowrey. So I finally got that GC debugger thing to 'work' and yeah, what I was seeing in the test script was that most of the allocations were 'large' and so the garbage collector was never reaching 10,000 root buffers, and so it was never being called.
 
user895378
@Danack Good to know. Despite promises to the contrary I still haven't poked around for memory leaks.
 
@rdlowrey I think there's possibly still something weird happening. When running the GC manually in the actual Bastion in the memory climbs a lot higher than I would have expected, before dropping back down and being at a consistently lower level.
 
user895378
This may or may not be part of it but remember that requests are dispatched much faster than they're resolved.
 
user895378
4:23 PM
So you're going to have a lot of requests pile up before any of the associated memory gets freed.
 
user895378
Another thing to be aware of is ...
 
@Danack lol wow
@rdlowrey Morning
 
wonders if I should get tested for that extra Y chromosome.
 
user895378
@PeeHaa thanks, happy morning to you sir :)
 
@Danack :P
 
4:24 PM
@Danack totally photoshopped
 
@Gordon I don't have the PS skills for that....
somewhat ironically, I can criticize colour schemes and designs; can't make them for shit.
 
user895378
@Danack You can descend very deep down the call stack inside a single tick of the event loop and prevent resources from being cleared when you're using callbacks. One way to avoid this is to use the Reactor::immediately() method to schedule things to happen A.S.A.P. in the next tick of the event loop.
 
@rdlowrey Thanks for sharing ;)
 
Does anyone have any idea about, what's the best site to find IT Consultants in London, UK? Doesn't matter, if it needs payment or is free.
 
user895378
@PeeHaa oh woops, sorry. That was for Mr. Danack.
 
4:26 PM
:D
 
user895378
Using immediately() always guarantees that the callback executes in a clean call stack.
 
@rdlowrey Hmm, will give that a go. Also it turns out that having multiple reactors running is ungood.
 
user895378
@Danack lol, yes. Doing so essentially amounts to this:
 
user895378
while(1) {
    while(1) {
        // do stuff
    }
    // oh noes! my original loop never does anything!
}
 
user895378
Because you only ever want one reactor per thread (unless you're doing things like modal windows or something) you can do this ...
 
user895378
4:29 PM
$reactor = Amp\reactor(); // singleton
 
user895378
@Danack So instead of using the (new ReactorFactory)->select()) as your auryn delegate you should probably just use the singleton function.
 
user895378
Normally I wouldn't advocate for that sort of thing and you should obviously still inject it everywhere and not call the singleton function inside classes, but for the initial instantiation of the event reactor it probable makes sense.
 
user895378
You just never want multiple instances of that thing running around in a single thread -- it's very difficult to debug problems arising from that situation.
 
@rdlowrey Yeah....I made that error because I'm running the app in two steps. First step, generate the config file which can involve a call to the github api. Second step, create a new Auryn\injector with the config generated in the first step. I'm either going to have to copy the reactor across, or make the application quit between steps.
 
user895378
4:33 PM
@Danack This is actually a good resource if you're interested in learning about where Reactor::immediately() is useful. It's basically the analog of process.nextTick() in node.
 
user895378
An immediately($callback) differs from once($callback, $msDelay = 0) in that it will always execute in the next tick of the event loop whereas the scheduled once() event will execute in the current iteration of the loop.
 
user895378
(if its timeout has expired before the end of the tick)
 
user895378
/me now attempts this stupid color challenge ...
 
@rdlowrey Ok, I'm also running into this issue again as well: github.com/rdlowrey/Auryn/issues/67 I'm not currently creating the reactor through Amp\reactor() and because it's not passed in when there is a default of null, in Amp\Future::__construct() it is not receiving the reactor that was already created.
 
user895378
Ugh, I need to finish that stupid refactor. It's fixed in the refactor branch but not in master.
 
user895378
4:45 PM
@Danack In the meantime you can work around it like this (one moment, need to look something up) ...
 
I can just call the create through the function...
I also thought I'd fixed that issue in my fork of Auryn....
 
user895378
That works too ...
 
user895378
I don't like this stupid color test.
 
Just keep scanning back and forth.....
 
user895378
I scored an 18. After 32 years, I've pretty much squared with my physical deficiencies.
 
4:52 PM
what may be the cause for:
64 bytes from 8.8.8.8: icmp_seq=33 ttl=50 time=1007 ms
64 bytes from 8.8.8.8: icmp_seq=34 ttl=50 time=3300 ms
64 bytes from 8.8.8.8: icmp_seq=35 ttl=50 time=2398 ms
64 bytes from 8.8.8.8: icmp_seq=36 ttl=50 time=2031 ms
64 bytes from 8.8.8.8: icmp_seq=34 ttl=50 time=4032 ms (DUP!)
64 bytes from 8.8.8.8: icmp_seq=35 ttl=50 time=3498 ms (DUP!)
64 bytes from 8.8.8.8: icmp_seq=36 ttl=50 time=2498 ms (DUP!)
 
00:00 - 17:0017:00 - 00:00

« first day (1478 days earlier)      last day (3466 days later) »