« first day (2028 days earlier)      last day (2917 days later) » 

5:00 PM
@Sara indian programming detected
 
did they mention MVC ?
 
They did mention MVC.
>Required Skills:

PHP middleware

Laravel (this is the PHP web framework the client is using)

MVC (Laravel is MVC based)

Architecture and development

API’s
 
@Ghedipunk a simple "No, thank you." would probably suffice
 
@PaulCrovella That's what I'll likely respond with... but I still want to express my snarkiness with having to waste a full two minutes reading that email.
 
I love doing benchmarks … against the wrong binary. ARGHS
 
5:06 PM
!!version
 
@PeeHaa off course it was :P
 
:P
That ^ did blow up though right?
 
@Ghedipunk and even more time ranting about it!
 
@PeeHaa LOL yeah
it was case in some part of india
 
> More than 300 people have been arrested in the Indian state of Bihar after photographs and video showed widespread cheating in school exams.
 
5:08 PM
@bwoebi Well, I enjoy the ranting, so I can't complain about that...
 
lol 300
 
@Ghedipunk it's cathartic
 
Sorry people. I need to test jeeves in here. It worked juuuuust fine on my machine :|
!!version
 
wtf asshole
@Jeeves I hate you
 
5:10 PM
!!google op
 
Search for "op" (http://bit.ly/23spdRF)
• OP - Wikipedia, the free ency… - OP, O.P., Op, or Op. may refer to: Contents. [hide]. 1 Arts; 2 Internet and gaming… (http://bit.ly/23spdRE)
• Bagage op het station | Reisi… - Op en rond het station zijn bagagekluizen en -depots waar u snel en veilig uw bag… (http://bit.ly/23spfJl)
• Ons' Lieve Heer op Solder - Ons' Lieve Heer op Solder · Een verborgen schat op zolder. … Ontdek het huis · He… (http://bit.ly/1T3AE2F)
 
I thought it were hl=en?
 
I thought so too
 
user image
4
 
5:15 PM
@PeeHaa work so far
err... yeh
so I forgot how md works :-P
 
:D
8 messages moved to bin
 
> Showing 48 changed files with 614 additions and 415 deletions
And I haven't actually made multi-room work yet, that's just refactoring the framework to allow for it
 
So sad that git diff doesn't understand lines moved :(
We need a neural diff
 
evenin
 
hey @tereško o/
 
5:18 PM
@tereško \o
 
What does the $host represent @DaveRandom?
 
You may need to be more specific if you don't want a glib response
 
@PeeHaa Oh yeh I'm not entirely happy with that, it's to allow us (potentially) to operate cross-domain with multiple web sockets in a single app instance
So a single process would be able to live in chat.SO and chat.SE rooms at the same time
 
5:22 PM
They put the constants in the implementation instead of the interface
 
I would go in the opposite direction, a separate process per room. Keeps one room from spoiling the availability of the bot in another. Combine that with systemd unit templating, and boom, you've got yourself a stew
 
nvm :P
There is stuff changed above it
 
Yes I know, I flipped the import to the concrete impl and complained to @kelunik
only for that file though
will add a //fixme
I will open an issue on github, unless @rdlowrey is around atm?
 
I doubt @rdlowrey is around
@rdlowrey is never around
I don't know whether @rdlowrey is still alive
@rdlowrey
 
I wonder why he doesn't show up much any more, it's not like we are really annoying or anything
 
5:25 PM
ikr
Ooooh I see what host is for...
/me is slow
 
hi what you all working on
:)
 
I'm not happy with that huge layer of pass-through but it's OK for now
 
@Scott chatbot AI
 
@PeeHaa ftr what's there passes every PHP Storm inspection except spelling and the annoying HTML deprecated warning
 
im banging my head against a wall with jQuery lol
 
5:30 PM
Otherwise known as "using jQuery"
 
@DaveRandom What's the spelling / html issue there?
oh ArtaxClient
 
yep i have a code bounty going if you know any jQuery wizards
 
right click -> add to dictionary
 
0
Q: Merge jQuery table paging and filter functions so they work together

ScottHi so I have a webpage with two tables https://jsfiddle.net/51Le6o06/37/ in this jsfiddle everything is working fine. The tables are sorted on page load by (.amount) [to display in order of price] also the filter "free handsets" is working well, as you can see each row has a child row. You will ...

 
@PeeHaa no I mean the entire patch
 
5:31 PM
oh :)
 
btw @PeeHaa I assume the the openid stuff is passed between sites with cookies and that is dealt with automagically by artax?
 
I am still a bit confuddled by the complete lack of state being passed between all the login/connect routines
 
thought id visit the php room where everything makes sense lol
 
@DaveRandom Still, my personal wishlist in terms of CS: align properties beign set in ctors, next line method / class braces, signel quotes all the things
 
5:33 PM
@PeeHaa Yeh I burned a few double quoted strings as well
 
@DaveRandom I doubt the first. At least on other sites you still have to click a login button to actually log in
It used to be like that
/me opens other SE site
Yeah if I go to SU now I am not automagically logged in
 
Then I do not understand why this works:
$openIdLogin = $injector->make(OpenIdLogin::class);
wait(resolve($openIdLogin->logIn()));

$stackOverflowLogin = $injector->make(StackOverflowLogin::class);
wait(resolve($stackOverflowLogin->logIn()));
They do not share any state that is mutable, and there is nothing passed from one to the other?
 
That's the beauty of it! Nobody does!
:P
 
It must be cookies, there's no other way, surely?
 
I am agree
 
5:36 PM
Unless Artax is actually magic
 
Let me see what typed into the readme
 
@Scott please refrain from duplicating your own answer and use an old car dealer trick to make people answer... as of itself, a bounty is a bounty. let it live it's bounty life
 
@FélixGagnon-Grenier youtube.com/watch?v=wP_u2sv1op4
 
so not clicking that
 
@DaveRandom Ugh fucking key magic
 
5:38 PM
@FélixGagnon-Grenier its the bounty advert haha
 
@NikiC sent mail about static vars :-)
 
Yeah cookie
 
should be quite consistent now
 
@Scott don't do that. that's not how things work here.
 
@bwoebi Somehow you went from 1.5% to 0.3% improvement? :/
 
5:40 PM
@Joe yo, with Inspector, when do I use getName and when do I use getNumber for operands?
 
@NikiC I was mistaken … it's 15% improvement inside BIND_STATIC (and 0.3% overall)
 
@PaulCrovella do what have a joke?
 
I think I might be confusing what Variables, Compiled Variables and Temporaries are
 
@Scott advertise bounties in questions. that's not what questions are for.
 
I thought @ was for CVs…
did I get this all wrong and @ is a temporary
 
5:42 PM
@PeeHaa I just realised why I'm not happy with that epic $host chain, it's in the wrong place, which is an artifact of the fact that we can't handle events other than messages atm (which I will be fixing shortly)
 
@Andrea @ is a var
 
@NikiC the main issue is the L3 cache fetches (I'm not sure, but might be even main memory) for the values in Closure fetches
as they're allocated at totally different locations
 
@NikiC okay, what's the difference between CVs, variables and temporaries
(and which ones have names)
 
@PaulCrovella oh i thought u was talking about the joke i had above
 
@PeeHaa An experiment suggests that the first step may not be necessary, if I comment those first two lines out of the bootstrap it still works
 
5:44 PM
@PaulCrovella with the bounty advert on youtube
 
@Andrea gist.github.com/nikic/4e7b2010143b6caf1509a71c584f0376 copy&paste from some old blog post lying around
 
I have a string $comparator = '>'; How do I use that string for comparing two numbers?
 
@DaveRandom Nice. I was suspecting hoping that could be dropped
 
@NikiC ah, thank you
so, now I've found three naming mistakes in ELC
 
@NikiC actually, a TMPVAR may be as well misused for an IS_INDIRECT… nothing preventing it (?)
 
5:46 PM
w…l…e…p…
 
@PeeHaa may be needed for other sites so not useless anyway :-)
 
@FélixGagnon-Grenier dont flag questions as duplicates without reading them first
 
@Scott didn't even click it. I edited your question to spare you some hate - the people you want answers from are the ones who'd respond poorly to the ad, while the people who'd respond positively are idiots whose answers you shouldn't trust.
 
@bwoebi nope, we assume that only var is indirect
we don't perform deindirections on tmpvars
 
@NikiC yeah, get_zval_ptr_ptr … but we may trivially abuse TMPs for them
 
5:50 PM
Are TMPs and VARs numbered differently?
 
if (arg_info->type_hint != IS_UNDEF && arg_info->allow_null) {
        smart_str_appendc(&str, '?');
}
@bwoebi I should be able to push that code into the zend_append_type_hint function, yeah?
 
@NikiC in the sense of, we have no equivalent for get_zval_ptr_ptr in TMP
@LeviMorrison yes … but my main point was about the compatibility check
 
@Andrea No. All of CV, TMP and VAR are numbered the same
CVs are always before TMP/VAR, the latter are intermixed
 
@bwoebi Sure, I had just noticed this because you drew attention to the code at all ^_^
 
@Levi + if (fe->common.arg_info[-1].allow_null && !proto->common.arg_info[-1].allow_null) { in zend_inheritance.c:346
 
5:52 PM
@NikiC oh, great
 
@LeviMorrison ah ^^
 
that means I can pretend there's no difference between TMP and VAR for a short while :3
 
@Andrea TMP/VAR is only an optimization. If you don't care about that it's fine to treat them as being completely interchangeable
 
@NikiC I don't care about it currently because ELC does not currently have references
 
@NikiC As far as I see, the only point about VAR is references (we could easily move indirects to TMP … it doesn't matter much whether TMPs or VARs are responsible for indirect handling in general)
Didn't you have some plans to merge them?
 
5:55 PM
@bwoebi Nope
I do want to remove some of the specialty of VAR
 
I thought so… but fine
 
To allow us to switch more VARs to TMPs
 
@bwoebi To clarify, that snippet should work, not fail, correct?
 
There are currently a number of things implicitly associated with VARs in the compiler
 
@LeviMorrison correct
 
5:56 PM
It does pass and I think there probably isn't a test because Dmitry did that part and he's implementation focused.
He realized that implementation wise it won't take a different branch.
 
eventually. Might be wrong…
 
@bwoebi fyi eventually != eventuell
 
@NikiC Hehe, I'm misusing it sometimes… I know :-/ possibly would be better, but I don't always think about that…
 
6:20 PM
L0010: INIT_FCALL ∅,∅,'var_dump'
L0010: INIT_FCALL ∅,∅,'factorial'
L0010: SEND_VAL ∅,7,∅
L0010: DO_UCALL r0,∅,∅
L0010: SEND_VAR ∅,r0,∅
L0010: INIT_FCALL ∅,∅,'factorial'
L0010: SEND_VAL ∅,15,∅
L0010: DO_UCALL r0,∅,∅
L0010: SEND_VAR ∅,r0,∅
L0010: DO_ICALL r0,∅,∅
L0010: RETURN ∅,1,∅
trying to make PHP opcodes look more like x86 assembly
(failing)
(null)() - test.php:1-10
L0010: init_fcall 'var_dump'
L0010: init_fcall 'factorial'
L0010: send_val 7
L0010: do_ucall r0
L0010: send_var r0
L0010: init_fcall 'factorial'
L0010: send_val 15
L0010: do_ucall r0
L0010: send_var r0
L0010: do_icall r0
L0010: return 1
better :3
 
ifcall 'var_dump'
ifcall 'factorial'
sval $7
ucall %r0
svar %r0

...
 
now if I just remove the _s and rot13, it'll be almost indistinguishable
@bwoebi AT&T? D:
 
nobody likes intel asm
 
lies
 
it's the truth
AT&T asm looks more assembly-ish than Intel anyway
 
6:26 PM
yeah that's true
I might switch to AT&T just for that reason
 
I mean, DS:SI, DWORD PTR, MWORD and these things are just plain weird
and mostly what I hate about intels asm
 
@Andrea It's actually pretty awesome....it corrects a mistake in the language of constructors (existing and) being unavoidable.
 
user1804599
Is this a bug in HHVM? 3v4l.org/HOEqb
 
ooooh
I thought there was a bug in my code, but nope, PHP is just lots better at temporary reuse now :3
sometime in the last 12 months it shed 2/3 of the temporaries for this code
OK I need to figure out how to compile a specific function in a specific file with Joe's thingie…
 
@bwoebi wow, where do I get the stuff you're smoking? at&t assembly syntax is the worst
 
user1804599
6:40 PM
Yeah, seems to be. Filed it: github.com/facebook/hhvm/issues/7039
 
might need to implement the hack of doing require_once and hoping there's no conflicts
 
@Zoidberg Not exactly
 
user1804599
Why not?
 
@Zoidberg Because the code is stupid and there is no reasonable way to interpret it. Which is why PHP 7.1 will just reject it altogether :)
 
oh my god ahahaha
@Joe you named a class Global… that's a keyword ;)
 
user1804599
6:42 PM
@NikiC I encountered it while generating code.
 
@Zoidberg You'll have to stop generating that code then ^^
 
user1804599
Because my code generator just makes lambdas capture every variable in scope. :P
 
user1804599
I fixed it by adding filter (not . (`elem` ps)).
 
@Zoidberg too many parens
 
user1804599
filter $ not . (`elem` ps)
 
6:44 PM
$ohMyGodJoeReally = "Inspector\Global";
$function = new $ohMyGodJoeReally($functionName);
 
@Zoidberg thx
 
user1804599
Also wrote this crappy tool to make some code more readable :) github.com/rightfold/fh/blob/master/tools/steps.pl
 
user1804599
Generating PHP code is no fun.
 
user1804599
It's a lot more fun since PHP 7 fixed the variable syntax though.
 
@Zoidberg FH\Awkward ^^
 
user1804599
6:47 PM
I didn't feel like "Either" conveyed the error handling mechanism of it. So I called it "Awkward"; since it sometimes fails.
 
@Zoidberg Hrm, I think I don't like Perl code much
What does do { local $/; <STDIN> } mean?
In particular the $/ bit
 
user1804599
It rewrites steps {$x <- f(); $y <- g(); $z <- h(); i($x + $y * $z)} to f()->bind($x ==> g()->bind($y ==> h()->bind($z ==> i($x + $y * $z)))).
 
user1804599
@NikiC local is a bit like my $__old = $/; try { $/ = undef; <STDIN>; } finally { $/ = $__old; }, where $/ was already in scope (it doesn't create a local variable at all; name is due to historical reasons). <STDIN> reads from STDIN. $/ is the record separator, on which the <...> operator splits by default. So by making $/ undef, it reads all input at once.
 
user1804599
do turns a compound statement into an expression.
 
Ah
Okay, that makes sense ... in some twisty Perl way
 
6:53 PM
oh my god
my spider can't handle recursion
 
Never would have guessed that's what the code does
 
how the hell did I not spot this previously, oh god
private function spiderFunction(OpcodeArray $oparray) {
    foreach ($oparray as $opcode) {
        if ($opcode->getType() === ZEND_INIT_FCALL) {
            $functionName = $opcode->getOperand2()->getValue();
            if (!isset(PHP_FUNCTIONS[$functionName])) {
                $function = $this->getFunction($functionName);
                $this->spiderFunction($function);
            }
        }
    }
    $this->functions[$oparray->getName()] = $oparray;
}
no wonder PHP ran out of memory
function factorial(int $n) {
    return ($n > 1
        ? $n * factorial($n - 1)
        : 1);
}
^ it doesn't like this function much :3
 
user1804599
clang optimizes that algorithm to an iterative one, then performs tail-call optimization.
 
no wait, the problem isn't what I thought
honey, I accidentally the cache
 
@Zoidberg Isn't the transformation to an interative one also considered as TCO?
Just TCO with an accumulator
 
6:55 PM
@NikiC … not seriously? I think you should stop smoking and realize it's actually very nice …
 
user1804599
@NikiC Yeah, but you'd still get stack frames for each call.
 
intel syntax is okay for simple expressions, but when it does indirect offset expressions etc. things just become unreadable
 
@Zoidberg how can you make it iterative will still keeping stack frames?
 
handwritten intel syntax is somewhat okay usually, but generated is the worst
 
user1804599
@NikiC maybe dunno
 
user1804599
6:57 PM
yeah I guess you're right
 
@bwoebi You're probably just looking at overly verbose generated output
 
@Andrea yolo
 
Nobody actually writes DWORD PTR all over their code
 
@NikiC as said generated.
 
@JoeWatkins oh, also, new File("foo.php") will import foo.php's functions into the global function table :)
 
6:58 PM
At least from my encounters with it
which are few
 
And even then, anything is better than at&t
 
and in unix world everything is (typically) at&t
@NikiC what's so bad about it?
 
@bwoebi Like ... everything
The operand order is totally inverted
The unnecessary prefixing for immediates and registers for that matter
 
@Andrea yes ... few ways around that ...
 
The totally magic memory indirect syntax
 
6:59 PM
@Saitama are you using php 7 ?
 
@NikiC As said, I wouldn't write that thing
 
@JoeWatkins darn. well, it's handy for my purposes, and everyone uses namespaces these days, right? ;)
 
but reading is fine
 
(Unlike intel, where the offset is just spelled out in terms of normal multiplications and additions)
 
user1804599
@Andrea Everyone uses WordPress these days.
 
7:00 PM
@Andrea yeah hopefully, may be useful as an option though
pollution is bad, everyone knows that ...
 
@bwoebi So basically, what sucks about at&t syntax is: register references, immediates, memory references and operand order. Not much left there :P
 
@NikiC what's magic about basis(offset, multiplicand, multiplicand)
 
@bwoebi Everything? This is like, purely arbitrary syntax.
 
Hello Guys
 
A(b,c,d) vs [b+c*d+A], which is clearer?
 
7:03 PM
@Saitama code appears to be wrong, unserialize($this->args[0]) works, also, you should join the thread explicitly
 
@NikiC what's the problem of the prefixing, except that it makes things easier to read?
 
krakjoe@fiji:/usr/src/pthreads$ php -dextension=pthreads.so ../thing.php
object(sampleClass)#3 (1) {
  ["clousure"]=>
  object(Closure)#4 (0) {
  }
}
IF THIS LINE GETS OUTPUT-ED, I AM STUPID!!
 
