« first day (1176 days earlier)      last day (3777 days later) » 

10:00 PM
does this ever finish loading for anyone else ?
I knew it was a lot ... didn't think it was infinite though ...
 
A lot of shit, yes.
 
It stops adding stuff on dump. Coincidence I think not
 
@salathe awesome.
I'm going to start posting that image whenever he really rips someone's architecture apart :P
 
I already have to run it on the command line because of the enormous amount of memory it uses to parse out every class ...
reasonable stuff works fine, even ircmaxells implementation of PHP works fine ...
 
10:06 PM
@salathe Emphasize the middle finger more.
 
hehe
 
Teresko Certified Engineer
 
Get some stickers printed out and hit the conventions! :P
 
@Fabien unfortunately, the big one is his ring finger
 
@salathe perception is everything
 
10:07 PM
I'm actually saving that, get one printed and will stick it on my bike ;)
 
We can fake it! It's how I always imagine his avatar anyway.
 
@Fabien that's how i always imagine him in real-life at all times
 
I think it's a deep and meaningful message... people think he's giving the finger, but he's really not. :)
 
heh
 
I think on some level, he's giving everyone the finger all the time ...
 
10:11 PM
The tendons and muscles in his hand find the position more natural/comfortable now.
 
Should be inverted, meh.
 
:)
Poor @tereško, turning in grave bed.
 
what do we expect
echo 10/3;
to yield
?
 
3
 
10:21 PM
really
 
Well...
 
Feels like a trick question
 
@JoeWatkins my brain does integer division :)
 
seeing that echoing numbers relies on a lot of things...
 
in PHP it's not 3 ;)
 
10:22 PM
To yield? We using generators for this
 
I don't expect it to yield an integer
and it doesn't, and niki is saying that gmp should
I don't get it ...
 
What a character...
 
lol
 
@JoeWatkins absolutely, "There is no integer division operator in PHP." (source: TFM)
 
@JoeWatkins Maybe the wunderkind is wrong. This once.
 
10:27 PM
@LeviMorrison he's saying to return what gmp_div_q() would (i.e, an integer)
 
doubt it, I imagine he's technically correct ... which is the best kind of correct ... that doesn't make it consistent or suitable ...
I'm baffled by the expectation
 
I think the GMP discussion is a little weird anyway, since GMP is all about integers only.
 
@JoeWatkins Not 10/3 should be 3, but GmpInt(10) / GmpInt(3) should be GmpInt(3)
 
words, meaningless words :)
 
@LeviMorrison That doesn't happen :P
 
10:31 PM
:)
 
@NikiC being wrong only once, doesn't happen. ;)
I feel sorry for whoever's going to update the docs if Sara's RFC goes through.
(that wasn't me volunteering)
 
where does this behavior come from ? why do you expect it to work this way ?
 
@JoeWatkins It's the only behavior that makes sense in the "broader picture". There is no reason why GmpInt(10)/GmpInt(3) should return GmpFloat(3.33...33796327821) and not GmpRational(10/3) or GmpDecimal(3.33...33). So I stick with the simple rule of "if all operators are GmpInt, you get GmpInt back"
 
@salathe Experience :P
 
there's one reason, isn't that the correct answer ?
 
10:35 PM
@salathe Not only that, I think it will be rather confusing that some functions work with floats and other very similar functions won't. E.g. you'll be able to do gmp_sqrt($float), but gmp_root($float) will not work...
 
we don't support rational or decimal now, when I do 10/3 I don't expect 3, I didn't ask for an integer I asked for the answer ...
 
@JoeWatkins If we add float support now, it stands to reason that at least rational support will follow
And it's a lot more logical that 10/3 is Rational(10/3) than Float(3.33...378126482)
 
I thought for sure it was obvious that it should return a float .... if you wanted integer division you would cast anywhere else wouldn't you ?
 
his answers are outstanding :)
Btw, he got a second account
 
@JoeWatkins How much have you used GMP?
 
10:38 PM
When you guys mention GMP I always think of GIMP ...
 
I haven't, but have used division :)
 
@JoeWatkins Then I think this discussion is pretty pointless
People use the GMP integer functions to do number theoretic computations. In that context you'd see how having a floating point result to a division is very detrimental
The GMP float functions are used for completely different things and interchanging them is little useful, typically
 
so it's consistent with what gmp is used for ...
that's all I wanted to know, I said I imagined you weren't wrong :)
 
I'd expect that if all operands were int and the result asked for an int, you'd get an int.
But since in PHP we don't really have a way to see how result is used, we can only look at operands.
So I would guess that 10 / 3 results in 3.
 
@NikiC There are languages where the integer division just has a special operator…
 
10:44 PM
while the prototype is GmpInt function div(GmpInt $l, GmpInt $r) it makes sense ... I just didn't see the reason for that to be the prototype if we are going to add support for floats too ...
 
@JoeWatkins where are you sending applications to? (what's the source)
 
people I have worked with before, I found a few interesting things on twitter but got bored of searching ...
 
@NikiC just what happens to Rationals when square root is used on them?
 
@bwoebi they don't support sqrt
 
@JoeWatkins What type of work would suit you best? (I sound like recruiter)
 
10:49 PM
Not boring, well paid. that'd do be.
 
@webarto backend stuff, lots of data, lots of machines, bit of choice about language would be nice and I'll kill myself if I end up working in java all the time ... but the choice is nice ..
 
@NikiC What exactly is gmp float for? I don't really get why we'd need that instead of math.h?
 
@JoeWatkins I think this would be nice. If I get in, I'm taking you with me :) (nexcess hosting)
 
Sounds like a great business model:
> We are not currently accepting new clients.
:)
 
