« first day (2290 days earlier)      last day (2661 days later) » 
00:00 - 15:0015:00 - 00:00

user895378
3:00 PM
@LeviMorrison I don't personally like having multiple options on those votes. IMO the RFC author should take a stance on what the best approach is and expose "YES" or "NO" ...
 
3:17 PM
@kelunik What problem are you solving here?
 
Wes
The serializable class does not declare a static final serialVersionUID field of type long U WOT
@MadaraUchiha halp. how do i define the constructor with inline override in java?
 
@Wes Wha?
 
Wes
new Whatever{
    public void Whatever(){}
}
 
Wes
not that makes sense doing so
 
3:22 PM
@Wes Not possible I'm afarid
 
Wes
ead java
 
lol
Why would you want a constructor on an anonymous class?
 
Wes
because i defined anything inside it, i wanted to override the ctor too, for cleanness sake :B
thanks java for your properly named variables
 
@rdlowrey The problem are the "I like the overall feature, would have preferred the other option, but I don't mind enough to vote no".
 
Wes
very useful.
HARDCORE :B
 
3:32 PM
If I can work it out in the grammar would you prefer () => expr with the ambiguities with [ $x => $y] and yield $x => $y, preferring the latter over closures?
/cc @bwoebi @NikiC
 
@LeviMorrison no, please don't
it's just potentially confusing … and the grammar will get quite ugly.
 
Yeah, the grammar would be horrible.
I worked out a portion of it last night.
 
@LeviMorrison Nope. I don't have much of a problem with the array/yield ambiguity, but I do have a problem with the grammar becoming much more complicated
 
All those expr <symbol> expr rules now have partial rules for all of them because you can't start with just an expr on the LHS.
 
It's not that bad, and TBH a fn prefix should also make it clearer to read
 
3:35 PM
So we agree that fn () => expr is the best way forward.
 
nit fn() => expr
 
^ this
 
I hate that all the options for short closures kinda suck
 
Well I don't think Rust/Ruby style closures suck.
I just don't think Internals will like it.
 
@LeviMorrison so why are you not going for that option?
ah
 
3:36 PM
|| $x WTF THIS IS SO CONFUSING
I can imagine the bikeshed already.
 
my phpinfo() says Server API CGI/FastCGI ? what does this means.Do it has Apache?
 
@NikiC I mean... do you think they'd like them?
 
@LeviMorrison they wouldn't like them, but maybe they'd accept them as the only viable choice?
or am I being too optimistic about internals here?
 
I'll think about it if I get bored in church today.
Talk to you guys later!
 
Anonymous
moin
 
3:41 PM
@bwoebi, think about whether you think Internals would go for |parameter_list| expr
Or even |parameter_list| => expr
 
@LeviMorrison I don't think so… but I'm probably biased as I don't like them myself
 
any idea guys?
 
@Levi I mean, I dislike that syntax so much that I'd reject it just on these grounds.
 
@Wes Almost never on purpose
 
@Exception It means it is running on the CGI SAPI. Regardless of which server is calling it.
 
3:46 PM
Burt sometimes I accidentally doubleclick the tabs which hides the explorer
 
@pmmaga does that means apache is not installed over there or its not running on apache..
 
ugh where did mah pings go
I know there were more
@Wes class Circle extends Triangle :P
@JayIsTooCommon o/
 
@Exception It means you can't really tell if it is apache or not based on the used SAPI
 
Wes
@PeeHaa not sure if i should add functionality to, say JButton by extending it or i should wrap it
 
@Wes Depends on what you want to do
 
3:50 PM
@pmmaga how can i check that ?
 
Decorators have different usecases from inheritance.
 
@bwoebi What makes these two so different?
(parameter_list) => expr
|parameter_list| => expr
As in, why do you dislike the latter so much?
 
Wes
because it's unconventional for php?
 
@LeviMorrison a) I realized that I actually prefer a prefix, and b) the || => $expr case just looks wrong
@Levi I.e. I'd prefer fn() => $expr over () => $expr, even if both were conflict and ambiguity free without parser issues
 
Doesn't PHP already have `() => or something like that?
 
