« first day (1735 days earlier)      last day (3210 days later) » 
00:00 - 17:0017:00 - 00:00

5:00 PM
and type reconstruction can't help that
 
@Sjon thanks
 
@samaYo I follow mostly only people whose opinions I care about. That and gag accounts, like Infosec Taylor Swift.
 
however, the type inference engine I'm planning should detect that because it dynamically looks through variable data flow rather than just the type flow
and hence it should be able to know that event though C::foo() says it returns an I, it really returns a C.
 
@ircmaxell However that may not necessarily be desirable
 
@NikiC which is why it isn't going on the reconstructor
 
5:02 PM
As such use implies an inaccuracy in the type declarations
 
That is pretty amazing @rlemon
 
while making it my gf got mad
"why do you keep playing that stupid fucking song!"
 
@NikiC well, I already support specifying tighter declarations via decblock
@DanLugg for example:
<?php

interface I {
	function foo() : I;
}
class B implements I {
	function foo() : I { return $this; }
	function bar() : B { return $this; }
}

class C implements I {
	function foo() : I { return $this; }
	function bar() : C { return $this; }
}

function test() : C {
	return (new C())->foo()->bar();
}
 
@ircmaxell Maybe I just didn't get what you meant there
 
$ bin/tuli analyze code.php
Analyzing code.php
Determining Variable Types
Round 1 (3 unresolved variables out of 10)

0 Variables Left Unresolved
Executing rule: Function and Method Call Argument Types
Executing rule: Function and Method Return Types
Executing rule: Constructor Argument Types
Type mismatch on return value, found B|C expecting C code.php:17
 
5:05 PM
No problem with allowing tighter decls in docblocks
 
Poor @DaveRandom, called me about an hour ago and he's in Gloucester. Supposed to have been in Southampton by then. Long car journey for him.
 
@NikiC I'm also talking about inferring tighter decls based on usage (though not as part of the reconsutructor)
 
/* @var $foo C */ is pretty much all I have working for me here ... for my sanity.
Like 0 cost assertions, we could have 0 cost casting ;-) ((C) (new C())->foo())->bar();
 
Hi guys
 
@NikiC Aside from it creates liars out of API docs.
 
5:11 PM
@DanLugg php types are just not precise enough
using array in typehint and Foo[] in docblock is totally noraml
 
user895378
@ircmaxell What does this look like? @tuli-return I<C> or some such?
 
@NikiC True, I do all the time. But I make sure I don't lie. Normally via final.
 
I have a basic question
If I have 2 interfaces which contain same method name and I am implementing both in 1 class then at that time suppose I call that function then what will happen?
 
<?php

interface I {
	function foo() : I;
}
class B implements I {
	function foo() : I { return $this; }
	function bar() : B { return $this; }
}

class C implements I {
	/**
	 * @return C
	 */
	function foo() : I { return $this; }
	function bar() : C { return $this; }
}

function test() : C {
	return (new C())->foo()->bar();
}
 
Gah, this train wifi sucks
 
5:12 PM
^^ that
 
user895378
@ircmaxell oh, easy enough :)
 
user895378
I was thinking more about generic types I guess.
 
^^ That's what I was talking about. Recursive type params for fluent interfaces.
 
@rdlowrey just @return C. Even though the declaration is I, I know that C resolves I so it's safe to assume the return is C (and I'll enforce that when analyzing the methods)
 
@rdlowrey Awesome.
@Jimbo And yeah.....trains today were a bad choice. Took me >5 hour to get here....
 
user895378
5:13 PM
@ircmaxell Any efforts to optimize for eventual promise resolution results e.g. Promise<bool>?
 
@ircmaxell but that is not implemented in one class
 
here's the code that resolves the return type of a method call: github.com/ircmaxell/Tuli/blob/master/lib/Tuli/…
 
@Danack :-( Changing at bloody Euston. Wifi doesn't work at all... currently 3G..
 
@rdlowrey "optimize"?
 
user895378
@ircmaxell I was thinking you were also working on compilation tools to generate optimized opcodes, but perhaps I made that up in my head
 
5:15 PM
I will be doing that
for now I'm focusing on analysis, specifically reconstruction
 
user895378
I see. Cool :)
 
so after Tuli, I plan on reviving Recki
but I do have other ideas i want to run with...
for example, security scanning
 