@bwoebi noise
 
@JoeWatkins I see no line indicating your stupidity … everything's fine :-P
 
7:05 PM
@JoeWatkins you just need to replace the function table before compiling
 
@NikiC what I miss in intel is really the size suffix (b, , l, q)
 
@NikiC and class and constant and ....
but yeah ...
not sure what opcache might do
 
@JoeWatkins sure. just c&p opcache code
 
oh yeah ofc
it does it
I knew that ...
 
I have some applications which rely on OAuth class
I have given "php -m" and I am seeing this extension in the list that has got populated
I have also checked that oauth.so file is in /usr/lib/php5 folder
But, I still get "Fatal error: Class 'OAuth' not found in" error
Any idea why is this happening
 
7:07 PM
Do you guys know that feeling when the answer amounts to "you should have been reading more documentation"?
1
A: How do I display the echo of a PHP file that is ran by an ajax call?

KANAYO AUSTIN KANEYour variables have to be the same. If you are using success: function (html) then your console.log should be console.log(html) else if you decide to use data then you change html to data

 
@Zachiel it is often the case
 
oh heck
I wonder if we changed what order ZEND_JMPZ takes arguments, or it was just phpdbg printed them weirdly, hmm
oh, wat
JMPZ's jump target isn't an operand????
is it in extended_value or something? hrm
 
