« first day (1868 days earlier)      last day (3080 days later) » 

Abe
12:00 PM
@MarkBaker that's what i do too :P
 
holy crap the Zend Engine is tiny
it's ~58k lines of C code?
not very big at all
 
Abe
compared to a pile of bibles you mean?
 
~51k
 
@Andrea that much? Did you include vm_execute.h?
 
@bwoebi I'm not including generated code
but that doesn't include vm_def.h, so it should be ~60k
 
12:08 PM
@Andrea do you plan to rewrite it ? :)
 
hah, no
 
@Andrea I'd like to see that though! (J/k)
 
faaaaaaaaaaaaaak
 
Abe
incePHPtion
 
12:11 PM
@Andrea that's just boring slow PHP
 
why being "tech support" for family members is so fucking hard !?
 
@Andrea I was hoping for an at least twice as fast VM as PHP 7 has!
 
@bwoebi we can self-host eventually
then rewrite the compiler in a strict dialect of PHP and compile to x86-64 :D
 
@Andrea hehe
Anyway… the dynamic nature of PHP is nice, but makes impl. so hard ^^
 
"please check it out" or "please check out it" ?
 
Abe
12:14 PM
@bwoebi i have two suggestions today. have you got a beer ready?
 
though we're not as dynamic as JS thankfully
 
@Abe I don't drink beer :-P
 
@Shafizadeh first one, but you also need a comma after "please"
 
functions in PHP don't change, constants don't change, classes don't change
objects belong to classes
 
@tereško ah ok :-) thanks alot
 
12:15 PM
closures don't inherit scope
 
@Andrea with the caveat that you don't know ahead of time what the functions, constants and classes will map to…
 
@bwoebi sometimes you do, and you may know later, though
 
Abe
first suggestion is. i couldn't debug a class because my __debugInfo was broken #ultimatefail so i thought would be useful a way to switch back to the default debug_info handler, like:
function __debugInfo(){ return default_debug_info_handler($this); }
 
@tereško :D
 
12:16 PM
and one you know that, it's not going to change
so opcache can be quite efficient
 
it's "a lot"
 
so, thank you so much ;-)
 
Abe
instead currently you need to comment out all the previous __debugInfo in the hierarchy to switch to the default one
 
@Andrea yeah, sometimes, but not in general case … also opcache preventing a lot of optimizations as it's dynamically possible that a script includes two different files dynamically having the same func names defined…
 
sure
but that means we can do stuff like polyfills :)
 
Abe
12:18 PM
i actually think this would be handy to have for anyone
or a special case where if __debugInfo() returns "null" the default handler will be used instead
 
@Abe it'd be nice if all the default implementations were exposed as methods on StdClass or something
so you could do StdClass::__debugInfo();
 
if we could optimize PHP op_arrays at run-time to more specialized ops, that could be nice…
 
@Andrea uhm… we don't need polyfills at run-time… they are influenced by constants known ahead of time usually.
 
Abe
@Andrea well... would be a start
 
12:21 PM
@bwoebi if (...) { include ...; } is runtime
 
@Andrea but the part inside the if () is most likely resolvable at CT.
and most likely will be constant between requests…
 
btw I have some free time now, can you please give me the link of next version (part) of that audiobook? @tereško
 
probably
 
there are some parts in PHP where we have "these files will be always loaded"… then we could do cross-inlining through different classes and objects eventually @Andrea … especially in case you generate a fixed set of files to include
 
@Shafizadeh I'll see what I can do about that
 
12:25 PM
tnx buddy :-)
 
That's well, a very long way to go, but somehow that's what I'm imagining to become possible… @Andrea
because everything what's realistically now possible is inlining functions defined in the same file … because, well, dynamic includes…
 
@Shafizadeh but remember that you will need to download from somewhere else, because the file will be ~500MB
 
@Andrea But the first thing I'd like to see happen is optimizer being separated from opcache… because I'd like to have superfast cli scripts … and I could even do some additional optimizations under the premise that the resulting op_array won't be cached...
like resolving defined() at CT, etc.
Also, as said, aggressive inlining
 
@bwoebi you can use opcache for CLI :)
but yeah we should move optimizer into /Zend where it belongs
 
12:35 PM
I got one :D
 
@salathe I have one too :-P
 
also opcache too
 
@Andrea which in turn disables other optimizations in compiler
 
at the very least make opcache statically-linked :-/
@bwoebi oh D:
 