Wes
3:55 PM
i changed my mind too
11 hours ago, by Wes
return foo(($a, $b, $c ............................ {>
           ^ dunno what's this till i reach    this ^
return foo(fn($a, $b, $c
           ^ i immediately know what it is
fn($a, $b)> $a * $b;
fn(int $a, int $b): int > $a + $b;
 
@Wes Not really, unless there's something else in PHP that starts with a ( and can be placed as an argument?
 
Wes
this i would like.
 
@Wes That already means something now though
And it's not even that unimaginable a usecase...
 
Wes
@MadaraUchiha you can nest parentheses
@MadaraUchiha what?
@bwoebi thoughts?
 
@Wes Today, that means "call function called fn with $a and $b and return true if it's larger than $a * $b"
 
Wes
3:57 PM
/me hides. sorry for interrupting :B
@MadaraUchiha of course fn becomes a reserved keyword
 
@Wes mhm, I think I prefer => over > … fn(): int > someconst … how does that look like?
 
I can totally see this form of expression used in PHP code today
@Wes You'll break the internet...
 
At least => doesn't compile
@Wes You proposed >
Not =>
 
Wes
in both cases fn requires to be reserved, because [fn() => 1] is valid nowadays php
 
3:59 PM
Although, @bwoebi, is there a plan for all existing projects with functions called fn()?
 
@MadaraUchiha they'll parse error in most cases
 
All currently known usages of fn are test cases.
 
@bwoebi That sounds rather bad... :/
@LeviMorrison In open source, maybe...
 
@MadaraUchiha no… it isn't … it's trivially fixable with find&replace
 
@MadaraUchiha As I said, all currently known usages are test cases (except one where it is a namespace).
^_^
 
Wes
4:01 PM
@bwoebi i like > more
 
@LeviMorrison Again, in open source...
Closed source outweighs open source by a lot
 
34 secs ago, by Levi Morrison
@MadaraUchiha As I said, all currently known usages are test cases (except one where it is a namespace).
 
@LeviMorrison "known" by whom??
 
@MadaraUchiha sure, but we can't make any assumptions about it
 
I didn't know the PHP internals had insights into companies' source codes
 
4:02 PM
We use the data available to us…
 
@bwoebi But the data available to you is hardly representing the real world scenarios in this case.
 
@MadaraUchiha How can you know that if we don't know what the data looks like?
 
Open source projects usually have tests, follow best practices, and have little legacy
Companies rarely have tests, usually cut corners, and have a ton of legacy
 
@MadaraUchiha there are enough open source projects which don't… written by people we don't know … they just don't have visibility and only get found by github serach
 
It's hardly unthinkable that many a company would have a function called fn once or twenty times in their code..
 
4:04 PM
@MadaraUchiha it's really just a find&replace
our deprecations and removals are typically much worse
 
hello friends
 
@bwoebi The problem isn't fixing it, the problem is breaking library API
 
@NikiC yeah, but library APIs are typically opensource? - which Levi noted that it won't break much.
 
@NikiC I'm not really afraid of library APIs
 
@MadaraUchiha I am because it breaks my code specifically ^^
 
4:07 PM
Since libraries can say "we don't yet support PHP version X" and then at one point someone fixes it and then "we do support version X"
 
In that sense closed source is not the problem. There you can fix this with find and replace
 
@NikiC Not necessarily....
 
Because you don't have dependents outside your control
Unless you do, of course ^^
 
I've never seen a legacy project where you can just search and replace anything.
It's never that simple
Something always breaks
Hell, I've seen systems break over the removal of comments
 
@MadaraUchiha In that case "fixing" it is a semver major change though
 
4:10 PM
Making a reserved keyword is always scary, and a word as common in programming is fn is ten times as much.
@NikiC If it's on a public API, yes.
But then again, introduction of a new keyword also smells like a major semver change in PHP
 
@NikiC it depends… you may do if (PHP_VERSION_ID < 70200) { function fn() { new_fn(); } }
 
Wes
4:40 PM
it calls an overridden method while keeping the correct static?
 
@Wes I believe it's a hack for before static:: was a thing.
...wait wat.
!!lxr forward_static_call_array
 
[ -MASTER/ext/standard/basic_functions.c#4911 ] PHP_FUNCTION(forward_static_call_array)
 
Wes
god what a mess statics
how stupid they get inherited...
...i've decided i don't care understanding that :B
 
4:57 PM
@DaveRandom gosh, there's actually a market of these things
> COLOR MY BOOBS: A Titillating Coloring Book for Adults
and some great humor
 
user image
3
 
Anonymous
@PeeHaa you around?
 
If you drive one of those "fast" Audis, I hate you ...
 
//i.imgur.com/U5A5J4x.jpg
 
@Jeeves fail
 
@NikiC <html>
 
lol
 
Anonymous
@DaveRandom I've ballsed up my Jeeves :( Can you help me unballs it please?
 
Wes
5:22 PM
@JoeWatkins also bmws and mercs... it's the same kind of drivers. just the other day i overtook a bmw in a very undramatic way... the moron was barely moving. but he overtook me back and looked at me like he wanted to race
 
mercs are mostly driven by respectable business types here, thankfully ... bmw's are driven by all kinds, but the drivers just don't seem to be as stupid as a particular kind of audi driver ... normal audis are fine, it's these ones that are meant to be some sort of family friendly racing car usually an estate, with silly flared arches and big exhausts on them ... they can't catch 1000cc motorcycles, hardly anything can, but they will happily sit in your braking space being knob heads ...
I'd like to stop and punch them in the throat ...
but can't even slow down because so erratic and dangerous ...
 
@JayIsTooCommon yo
@JayIsTooCommon what's up?
 
Anonymous
it's my php installation not Jeeves :/ - Do you mind running !!leave on Jives #2 please?
 
Wes
@JoeWatkins fucking idiots...
the thing is, most of mercs, bmw and audi are sporty these days, so even a family guy feels compelled to drive like hamilton @JoeWatkins and they really shouldn't, because most of people can't even drive in normal conditions, imagine at high speed...
 
5:47 PM
I've had very fast cars before ... I would never try to engage a motorcycle, and wouldn't have when I was 18 years old ... I don't know what they are thinking .... the two don't mix, and you will just end up looking stupid, and upsetting your wife and kids, who usually really hate that shit when it gets real fast ...
you should have to take a special driving test before you are allowed to buy powerful cars ...
 
Wes
@JoeWatkins yeah it's fucking stupid lol
 
I had to, before I was allowed to ride a powerful bike ...
 
Wes
are there different licenses for bikes?
don't even know..
 
yeah, of course, much training and two additional tests ... restrictions on age and power of motorcycle also
3 additional tests actually, if you count the theory test ... which is different for car and bike ...
 
Wes
i think we have at least 2 different licenses for bikes here... but one is mostly for kids, for 50cc engines
dunno if there are more
 
5:52 PM
you have the same power/age/displacement restrictions all eu countries have ...
and you're no longer allowed to just do the full test like I did ... some countries may ignore that rule, ones that just joined EU possibly ... but it's mostly the same all over the EU ... it would be extraordinarily stupid to let an 18 year old jump on a bike like mine, they would die on their first ride ...
 
Wes
yea i just checked, it's 3
 
oi
 
Hello
echo"<td align='center' bgcolor='FFFFFF'> <input type='text' name='corp_resp_template&{$mostrar['menuId']}' value='$corp_resp_template'> </td>";
where is corp_resp_template
what i put there
can be sent to update the database
 
@Wes perfectly sensible ... people forget they have lives in their hands when they get in their car, the danger is so exaggerated on a bike ... just practically, there can't be many 18-25 year olds with the physical strength required to hold up a big bike, getting 200 kilos off a stand is not very easy for a normal sized human being ... if there are such people, they should probably be locked up for public safety anyway :D
 
i know is Sunday
but if someone can give idea
i aprecciate
 
6:00 PM
Murder the person who taught you that.
/s
 
array(2) { [0]=> string(1) "0" [1]=> string(1) "4" }
Notice: Array to string conversion in C:\xampp\htdocs\dissertacao\validacao_alterartemplate1.php on line 42
array(2) { [0]=> string(1) "0" [1]=> string(1) "5" }
Notice: Array to string conversion in C:\xampp\htdocs\dissertacao\validacao_alterartemplate1.php on line 42
array(2) { [0]=> string(1) "0" [1]=> string(1) "6" }
Notice: Array to string conversion in C:\xampp\htdocs\dissertacao\validacao_alterartemplate1.php on line 42
array(1) { [0]=> string(18) "corp_resp_template" }
i having that error
in next page
where i want to submit the new values in update set
 
6:16 PM
@Levi there is a voting doodle on the arrow functions page, and the link in --> shows "this is an old revision" on top of page ... also, I like it now ...
 
The doodle is closed, yes?
I linked a specific revision when I linked it ^_^
 
@LeviMorrison yeah, just premature to include it maybe ...
 
Just shows what the voting will be when it happens.
 
> Voting will be a simple Yes/No that requires 2/3 or more of the votes to be “Yes” to be accepted.
voting options may also change during discussion ...
 
True.
It's actually been there for quite some time ^_^
 
6:21 PM
it's not a big deal, just thought I'd mention that it might be premature to decide what the voting options are in a draft ...
also iirc you can't reuse whatever name you gave it if you have to add options, it will magically use the same options if you reuse the name ...
 
@LeviMorrison It seems like my (branch prediction hint) tests from yesterday were bogus.. I've played with it today a bit more including some more "real-life" tests and thankfully, the branch prediction hints actually seem to get it right in the majority of cases.
 
@pmmaga You should try removing them but doing LTO or whole program optimization ^_^
 
6:39 PM
That could be interesting ;)
 
Interesting..
 
MGE
7:06 PM
hello, I have this array, and I need to sort by date
Array
(
    [0] => 01/19/2017
    [1] => 01/21/2017
    [2] => 01/28/2017
    [3] => 01/29/2017
    [4] => 01/25/2017
    [5] => 01/26/2017
)
I tried this, but the order is not the correct:
 
well then turn them into dates?
 
MGE
function cmp($a, $b) {
      if ($a[1] == $b[1]) return 0;
        return (strtotime($a[1]) < strtotime($b[1])) ? 1 : -1;
    }

    usort($dates_list, "cmp");
 
($a < $b) ? -1 : 1;
Try having the order that way round? I can't remember if it's safe to swap it.
 
MGE
Before usort()
Array
(
    [0] => 01/19/2017
    [1] => 01/21/2017
    [2] => 01/28/2017
    [3] => 01/29/2017
    [4] => 01/25/2017
    [5] => 01/26/2017
)
after usort()
Array
(
    [0] => 01/25/2017
    [1] => 01/26/2017
    [2] => 01/29/2017
    [3] => 01/28/2017
    [4] => 01/21/2017
    [5] => 01/19/2017
)
 
1 min ago, by Danack
Try having the order that way round? I can't remember if it's safe to swap it.
 
7:13 PM
@MGE Why are you writing $a[1] and $b[1]?
You're comparing 0 with 0
 
MGE
yes
sorry
solved, thanks for your time @Danack and @NikiC
using:
function cmp($a, $b) {
      if ($a == $b) return 0;
        return ($a < $b) ? -1 : 1;
    }
    usort(
 
With Doctrine why is it so hard/impossible to have basic ID relationships? For example some of my entities reference their aggregate root but not by object reference but by a simple ID value object. There is no reason for the entity to reference the whole aggregate root but Doctrine only seems to work one way
 
WTF? Googling "amphp php" yields de.wikipedia.org/wiki/C4_(Sprengstoff) on page 3.
 
what is phppackages ?
I get a russian freelancer as result 2 on page 1 lol @kelunik
the results will/may vary by country also ...
also, no page three at all ...
 
Oh, I filtered on last 4 weeks to find new stuff. :-)
 
7:28 PM
and mostly unrelated results ... you should probably work on that somehow ...
"amphp" does much much better
 
The issue is that Google things amphp is a synonym for amfphp, and Googles Amp project makes searching for Amp horrible.
 
yeah it tried to do that to me too
 
@kelunik that's awesome though
 
It's really interesting that we seem to be much more popular in Russia than in other countries.
 
7:45 PM
@kelunik do you have analytics on that show how widespread the interest is in Russia?
 
So I tried to yield a large websocket message..
 
I think it was you @bwoebi - do you remember an article that was published around the time that PHP 7 was launched, that seemed to be taking a lot of credit for it, by someone who hardly did anything. I can't remember the company they worked for but it was a big russian social site....I wouldn't be surprised if they would be one of the first large scale adopters of amphp.
 
c'thulu apparently intercepted this websocket message
 
@Danack taking a lot of credit for what?
for driving PHP 7 forward?
 
user895378
@Danack I vaguely remember this
 
7:48 PM
@bwoebi Getting php 7 out the door.
 
don't remember
@rdlowrey seems to remember, so maybe he can find it again?
 
user895378
speaking of large-scale adopters of amphp ... my async stomp lib is getting very mature ... that's the only thing I've been missing from the amp ecosystem to let me start using amp for everything in our distributed microservice stack at work
 
user895378
will be pushing up to a new repo tonight
 
@rdlowrey Okay, let me check then whether your style of coding is still acceptable :-p (I'm sure it is!)
 
user895378
Haha cool
 
8:16 PM
oh fucking hell...
!!github status
 
good: Everything operating normally as of 2017-01-13T16:55:51Z
 
hmmmm
 
@Danack didn't Zend did that a bit? I seem to remember something like that, but maybe it's another unrelated story
Dec 2 '15 at 14:43, by ircmaxell
it has to do with Zend taking credit and profiting off of the community without even having the decency to make any sort of gesture of friendliness. It's like they're pissing on us without the courtesy of calling it rain...
I'd forgotten how much of a poet that man is
 
@FélixGagnon-Grenier they did.....but there was also one guy who seemed to be taking credit for stuff....more in a way to make it look like he had been contributing to open source stuff to his boss.
 
If I was to build a response factory, would I build a factory for each type of response (allowing me to type and pass specific arguments) or a generic one (one factory, arguments collected using ..$args or something)?
 
8:35 PM
@Sean I think you need one interface per 'type' of factory, and and then how many implementations you have is a stylelistic descision - gist.github.com/Danack/7d66f4dea91b21acbc3534ede8390dea
 
Anonymous
@DaveRandom @PeeHaa github.com/Room-11/Jeeves/pull/145 PITA :P. tested a few inbuilt on mine and all seems fine but can't test every response
 
@JayIsTooCommon @DaveRandom ^^
:D
 
hmm.. does anyone know why do we use gcc's -g even when debug is not enabled?
 
user895378
/me is still hoping for "read only" properties at some point in PHP ... would save me a lot of performance hacks to avoid fcalls
 
user895378
^ @bwoebi any idea how difficult that would be?
 
8:45 PM
Evening
 
@rdlowrey the only thing to take care about would be references here… but apart from that it would be relatively trivial
 
user895378
there are so many places in amp library code where we could benefit from public property access vs. method calls for performance but really also need the safety of knowing the property can't be modified
 
@rdlowrey though I do not really feel like read only properties are the way to go … more something like PHP 4 style objects (or basically structured and named arrays)
@rdlowrey there are a bunch of things which are not supposed to be shared with other contexts (e.g. deferreds) … there one could just make the $promise property public TBH…
 
user895378
yeah ... $deferred->promise could be a property and we could protect it with zend.assert hacks ...
 
user895378
(but again, those hacks are unnecessary if you have readonly properties)
 
9:48 PM
@LeviMorrison Played a bit with that and actually managed to compile using lto. However, to make it work without changing the source I had to undef HAVE_GCC_GLOBAL_REGS which seems to have undone whatever advantage lto could potentially bring
 
 
1 hour later…
10:58 PM
@pmmaga I thought we had a make target for LTO. Might be misremembering though.
 
@LeviMorrison You're probably thinking of the PGO target
 
Ah, which would be more applicable to this situation than LTO ^_^
 
11:33 PM
teacher's aid: imgur.com/gallery/NoPcf
3
 
00:00 - 15:0015:00 - 00:00

« first day (2290 days earlier)      last day (2661 days later) »