@Andrea in op2.num
 
@NikiC I thought it was. I wonder if Joe's thing might be lying to me
 
@Andrea the operand will, of course, be UNUSED
 
7:15 PM
@NikiC other thing … the intel syntax is expressing hex values with a suffixed h. Which is just weird to me.
 
@NikiC Ohhh, I see the problem now:
 
@bwoebi you can use 0x as well...
 
if ($operand->isUnused()) {
    return null;
} else if ($operand->isCompiledVariable()) {
    return new CompiledVariableOperand($operand->getName());
/* TODO: Distinguish TMP and VAR for optimisation purposes */
} else if ($operand->isVariable() || $operand->isTemporaryVariable()) {
    return new VariableOperand($operand->getNumber());
} else if ($operand->isJumpTarget()) {
    return new JumpTargetOperand($operand->getNumber());
} else if ($operand->isConstant()) {
    return new LiteralOperand($operand->getValue());
 
@NikiC yes, can … but that's how the generated asm typically looks like - My interaction with asm is typically analyzing the compiler generated bullshit.
 
@Zachiel test the sample i have commented on your post
 
7:18 PM
hmm
I wonder what ZEND_DO_UCALL is, I didn't get that opcode before (my compiler can't handle it)
 
@Andrea just a fcall on an userland function (compiletime optimized from do_fcall to do_ucall to reduce overhead)
 