@bwoebi yeah but you went to Paris
 
12:36 PM
@salathe nice!
@Sara sent me one ^^
 
@tereško oh ...! An audiobook has ~500MB of size? seems odd. Because previous one has just ~200MB! anyway ok, I will download it at univercity.
 
statically-link, yes, into Zend/, not that much a fan of.
 
$ sapi/cli/php -r 'class List<int> { }'
Segmentation fault: 11
 
Everyone wants fast code, but I don't see how everyone wants caching…
 
joy
 
12:37 PM
@Andrea are you seriously working on it? :o
but seriously, that's one of the few things I'd like to see a proposal for first before the impl…
 
@bwoebi I'm just wondering how hard it would be to implement
@bwoebi I'm the opposite
There's currently a generics RFC but it's not very helpful because there's no implementation or will to implement
 
That RFC I had seen wasn't very detailed either…
Also, I wish our generics will not have to be explicitly defined, but inferred as much as possible.
 
@Shafizadeh the size depends on the bitrate for the mp3 files. Files with better audi quality usually tend to be larger (with minor exceptions for audio that was originally in analogue formats, like tape-recordings). An audiobook is usually at least 8 hours of audio (I had one audiobook which was 32h), while a music album is only a single hour.
 
Because that's really one of the things I really hate in Java…
 
Still waiting to see if @sara will organise production of phackyderms
 
12:43 PM
@tereško I see! ok. Did you do music-work so far? (I doubt I express my point correctly :-))
 
Abe
@Andrea why is everybody working on the same things without helping each others out :P
 
btw don't mix debug-mode clang objects with non-debug GCC objects :D
 
Abe
i'm working on generics too, userland stuff though
what have you done so far?
 
Oh, the issue was mixing PHP-7.0 and master, actually
@Abe nothing
 
Abe
:P
 
12:45 PM
@Shafizadeh nope. But I have had to work with websites that needed "resizing" for music and video files .. just like you usually have resizing for images. I picked up some basics.
 
ah ok
 
Abe
@Andrea i nearly got all the declaration part working. also includes unions and intersections (not working yet though) and haven't actually started the type variables substitution either too
this thing is taking me ages... it's the fourth rewrite currently. i think i've finally got it right now
 
$ sapi/cli/php -r 'class Set<int> { }'
[Fri Nov 27 12:49:19 2015]  Script:  '-'
Zend/zend_string.h(121) :  Freeing 0x108857840 (32 bytes), script=-
=== Total 1 memory leaks detected ===
$ sapi/cli/php -r 'abstract class Set<int> { }'
[Fri Nov 27 12:49:25 2015]  Script:  '-'
Zend/zend_string.h(121) :  Freeing 0x10A657840 (32 bytes), script=-
=== Total 1 memory leaks detected ===
success!
@Abe you said you were doing userland, is this a pure PHP implementation?
 
Abe
@Andrea yes. will look like: Set(Integer())->newInstance()
 
Ah, have you seen Anthony's implementation?
it's a giant hack but it works
 
Abe
12:52 PM
yes i did :P
 
^^
 
Abe
mine is not very hackish though
 
cool
 
Abe
you are supposed to check the parameters manually. nothing is actually enforced, for instance
 
@Andrea Derick sent me one, he's my new bestest buddy.
 
12:53 PM
@salathe hehe
@salathe fun fact: Derick helped me to sneakily add a page to PHP.net talking about elePHPants
 
Abe
class Stuff{
    use Generics;
    function test($t1){
        $this->checkParam('T1', $t1);
    }
}
declareType('class Stuff<$T1 is Baz>');
or something like that
perhaps automatable via aop
 
@Andrea the Open Goodies guys were wanting a link back to their site from that page, recently :(
 
Abe
also i'm very unsure about variance support. still can't see the big picture
 
@salathe is there a problem with giving them one?
 
12:58 PM
@Andrea Only the precedent it sets by linking back to a commercial venture, I guess.
 
yeah :/
I mean, giving elrubio/mr pontier a link feels bad anyway, I maybe shouldn't have done that
but I suppose it's okay to acknowledge he designed it
linking to a company, though...
@salathe we should link to the Ukrainian site :)
 
Historically, we've tried very hard to keep away from anything commercial / advertising.
@Andrea haha
 
@salathe yeah, the most we have is a link to whoever's hosting the site
 
it would help battle the monopoly they have on elephpants
@Andrea yup, and at least they have provided something (servers, etc.) for us
 