Morning Friday!
 
5:51 PM
@ircmaxell what's the source for the name Tuli?
 
Anonymous
@ircmaxell I thought you were going to create a router.. I read about that twice in reddit.
 
posted on July 17, 2015 by kbironneau

/* by blo_p */

 
6:09 PM
@Orangepill Sweedish for "Static" according to Google Translate
@samaYo I did, just need to publish it :-P
 
@Fab will be at SO at 6:30am ... fancy macdonalds breakfast ?
 
@ircmaxell okay... was hoping it wasn't en.wikipedia.org/wiki/Tuli_(rite)
 
@Orangepill no, but I may change it now
 
Anonymous
It would be nice to have a decent and bloat-free session-security class unlike gist.github.com/eddmann/10262795
 
@ircmaxell I was going to suggest a translation of analysis but every translation I found starts with anal... and we know how mature developers are..
 
6:19 PM
I went through a bunch of those, and this was the one that looked decent
 
you could go the pig latin route :) - aticstay
 
Use a "K". K's are more trendy. atikstay.
 
Anonymous
Just call it Attic.
 
Anonymous
That's static enough for me :)
 
most of the synonyms for static have a somewhat negative connotation.
 
6:28 PM
K0D3 KW4L17Y CH3KR
@rdlowrey I'm going to be gone for a week – you want me to leave leviathon up?
 
ERMEHGERD. KERD KWERLERTER CHERKER.
 
@danlugg is that a swedish chef translation?
@ircmaxell another reason maybe to switch from Tuli - sheldrickwildlifetrust.org/html/tuli_elephant_debacle.html
 
lol @ircmaxell sounds like you have picked a really terrible name this time :P
 
this one involving elephants
 
lol
 
Anonymous
I wander if the developer will "survive this" :)
 
@Orangepill No, that'd be cude-a qooeleety choocker
 
Well Dima, Yuka and Mascha are the names of frozen mammoths.. you get static and an elephant reference
@ircmaxell I'm assuming Recki is a reference to this dinosaurhome.com/palaeoloxodon-recki-42808.html
 
7:02 PM
 
@Orangepill yes
 
Holy shit I have found a use for my old rpi's. Git platform/code quality tool/ci runners
I'm taking orders now. ETA somewhere in 5 years
 
too hard to write
 
@Orangepill :( Look at that php 5 instance
 
7:08 PM
it is somewhat awkward
 
Anonymous
@Orangepill If you want free repz you can answer my question about the domain object ..
 
whoa... this is some Jurassic Park shit they are doing.
 
@Orangepill No, this is totally different. This is for Cretaceous Park.
 
is there a way to get the original cloned object within __clone() ?
also, evening
 
no
well, not unless you store the original on the object
class A {
    private $thisVar;
    public function __construct() {
        $this->thisVar = $this;
    }
    public function __clone() {
        $original = $this->thisVar;
        $this->thisVar = $this;
        // here
    }
}
 
7:25 PM
Every time @RonaldUlyssesSwanson asks a question I wonder whether it is pure genius or retarded
Most of the times it is a perfect mix though
<3
 
lol
 
I always thought the original object should be an argument to __clone
 
It's ok. I love you either way. You're my favorite Italian!
in Lounge<C++>, 3 mins ago, by fredoverflow
user image
5
Yeah that's ^ how bored I am
 
lol
 
7:43 PM
@PeeHaa yes! i'm halfly successfully faking to be a genius
 
Nice try genius
 
@samaYo gave your question an answer.
 
how was that genius & retarded?
 
@RonaldUlyssesSwanson yes
 
lol, you are emphasizing it too much. was a slight attempt of a feature request
should work as @DanLugg suggested, with the old $this as param
 
7:51 PM
Should, could, would
 
8:05 PM
the best part of google is that we have these areas with bed-like areas. I'm just chilling, laying down on the laptop
 
@PeeHaa have you tried "beer"
 
@tereško Already way ahead of you!
 
hmm .. that depends
which bottle you are at?
 
Anonymous
@Orangepill are you sure that's what a doman object model looks like? it seems bloated and everything is hard coded inside the BlogRepository class. In short, it's something I was afraid of doing and hence the reason I asked :)
 
Anonymous
I will just unleash @tereško in this discussion, if he is interested.
 
8:18 PM
he isn't
I am listening to "Old Man's War" audiobooks
 