@bwoebi ah
L0006: do_ucall r1
this looks just like do_fcall
 
yeah, it's ultimately the same, just do_fcall doing some checks which aren't needed for ucalls
 
case ZEND_DO_FCALL:
case ZEND_DO_ICALL:
case ZEND_DO_UCALL:
    if ($op1 !== NULL || $op2 !== NULL) {
        throw new \Exception("Can't handle non-NULL op1 and op2 for ZEND_DO_FCALL");
    }
    $this->emitLineBegin();
    $this->compileOperandAsLvalue($result);
    $this->emitLineEnd(' = fcallTargetStack.pop().apply(null, fcallArgumentStack.pop());');
    break;
:D
 
7:21 PM
@aman I will do whan I have access to the files.
 
IT COMPILES, ONCE AGAIN
Let's see if the output makes sense!
yep!!!
 
ok sure plz vote if its help
 
@Joe It seems that ElePHPants Love Coffee now has a working Inspector-based backend. Thank you so much.
 
@aman no wait json, I have absolutely no idea about how to use it.
Do I need to include other libraries for it to work?
 
Ekn
whaaat
"transforming Zend Engine III opcodes directly into JavaScript"
ehm, evenings
 
7:25 PM
@Ekn yes :3
 
@Zachiel by default you get the ajax response as html but i have forced it to give the response in json format
no you don't need any of library
 