yeah
it's a pretty reasonable system
 
1:06 PM
damn
this is what I get for being on the country side
only 100KB/s upload :(
 
just get to the nearest fiber cable and hook in :-D
 
unfortunately I about as far from backbone as you can get in this country
and I will be home only in 3-4 days
 
@Epodax Trust me when I tell you
I was a supervillain long long before I was a blue supervillain.
 
Abe
@Andrea i have all this stuff working so far pastebin.com/TE0HNcs2 :P
(checks for correct variance etc)
 
btw, @MadaraUchiha, have you read this one: mangafox.me/manga/doupo_cangqiong
 
1:12 PM
Ahhh! It's Modara Uchiha! Beware his Baningan.
 
@tereško I think you've sent me this one already
I have it bookmarked at the very least
 
hmm .. maybe
 
But haven't gotten to it yet, no :(
 
@Fabor that was cringeworthy
 
Yup. :)
 
1:15 PM
posted on November 27, 2015 by nlecointre

/* by Vooodoo */

 
Abe
what are these in ReflectionClass ?
const integer IS_IMPLICIT_ABSTRACT = 16 ;
const integer IS_EXPLICIT_ABSTRACT = 32 ;
 
constants
 
Abe
> Indicates class that is abstract because it has some abstract methods.
 
@Abe wtf is implicit/explicit leaked to userland?!
 
you can have a normal class that has an abstract method, you can have a class that is explicitly abstract
 
Abe
1:21 PM
shouldn't the class be automatically abstract too, if it has abstract methods?
 
yes, that is implicit
hence the difference between implicit and explicit
 
I believe implicit abstract is when you inherit from an abstract class but don't implement all its abstract methods
 
Abe
and why is that allowed?
 
cause, php
 
having an abstract method should be explicitly abstract too.
 
Abe
1:23 PM
@bwoebi shouldn't it force me to explicitly add "abstract" to the class?
Fatal error: Class rofl contains 1 abstract method and must therefore be declared abstract or implement the remaining methods
 
Sec ignore body
 
hmm…
 
Abe
@bwoebi my guess is that exists just because of extension classes
 
dunno…
 
Abe
because in userland you aren't allowed to have a non-abstract class that doesn't have all abstract methods defined
 
1:25 PM
@Jimbo hhvm says no
 
I'm supposed to pass a codility test. I'm dead nervous.
 
HHMV can get stuffed :P
@FélixGagnon-Grenier I hate these things - rest assured that you're very competent and if you fail it's not your fault
Having school-style exams is very old-skool
 
yeah... it's been a long time since my last exam so I'm like a fish out of the river.. thanks for the props :)
 
Abe
@FélixGagnon-Grenier gl
 
printf('%s',"a\0b"); // "ab" .. thanks php
 
Abe
1:33 PM
$reflectionclass->classifies($instance); // much better
 
@MadaraUchiha Yea, but now you have the power to be extra supervillain-ish
 
@Epodax No argument there.
 
But I'm not that worried, I read the manga, and we got @Naruto here ^^
 
@Abe "classifies" wtf?!
 
someone rang me?
 
Abe
1:36 PM
@salathe from "to classify" :P
 
@MadaraUchiha fratz on mod :)
 
@Naruto Phhanks :)
 
@Abe Yeah, I know... still going to exclaim "wtf" :)
 
Abe
why that. it's how it should be
 
@Abe if you say so
 
1:37 PM
@MadaraUchiha but you know that if you don't do your job good enough, I'll be here to give you an asswhooping (again) ;)
 
Abe
@salathe what about "classOf" then?
$obj instanceof Class
$class->classOf($obj)
 
*refrains from further comment on the topic*
 
Abe
bah.
@salathe PHP7, though.
:P
 
classifies or classOf sound good.
 
*not going to take the bait*
 
Abe
1:40 PM
@MadaraUchiha thank you.
 
But then again, so does isInstance baiting intensifies
 
morning
Congrats new mod :)
 
it's a link!! AMG DO NOT CLICK
 
@Naruto Tooo late :)
 
1:52 PM
@salathe since you are the veteran here, I tough you knew better ^^
 
@MadaraUchiha congratulations, I've got tired voting for you for the last few elections :)
 
@Abe I didn't get the full context of what you're talking about, but why not finally enable $obj::class? it's beyond me why this never worked in the first place
 
@Naruto It's Black Friday, no harm in a little Rebecca today :)
 
