« first day (2321 days earlier)      last day (2627 days later) » 

4:00 PM
 
@Trucy said noone ever
 
my spotify playlist got blessed
 
'blessed'
 
@PeeHaa said someone living in the fucking mountains with fucking uphill slopes
 
:p
!!should I do chatbot fix or irc server tonight?
 
4:04 PM
You should do chatbot fix.
 
:-)
good elephpant
 
:)
 
@kelunik @bwoebi I'm conflicted with the PR requiring void callbacks. The purist in me says the spec shouldn't be concerned about the return value of a callback, but the practical side knows it will most often be an error.
It does seem we're trying to enforce our own coding style (coroutines) on the standard again.
 
@Trowski Same here.
 
4:09 PM
@Trowski Did you read the #reactphp discussion?
 
@PaulCrovella looks pretty much 1-dimensional to me :D
 
@Leigh it's on my shelf :)
 
:P
 
@kelunik Just read over it. I get the impression that there is no way the React group will ever accept change.
 
4:14 PM
!!youtube stewie griffin change
 
Search for "youtube stewie griffin change" (https://www.google.com/search?q=youtube+stewie+griffin+change&lr=lang_en)
• Family Guy - Stewie Doesnt Like Change - YouTube - I Dont Like Change! … Family Guy - Stewie Doesnt Like Change. Think Link … (https://www.youtube.com/watch?v=LHpdgHTINik)
• Family Guy - Stewie hates changes - YouTube - Seth MacFarlane performs his Family Guy voices - The Graham Norton Show: Series 15 - BBC One - Dura… (https://www.youtube.com/watch?v=cZwHOZIzEdc)
• Stewie I Don't Like Change - YouTube - Stewie I Don't Like Change. Willowispp …. Family Guy - Stewie's Music
 
Clue views async-interop as Amp. I don't think he realizes that Amp v2 was born out of async-interop. Yes, it was heavily influenced by Amp, but that's because so much time was spent finding the right way to do things.
They seem to have wounds from Guzzle implementing their own promises. I talked to one of the Guzzle contributors at Midwest PHP just before they released their promise library. They did it because React was taking way to long to review and merge the needed PR and they needed to move forward for AWS.
This has been my overall experience with React. I understand they're busy, but the speed at which problems are addressed is abysmal, performance is obviously secondary, and resistance to change is high.
 
@NikiC Voting closes on list() by reference today. The vote is very close so you may want to consider voting.
/cc @krakjoe as well
 
Yes considering voting no any way you like
 
4:18 PM
cc @Danack
 
When I started Icicle, async in PHP was a joke. I think projects like Icicle and Amp have revitalized PHP async. The interop group shows there's a better and performant way forward.
 
Hey guys.
 
Whether it passes or fails it's a close race so I thought it would be courteous to ping people to remind them.
 
@LeviMorrison I want to vote yes for consistency and no because references.
 
@LeviMorrison Agree
@Trowski That
In the end it resulted in....
 
4:20 PM
php's version of sophie's choice
 
For me it is an easy choice:
> The predominant advantage of adding support for this is that it allows you to use reference assignment for multiple variables at once, which is not currently possible.
 
hate against references
 
Quick q, about openssl_verify or better yet about some solution to verify certificate based on hash and not on starting data. Is there one?
I found only one working solution http://stackoverflow.com/a/39585649/318306
But it requires starting data and not hash
 
That premise has little value to me and I also can't see it having much value to anyone else either.
 
@kelunik @bwoebi @rdlowrey ^ So you don't miss what I wrote above.
 
4:21 PM
I've never seen anything like the examples in the wild:
list(&$one, list($two, &$three)) = $a;
I've never seen code like that (or its equivalent to what we have today).
 
@Eugene multiline messages mean no markdown
 
@Trowski Same here, lol.
 
@PaulCrovella gotcha
 
Sometimes the power of an RFC is obvious but in this case it seems like change for change's sake because someone wanted to do this one or two times.
We don't need dedicated syntax/semantics for things that one or two authors use one or two times.
 
@LeviMorrison It wasn't possible before 7.1, no?
 
4:23 PM
if (document &&
    document.processingsJson &&
    document.processingsJson.transcodeProcessing &&
    document.processingsJson.transcodeProcessing.progress &&
    document.processingsJson.transcodeProcessing.progress.status === 'SUCCESS') {
sometimes, I hate json and apis
 
list($one, list($two, $three)) = $a I believe has been possible for some time.
 
@FélixGagnon-Grenier It's your API that's screwed up
Not JSON
 
I've never seen a nested array deconstruction though…
 
heh. I'll bring that up at next standup :)
 
Make it consistent vOv
 
4:24 PM
@MadaraUchiha json is a little screwed up
 
I've never seen assignment by reference in projects I've used/examined at all except for stuff like this: [&$id, &$name] for mysqli_. (And to be clear I don't mean a destructuring; that's just an rvalue)
 
@PaulCrovella JSON is a lot screwed up
But it's not JSON's screw-ups that make him need that horrific code.
 
true dat, it's the rather unreliable state of what the api returns
 
@MadaraUchiha honestly I wouldn't go as far as a lot - compared to some other formats it's pretty tame
 
@PaulCrovella It's simplistic and often naive
 
4:27 PM
@Danack if I'm not mistaken you are fluent in this area. Do you have any input regarding chat.stackoverflow.com/transcript/message/35784626#35784626 ?
 
Do you know why there aren't comments in JSON?
Because douglas crockford thought comments are silly
 
to avoid people putting processing instructions in them
 
Most of the decisions made in JSON were very arbitrarily put there by Crockford, for better or worse.
 
Its the ultimate f-u to 'design by committee'
'design-by-crotchety-old-guy'
lol
 
@MadaraUchiha Rather he knew people would build DSLs out of them.
In my opinion that particular choice was a good one.
 
4:31 PM
agreed
 
i don't want to be all 'get off my lawn' but honestly I don't quite get all the hate XML gets, given how many things JSON doesn't have handled.
actually, i do. i like xml. get off my lawn.
 
I don't hate xml either.
 
!!> list($one, list($two, $three)) = [1, [2, 3]];
 
sgml I hate. with the fire of a thousand suns I hate.
and yaml can of course eat a dick
 
4:36 PM
how about TOML
or MAML
 
never dealt with them
 
lol
i don't think maml is real
 
oh fuck off
lol
of course its a microsoft thing
but its just xml with fancy stuff
that doesn't count
toml looks more like an ini file than yaml
 
you put two letters in front of ml, it's gonna be a thing
 
4:39 PM
mmml
 
zyml
 
@PaulCrovella pmml. @PeeHaa's Mum Markup Language.
8
 
@kelunik that hurts
 
@FélixGagnon-Grenier the entire grammar consists of "yes"
 
4:42 PM
PHML PeeHaa Markup Language
<FixIt fixit=fixit><FixIt /></FixIt>
 
too well-formed
 
<Fix it
 
minor: GitHub Pages builds are temporarily paused for unscheduled maintenance. GitHub Pages sites remain available as of 2017-02-22T16:47:47Z
 
@kelunik yep, don't really care about adoption rate tbh.
 
Evening
 
5:04 PM
posted on February 22, 2017

New Cyanide and Happiness Comic

 
I am making a web app for distribution, the web app allows the person who uses the web app (uploads it to their server) to create a widget to put on their site that requires an action, and once the action is completed will execute JS that is defined by the owner. Should I use PHP to create a new file for each widget the owner makes or should I just keep the JS in a database?
 
5:37 PM
wat, does the consumer upload the web app to their server and then create a widget ?
 
Yeah
 
and what is this widget? is it also on their site?
 
It can be on any site
So, probably a different site of the user
 
I heard that you should never store JS in a DB but it just feels wrong making new files for it
 
5:41 PM
so the consumer might have the web app and widget on their hosting, but the JS (which I guess Is defined by the user?) is hosted on your server?
 
The JS would be on the same server as the web app, and yeah it's defined by the person who has the server with the web app
So only one person would be using the web app
Or, that distribution of the web app
Nothing would be on my server
 
I think a file would be fine
 
Ah okay. I will dynamically create a random string for the JS file name and then keep a record in the DB with the filename, in that case.
 
But you could also put a reference to the file in the database
 
Thanks
 
5:44 PM
yea
 
Yeah ^^
 
rock on
 
\w/
 
6:16 PM
@rdlowrey have you per chance worked on some messenger application ?
 
6:33 PM
Is this sentence correct? (English perspective)
> I'd like to hear some new musics ..! All my current musics are getting old ..!
 
> I'd like to hear some new music. All my current music is getting old.
 
@PaulCrovella thanks. just are you sure? when you use "all", I guess you have to say "musics". also using "are" not "is"
 
Yes musics is correct
 
Is it really?
 
yes it's plural
 
6:37 PM
@Shafizadeh I am sure.
 
1 music. 2 musics
it's not that hard
 
@PaulCrovella ah ok ..! just for my information, may you please tell me what's your native?
 
english
 
Also it's 3 musical fyi
 
Hmm
 
6:38 PM
@Shafizadeh if you need a reference on "music" grammar-monster.com/plurals/plural_of_music.htm
 
In the same way peoples can be correct I suppose?
 
@PaulCrovella thx
 
@PaulCrovella Suuure be like that
 
@PeeHaa I already have to deal with enough of your fucked up english, I don't need more from him.
 
:P
 
6:51 PM
@PeeHaa what's this irc thing you're working on anyway? another amp server thingy?
 
[Pinky] if the plural of louse is lice, and mouse is mice, shouldn't the plural of spouse be spice?
 
7:04 PM
hey room
Do you know by chance, was there any recent changes to php-src regards obj dtoring and/or memory allocationg/freeing?
 
@pinepain Rather than asking the room to analyze recent commits to php-src, consider describing the problem you are trying to solve (what's your code, what behavior did you observe, what did you expect) and specifying the version of PHP you're currently using.
 
my house is full of children
 
@AllenJB it rather complex and without actually double-checking and maybe walking through with gdb I'm not sure how kind to room members to ask debug my ext
 
Sound like aproblem
 
7:16 PM
32-bit system?
 
this is nice problem I have when running a test from php-v8 ext I'm working at this time
@DaveRandom the test one?
`Linux vagrant 4.4.0-51-generic #72-Ubuntu SMP Thu Nov 24 18:29:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
`
PHP 7.1.2 (cli) (built: Feb 22 2017 16:42:02) ( NTS DEBUG )
here is free func that listed in valgrind report - github.com/pinepain/php-v8/blob/master/src/…
 
@PaulCrovella yes
 
I wonder if when the Romans thought up of Roman numerals they realized just how complicated it is to express them algorithmically?
I feel like this doesn't need to be this complicated phplab.io/lab/G7Pdk
Either that or I'm just having a brain fart and it isn't :/
 
the q: is it necessary to dtor copied value after original one get dtored? e.g. after I do ZVAL_COPY_VALUE(&php_v8_context->this_ptr, getThis()); is it needed to dtor php_v8_context->this_ptr? (sorry for dumb question, but after debuging for few hours my creativity goes down)
perhaps @NikiC ^ ?
 
7:41 PM
copying value does not increase refcount
and is likely wrong
 
Hi @JoeWatkins thanks for response
so am i getting right that i don't need to call
if (!Z_ISUNDEF(php_v8_context->this_ptr)) {
    zval_ptr_dtor(&php_v8_context->this_ptr);
}
in obj_free handler?
 
not if you just copied value ...
 
gods, im for fucking tired
evenin
 
what you're doing seems a little strange
 
@JoeWatkins thanks a lot
yeah, it is strange =(
was added long time ago
what i need is to fetch object as zval quick here and there
 
7:45 PM
but ... but ...
what's wrong with ZVAL_OBJ(&stack, &php_v8_context->std)
that's quick
and doesn't do damage to common sense
 
i'm pretty sure there is more canonical way
that's what was before I guess, let me remember why i made that hack
ah, i guess it was added to not create all the time new zval to copy
 
probably because in PHP5 the zval was on the heap, and you wanted to avoid the alloc
@pinepain well in 7 you don't create a zval, it's on the stack
 
yeah, i know, though it really might be a leftover after php5
 
I'm trying to decide if I'm crazy enough to build a LLVM backend... Looks way too much crap to get wrong...
 
e'nin @ircmaxell
 
7:49 PM
@JoeWatkins hm, how crazy it looks to you to leave this_ptr as it is now?
 
@ircmaxell I am scared of llvm
@pinepain "damage to common sense" was the phrase I chose, and I'm sticking by it ...
 
has any of you worked on a messenger app?
 
@JoeWatkins sry, i hope your eyes not bleeding after seen that and one day you will be able to forget and forgive ;)
 
@ircmaxell any other section of the manual does the same thing ... llvm made complex an art form, and it is art, beautiful art, but inescapably complicated ...
 
7:53 PM
hehehe
OH: "LLVM made complex an artform, and it is art, beautiful art, but inescapably complicated"... In reference to http://llvm.org/docs/WritingAnLLVMBackend.html
 
hehe
 
actually, looking, this doesn't look too bad
it's complicated in the docs, but the overall end product is pretty straight forward
 
my next sentence is about it being worth having a go ... given what you are engaged in right now ...
 
well, that I'm not sure of
I half want to just write a backend for the PHP-Compiler project to emit ASM directly
the ONLY thing holding me back from that is register allocation algorithms...
but if I did that, you could write PHP, and compile it down to machine code to run on the computer :D
 
osum
 
7:56 PM
register allocation though... :/
 
yeah, I got nothin'
maybe libjit has some inspiration for you there
 
yeah, maybe...
 
dynasm uses a linear scan, but can't see details because whitepaper is pay walled
I hate that
 
sigh
 
yeah
 
ah that's same paper
 
@JoeWatkins is this related? /me didn't read all above yet but register alloc. insta reminded me of it
 
is returning $this as ZVAL_COPY_VALUE(return_value, getThis()); is a valid approach?
 
@pinepain no, use ZVAL_COPY
 
oh well... same thing
 
8:08 PM
ah, increment
thanks
 
yeah same paper ... so everyone can find it except me :D
 
:D
 
quick scan of the paper, gotta be easier to implement than graph colouring method
 
yeah, seams somewhat reasonable
 
@JoeWatkins and in case of obj - ZVAL_OBJ(return_value, &php_v8_context->std); + Z_ADDREF_P(return_value);, is that correct?
 
8:20 PM
yes
 
thank you
 
@Ekin you on osx ?
or anyone
 
i'm on osx
 
nope I'm not
 
@pinepain are SIGRTMIN and SIGRTMAX both defined ?
 
8:33 PM
let me check
hm, which header?
so it seems to be it's not defined, at least there
 
#include <stdio.h>
#include <signal.h>

int main(int argc, char **argv)  {
	printf("RTMIN:  %d\n", SIGRTMIN);
	printf("RTMAX:  %d\n", SIGRTMAX);
	return 0;
}
try compiling that
 
$ gcc -o joe test.c
test.c:5:25: error: use of undeclared identifier 'SIGRTMIN'
        printf("RTMIN:  %d\n", SIGRTMIN);
                               ^
test.c:6:25: error: use of undeclared identifier 'SIGRTMAX'
        printf("RTMAX:  %d\n", SIGRTMAX);
                               ^
2 errors generated.
 
thanks ... also hmmmmm ...
 
no magic and that header i posted, it lack of it
 
it includes stuff in sysroot machine folder, and that may include other stuff ... and I'm very unfamiliar with osx ...
 
8:42 PM
i'm not sure os x ever had that constants at all
 
supposed to be standard
 
phhhhhhh
apple has own standards
 
POSIX.1-2001
@pinepain I hate that
 
it's not true mostly, but sometimes apple strangely lack of some features
 
what version of osx you using ?
 
8:44 PM
@JoeWatkins i feel you
latest I suppose
10.12.3 (16D32)
and I should have some xcode cli tools installed, at least my homebrew installation doesn't complain about that
 
hey
I have a quick question. someone available ?
 
$ xcodebuild -version
Xcode 8.2.1
Build version 8C1002
 
my ajax function is redirecting to php file which is on the server side
how can I prevent it?
 
@pinepain ta
 
what ?
 
8:55 PM
!!plugin enable terminator
 
Plugin 'terminator' is now enabled in this room
 
oh shit. RUN! @Jeeves is a smartass again
 
@FélixGagnon-Grenier My name is Vanessa.
 
what does that do ?
 
I fixed cleverbot
 
8:57 PM
!!xkcd 1739
 
oh really ... did you really ... in fact ... oh ... really
 
@Jeeves :P
 
@PeeHaa Are you malwe or female?
 
8:58 PM
@Jeeves are you stupid ?
 
@JoeWatkins I'm not stupid.
 
@Jeeves you are stupid
 
@JoeWatkins Are you a boy or a girl?
 
Yeh Jeeves is terribly okay now :D
 
@Jeeves see
 
8:58 PM
@JoeWatkins How old are you then?
 
@Jeeves you are like a drunk uncle at a party ... just talkin' shit, hoping someone will join in ... I will not join in ...
 
@JoeWatkins No, I don't think so.
 
@Jeeves you are
 
@JoeWatkins Nonsense. I don't lie.
 
@Jeeves what's your name ?
 
8:59 PM
@JoeWatkins Why do you want to know my name?
 
@Jeeves if you have nothing to hide, you have no reason not to share
 
@ircmaxell I have nothing to do.
 

« first day (2321 days earlier)      last day (2627 days later) »