« first day (2621 days earlier)      last day (2320 days later) » 

10:00 PM
Well, 10 can be good for more than just gamming, with powershell and CTRL+V in cmd. And much more ease in other areas.
 
no (=
 
Still I get your point. I too have 2 VM running. Along with 3 personal EC2 in putty.
 
Wes
so basically computers in 1988 were factory vomit color
 
@mega6382 I suspect you are not too familiar with linux and bsd environments
 
At work I have the complete ms package.. win 10, vs17, vsts, etc etc
not nearly as good as I had expected
 
10:01 PM
@RonniSkansing are you stuck in frontend hell or something?
 
Wes
abs ebd
 
c# + frontend entropy hell (extensions)
 
ouch
 
typescript mostly in the frontend
but yea
doing go in private now a days, enjoy it much
 
@tereško I am, but I believe windows is trying hard to keep up.
 
10:09 PM
@mega6382 You mean trying to appear that they're keeping up.
 
hmmm perhaps..
 
To me all they're doing is giving up on hope that their solution is better and starting to adopt standards.
@Tiffany Poor adult industry.
 
@Allenph fucking hate ads that play sounds, flash or are full-page
ads like that and ads with malicious code are the reason I added an ad blocker
might actually get rid of my ad blocker after 2/15
 
I'm not sure how I feel about it.
 
10:18 PM
google are going to block “bad” ads because they're scared they make people want to use ad blockers, which hurt the revenues of ad companies, i.e. google
 
@Allenph from a consumer standpoint or an advertiser's?
 
What's bad for advertisers is sometimes bad for consumers.
 
@Andrea I think they're right...
 
it's a self-preservationist tactic but also an abuse of their monopoly probably, big conflict of interest there
 
yeah
 
10:19 PM
if the algorithm, that they use, will be made using the same approach as demonetization on youtube, it will be a clusterfuck
 
Hmm, I wonder if they will be more strict for non-Google ads. Kill competitors.
 
YT is its own kettle of fish
 
They'll only bless whatever ads they consider good ads
 
@crypticツ well, Google's ads already comply…
 
@Andrea it's their AI playground, as I see it
 
10:20 PM
as @Allenph says, this'll hurt the AV industry's ad networks probably
 
uBlock doesn't only block ads, it blocks trackers like Google's. Wonder if that data aggregation is what they are really trying to protect.
 
you could set it up to where it doesn't block ads, but blocks trackers
 
I might be switching personal browsers then.
I don't agree with that. Not a lot you can do at work though.
 
personally I use Privacy Badger
I really like its model. It ought to be built into browsers.
 
@Allenph Firefox has made some scummy moves of late
not as bad as Google, yes
 
10:27 PM
they screwed up with the mr robot thing
 
yes
 
they're mostly doing alright otherwise
 
mozilla at least has a pretence of caring about users, more than can be said of Google
 
Wes
@LeviMorrison first non declaration from top to bottom?
what if it's like

interface A {
    function foo(): X;
}

interface B extends A {
    function foo(): Y;
}

$x = new class implements A(){ ... };

interface X {
    function bar(): A;
}

interface Y extends X {
    function bar(): B;
}
i think that should be an error for the record. i dislike that in php you can do:
bar();
function bar(){}
 
10:37 PM
@Wes No. This is just groups sequential declarations.
 
Wes
it's fine for me
what would happen with the code i just posted?
error, right?
 
Wes
then i didn't understand :B
 
At that point A is defined and does not need any verification.
 
Wes
oh right
 
10:43 PM
Actually, I spoke too soon. It will error because it needs to verify Y is a subtype of X.
 
Wes
oh right 2 :B
 
interface A {
    function foo(): X;
}

interface B extends A {
    function foo(): Y;
}
// Here we need to autoload X and Y
// Then verify interface B
// however, they are defined below so the autoload will fail
// end result: undefined interface X
$x = new class implements A(){ ... };

interface X {
    function bar(): A;
}

interface Y extends X {
    function bar(): B;
}
 
Wes
i see
do you think people will complain about thaT?
 
Possibly but how else would it work? That is arbitrary code.
 
Wes
3v4l.org/HFs2v i mean this compiles now
 
10:50 PM
It doesn't need to load anything right now and would not need to even after the changes. It's not using covariance.
 
Wes
personally i don't care. if it wasn't allowed by php to mix declarations and "side effects" code i wouldn't complain about it not being possible. if i do that it's just because i'm lazy, not because i consider it a feature
so imho you are fine with that, although people might point out that the 3v4l code used to compile, but it doesn't if you add the covariant return
@LeviMorrison what if the code in between is an actual <airquotes>necessity</airquotes>? 3v4l.org/vfQhD
that is a very horrible thing too. conditional declaration
 
It will not handle any non-declaration.
In this case if you switched to covariant return types you would have to handle that conditional in the autoloader.
 
Wes
means it will error right away for both if and else?
 
<?php
// assume you change it like so
$condition = true;

interface A {
    function foo(): X;
}

interface B extends A {
    function foo(): Y;
}
// At this location it will autoload X and Y, which I will assume to fail and thus error *at runtime*
if($condition){
    interface X {
        function bar(): A;
    }

    interface Y extends X {
        function bar(): A;
    }
}else{
    interface X {
        function bar(): A;
    }

    interface Y extends X {
        function bar(): A;
    }
}
The only way this would not error is if in the future we perform certain constant folding and propogation with dead code removal at compile time, guaranteed.
That would be my guess, anyway; isn't implemented yet.
 
Wes
we should get rid by the way of conditional declarations
function bar(){ function foo(){} }
 
11:35 PM
@Wes they are very useful, we shouldn't
I will have a different opinion on this in 3 months' time probably, but :p
 
Wes
haha
 
Allowing parameterized types in type arguments is sure fun to implement...
Stuff like IterorAggregate<Iterator<string>>...
 
Wes
polymorphism covers 99% of use cases, but if we had function autoloading i would probably exploit the feature to make nice constructors :P
function Bar(...$a){ return new Bar(...$a); }
but that too is an hack
 
@Wes If we unified symbol tables we can do that in the language properly...
 
Wes
yeah that would be the proper solution :D
@Andrea you once talked about having special constructors that require no parentheses, right? borrowed from some language like erlang or something
 
11:41 PM
final class NewFactory {
    private function __construct() {}
    static function for(string $typename) {
        return function (...$args) use ($typename) {
            return new $typename(...$args);
        };
    }
}
NewFactory::for(Bar::class);
^ I have something like that in my code. The static method is just so it reads better.
 
Wes
i have Foo::new()(1,2,3) somewhere
Foo::new() returns the ctor as closure, the second pair of parentheses creates the instance
it is actually ctor() because i wrote it pre php7
 

« first day (2621 days earlier)      last day (2320 days later) »