@samayo how is this more complicated then performing all of the queries in the controller? This centralizes all your interaction with the database in one place. You could simplify it further by making the properties public and using $stmt->fetchObject("\\Model\\Blog"); but other then that it's basically the same.
@samayo you don't really gain anything by making properties private if the accessors and mutators are just passthrough for assignment and retrieving information.
 
8:40 PM
@samayo and as far as implementing the concepts of the Domain Model pattern ... you did that with your Blog class... I just offered a reference implementation on how to persist and retrieve that object.
 
8:54 PM
.. I wonder .. how is any of this related to a "controller"
 
I'm probably using the wrong term here... it's probably better described as a function that dispatches the request.
 
9:19 PM
brain pick: what's a very light weight blog posting package?
 
user895378
9:34 PM
@LeviMorrison please!
 
user895378
And thank you. But if it's a hassle don't worry about it.
 
cant find anything to watch.. hmmpf
 
user895378
I can make some suggestions if you have netflix
 
sure thx
 
user895378
Bloodline is really good after you get past the first one or two episodes. It takes a bit to build.
 
user895378
9:47 PM
I also really enjoy the Sherlock series with Benedict Cumberbatch and Martin Freeman
 
Okay =] I will try Sherlock
thanks
 
user895378
No problem. I'm a TV junkie.
 
you should see Mr robot
 
user895378
Way ahead of you dude. Watch 'em every week :)
 
I love it
 
 
1 hour later…
10:51 PM
@rdlowrey Nah, it will be a piece of cake.
 
Anonymous
11:29 PM
@Orangepill check out how @PeeHaa's commentar does it. It's good, but a little too much for a simpler app.
 
Anonymous
@tereško I would really appreciate your input in this.
 
hello
Why when I try to create an account on php shows the message: "That wasn't the answer we were expecting"
?
 
Anonymous
@RowAraujo don't check anything, just submit ... plus state your desire to join
 
user895378
@RowAraujo I think I had this problem before, actually
 
user895378
Make sure you're giving the right answer for the challenge question. I think you have to actually spell out the numeric answer IIRC.
 
user895378
11:37 PM
Like "forty-two" and not "42"
 
Anonymous
I have tried dozen of times mixing the answers, and all I got was the same response
 
challenge question?? it does not appear here
 
user895378
It's been years since I had to do it ... just trying to throw out anything I remember to help.
 
Anonymous
:/
 
user895378
@RowAraujo if you continue having problems you might try pinging @salathe on Monday to see if he can help you. You might not have much luck getting in touch with someone over the weekend, though.
 
11:42 PM
@rdlowrey ok
 
user895378
Sorry I can't be of more help -- I don't have any access to the wiki system.
 
ok thx
ill wait
 
user895378
You might also try DMing @bjori on twitter ... though try not to hassle him :)
 
hmm
 
user895378
I hate the wiki system ... I really think it would be much better handled on github.
 
11:44 PM
and this? -> php-webmaster@lists.php.net
 
Anonymous
^
 
user895378
sure
 
GitHub has no voting system
for pull request
 
user895378
Right, I just mean there are some aspects of the php.net infrastructure we could offload. It's less for people to maintain.
 
user895378
When things like the registration system break someone has to fix them and it's a PITA.
 
11:47 PM
@rdlowrey it also means relying on an external corporation
which I'm not a fan of, personally
 
user895378
@FlorianMargaine Right, which is a big factor
 
I agree that php.net infrastructure is not the best, however being self-hosted is a big win imho
 
user895378
I'm not saying move everything to evil github. But things like a wiki are very portable.
 
I'd also love to go through git format-patch/git send-email instead of PRs personally...
 
The best is to unify.
GitHub is amazing
and its always improving
 
Anonymous
11:51 PM
Not that much. It used to be easier to see your profile without the dropdown they are using now ..
 
I think GitHub should have sub-repositories...
Like this -> Zend/PHP/Source
 
Anonymous
hell no :)
 
hahahaha
i have to leave.
bye
 
php is not owned by zend
 
I know. It was just an example.
 
11:56 PM
Hey guys
Have any one of you used playcanvas before?
I built it as instructed, but I am having difficulty making the examples work...
 
00:00 - 17:0017:00 - 00:00

« first day (1735 days earlier)      last day (3210 days later) »