@salathe already saw some vids people fighting in those black friday store thingies
 
I read somewhere that 7 people had died .
 
1:54 PM
@Gordon his "classOf" was returning a boolean, if $obj is an instance of the class being reflected on ($class = new ReflectionClass('Bob'))
 
@Epodax good riddance? ^^
 
Abe
@Gordon was saying that (new ReflectionClass('SomeClass'))->isInstance(new SomeClass) would be better if named (new ReflectionClass('SomeClass'))->classOf(new SomeClass)
 
hello everyone
 
I'm pretty sure that if I was ever in USA while there was a Black Friday, I'd barricade myself in a bunker.
 
ah, it's a about naming things. hmm, I'd probably go with a humble isClass() then. not sure I'd really need the Of
 
1:56 PM
quick question...i have a var which has html content inside...is it possible to acess a certain html element of that var?
 
Abe
classOf() or classifies() for me :P
 
Mm.. Well you are allowed to carry guns in Murica... So 'ill just drive my tank to the store, and walk through the store with my railgun... Safety first you know... ^^
 
Abe
@Gordon i agree though, i wanted to use $obj::CLASS too sometimes, and also suggested to the folks here
 
@Naruto guns != tank
 
I tought they were the country of freedom? Can't help it if my car is a tank?
 
2:00 PM
anyone?!?
 
Again tank != car :P
 
@Abe I wanna use it all the time and always end up using get_class
 
@Japa In PHP? Look at simpleXML or DOMDocument or something similar
 
@Sean yes in php
 
Abe
@Gordon have a base class, function getClassName(){ return get_class($this); } :P
 
2:04 PM
@Sean thanks
 
@Epodax shat up.. Stop trying to destroy my idea :(
 
lol :P
 
@Abe you can't use ::class?
 
Abe
doesn't work on objects
 
@Abe oh, you want to use it on instances okay :)
 
2:13 PM
ReflectionClass is nothing less than magic and wizardry.
 
Abe
what is the purpose of ReflectionType::allowsNull() ? (PHP 7)
ah, it refers to a sth used as param/return. nvm
 
@Abe static::class?
 
Using ZF2, I'm trying to make a database query in my controller. However, I need part of the persisting users details from the persisting doctrine object to get the right results from my query. Is there a way I can access the user's values within my controller?
 
Abe
@Andrea on objects. $stuff::CLASS
 
@Abe but if you have $this then you must be in the scope of the class
so static::class can work
$ php -r 'class foo {} (function () { return static::class; })->call(new foo);'
Segmentation fault: 11
o.O
Oh shit this happens on master too
fuck that's bad
 
2:31 PM
Wait...nevermind my question. Sorry to have bothered you. :)
 
Oh shit it's been in 7.0.0 for aaaaages: 3v4l.org/8vZhA
 
@Andrea well, I guess we know what you're doing for the rest of today :P
 
ooh, it's ->call specific
 
Abe
@Andrea we were talking about having $x = new Obj; $x::CLASS;, so no $this :P. i suggested to have $x->getClass() if you don't like get_class
 
@Abe baseclasses are teh evil
 
Abe
2:35 PM
depends what you put in them :P
 
@Abe it adds a fundamental coupling and dependency that I prefer to avoid
 
Abe
@Andrea imagine supporting generics on traits. makes me want to commit suicide just thinking about them
 
that would make traits a little more useful
 
Abe
definitely
 
Abe
2:41 PM
@Gordon mine is just InstanceBase{ equals(); getHash(); debugInfo(); toString(); jsonSerialize(); } ie things you will eventually end up having
 
Ooh someone marked it as reproduced :D
 
@Abe fair enough
 
Goal is to send 3000000 records to the Google Maps API in a single request - stackoverflow.com/questions/33959766/…
Is this guy for real?
 
@Andrea Congrats on the second RC8 bug; we just filed bugs.php.net/bug.php?id=70984 :)
 
@Sjon :)
 
2:47 PM
@Shafizadeh id.teresko.eu/Cursed%20%28Alex%20Verus%202%29.7z here is the file. Size: 384MB
it will be there for few days
contains mp3 and epub file
epub is openable with SumatraPDF (not sure about other tools, which can open those)
 
Hmm
segfault is ZVAL_STR_COPY(EX_VAR(opline->result.var), EX(called_scope)->name);
and I'm guessing EX(called_scope) is NULL
let's see.
Yep.
 

« first day (1868 days earlier)      last day (3080 days later) »