:p
 
10:54 PM
My friend does that all of the time.
 
ovh used that model for a year or so ...
 
He pimped his LinkedIn profile and added "Not available for hire" as punchline.
 
now they only seem to sell really expensive servers ... but yeah, there's definitely challenges there ...
 
@bwoebi Presumably scientific computation with very large or very small numbers. I have no idea why people suddenly want that in PHP ... (decimal would be more useful)
 
@webarto Bitches would be all over him :)
 
10:56 PM
@NikiC decimal? You mean Rational?
 
@PeeHaa What? You mean males that pose as female and work/hire for phantom companies? :P
 
@bwoebi no, I mean decimal. not something gmp has natively, but effectively it's just integer with comma position
 
I've had enough of today, nite chaps ...
 
@NikiC If we'd have that instead of the current floats, nobody would have to care about floating point imprecision anymore… but should cost too much CPU-time, right?
 
@webarto Those are the best!
Night @JoeWatkins
 
11:01 PM
Night Joe
 
@bwoebi nobody wants to replace any of the "current" floats or ints or whatever
 
@NikiC me neither… I just said that, unrelated.
 
everything has it's place
floats are super awesome - most people just don't know when not to use them
 
But really… decimal… then I can also just choose a lower order of magnitude to begin with.
 
...this isn't google. /facepalm
 
11:08 PM
lol
 
Ummm... is it intentional that I can no longer see what the current vote score is for RFC in voting?
 
A late night @DaveRandom has appeared!
 
Shit, where? I hate that guy
 
:p
 
11:23 PM
I can't see either, dunno what gives.
 
Laravel people...
@qtguru @PHPeeHaa @StuArthur I don’t mind at all, I was just busting the myth that it uses statics.
 
@PeeHaa Much like The Cake Is A Lie, apparently also now The Static Is A Myth
@webarto I hope it's intentional, it might make the votes a little more fair independent and a little less like watching a flock of sheep
 
@DaveRandom Yes.
It is intentional.
 
@LeviMorrison No probs. I would suggest going a step further and removing the list of people who voted and simply displaying the count and "you have (not) voted" to people who are logged in
 
11:32 PM
@DaveRandom I also love how they are calling that thing behind it in IoC container, which in their case is a SL that gets magically imported using a static call. Look mom no new keyword in mah classes!
:P
 
@salathe fyi I can't see my own voting choice unless I edit, but cool :-)
 
@DaveRandom yeah the PR was made waaaaaaaaaay before we updated dokuwiki, it's probably something tiny changed in the mean time
 
@PeeHaa I think we need an old keyword for implicit singletons.
 
hehehehe RFC TIME!
 
11:37 PM
:D
(And yes I really clicked on that)
 
@salathe Kindly announce that on the internals list. I'm not sure I like it. At least I'd want to see the current state of my own rfcs
 
@NikiC No, but feel free to bring it up on the webmaster list
 
@NikiC Yeh the RFC owner should be able to at least see the totals per-option
 
it's easily do-able if that's what people want :)
 
user652649
guys embarrassing question: how can i convert `$arr = array('a','b','c');` to `$result['a']['b']['c'] = null;` ? atm i'm using:

$result = array();
$pointer = &$result;
foreach($arr as $k)
$pointer = &$pointer[$k];

or is there a better way to accomplish this?
 
11:49 PM
Seems like an odd thing to need to do.
 
user652649
yes, it is indeed
 
@Wes For an arbitrary depth, that's the simplest way I think.
@LeviMorrison I've needed stuff like that in the past in order to address things with strings (imagine a file system represented as an array and getting the "file" at /a/b/c)
I forget what the exact use case was but I know it seemed valid at the time, although if I revisited it it may not be
 
@DaveRandom split('/', $path)?
Well, that just gets the segments.
^^
Ignore my comment.
 
user652649
sup! @DaveRandom :P long time no see. thanks, how can i not trust the daverandom approved stamp?
 
Exactly, I assume the $arr is the result of that operation
also, split()???
:-P
@Wes Hey man, yeh I've not been around much of late, new job and general real life
 
11:55 PM
Oh, that's the deprecated regular expression version.
Forgot.
 
Not sure my stamp of approval is worth much though :-P
 
explode.
 
booooom
 
$arr = array('a','b','c','d');
$result = json_decode('{"' . implode('":{"', $arr) . '":0' . str_repeat('}', count($arr)), true); // Problem ?

print_r($result);
@Wes ^ :P
 
user652649
@LeviMorrison use cases are many, for example i think i did that already for parsing configuration files this format:

php.mbstring.default_charset = utf8
 
user652649
11:57 PM
@DaveRandom how is the new job? are you missing visual basic? xD
 
@Wes in that particular case the values are just namespaced, why do you need to group them together as a vector in memory? You can just keep them all as a flat array with the full string key
 
user652649
@HamZa also achievable with eval() xD
 
@Wes code injection !
 
@Wes I decided my life was no longer painful enough so I'm quitting smoking next week :-P
 
man
 
11:59 PM
@DaveRandom great :D
 
Surface 2 availability is suuuper low
 

« first day (1176 days earlier)      last day (3777 days later) »