@aman I will document myself about json in due time
 
@Ekn evenin
 
Ekn
o/
I'm gonna get a coffee first and try it
that's so.. cool @Andrea :D
 
@zachiel just try with the code which i have modified and test the response using firebug you will get what I'm trying to explain
 
7:32 PM
@Andrea :)
 
that is cool @Andrea
 
@cv-pls Yes. Ship it
 
Now I'm using PHPStorm to do a lot of refactoring. Specifically, s/opcode/opline
 
Ekn
I'm using a professor's account for phpstorm :p I feel bad..a bit
 
7:46 PM
i have never seen what phpstorm look like ;P
 
hey, naming help requested
I have an interface in ELC with two implementations. You give it a function name or file name, and it gets you the opcodes it contains (presumably compiling it somewhere along the way)
I currently have the interface named OpcodeReader but that's not very helpful
 
@Andrea that was TBH the name I was about to suggest
 
maybe OplineGrabber or something
 
@Danack here is the fun part: since Clinton will probably be getting the nomination, I probably will root for Trump :/
 
7:54 PM
@tereško jesus christ no
 
@Andrea I have this feeling that Hillary is the worse option there
 
Clinton doesn't have an honest bone in her body but she's competent and her policy platform is within reason
 
So, we have more than 24hours to submit RFCs for 7.1?
 
Trump would be America driving itself off a populist cliff
 
Ekn
^
 
7:55 PM
@Andrea based on how much he have been pushing for military actions, CISPA and TPP, I really think that Trump would be the better option
because if Trumps gets the nomination, he will be out in 4 years and all other republicans will be stopping him from doing anything
 
@Danack huh?
 
@tereško the US is discriminatory enough without the far-right in power
 
13 hours ago, by Joe Watkins
if anyone has any small rfc's they want to get into 7.1, you have 24 hours to announce/PR ...
 
remember that the US president is not just a figurehead, they have actual power
 
@Danack think that was a joke … freeze is early July
 
7:57 PM
But apparently he has rethought, judging from the email to internals?
k.
 
@Andrea you will have to back that one up with some articles (not from Salon, if possible)
 
@Andrea I'm not sure where to place Trump…
 
he's a far-right populist. that much is clear from the rhetoric
 
Trump is a populist and that hides a bit his real positions…
 
@Andrea IIRC, every US president's order can be overruled by 67% of vote by Senate
 

« first day (2028 days earlier)      last day (2917 days later) »