« first day (2382 days earlier)      last day (2791 days later) » 

13:00
Yeah, this was the moment I stopped trying:
> Fatal error: Uncaught Error: Call to protected method A::backtrace() from context 'A' in /home/pedro/dev/php/php-src/Zend/tests/bug64239_2.php:4
lol :-P
Wes
Wes
@ircmaxell exactly. i'm doing testing stuff, not normally checking where a method comes from :P
@pmmaga You'd have to add extra stuff into the ce that's specifically for trait reflection I think, rather than trying to bolt it on to the members themselves (I have no basis for this than a gut feeling)
@kelunik yeah, but FD_SETSIZE is not defined to be a given value. it may differ on some systems
@DaveRandom yes, got it. I usually check the news.php.net/php.internals page to see if my emails reach it, as gmail "helpfully" doesn't include my own messages in threads.
13:04
@Danack yes that's annoying. I saw it on externals.io as well
@DaveRandom yup, i probably would need to do something like it. or just give props/methods a declaration_info or something like that. That would also allow to fix one of the oldest: bugs.php.net/bug.php?id=47405
but yeah, that wouldn't come cheap memory-wise
@bwoebi Then we need to expose FD_SETSIZE.
@kelunik that's an option.
Finally we got vmare running again
Aaaaaaaand disk checks....
:)
bugs.php.net/bug.php?id=74417 <-- that's a nastly little BC break in 7.1
13:10
ugh
Anonymous
Andreys email.. bout time
@bwoebi you online tonight?
hmm ... did one of those "popitical compass" things: i.sstatic.net/hcsyS.png
@PeeHaa depends on how late … why?
@bwoebi I want to attempt one last time to get you onto the gitamp server
13:13
@bwoebi What? I know I've had streams with IDs much higher than 1024.
@tereško "dovish"
@Trowski with Native?
@JayIsTooCommon \o/
now I don't have to
@bwoebi mhm
@JayIsTooCommon I am happy more people jumped in eventually
13:14
@DaveRandom well .. "kill the fuckers" is only sometimes the correct option
@Trowski also, what's FD_SETSIZE on your system?
BTW @JayIsTooCommon are you going to fix php.net anchor links?
@tereško somehow the word "dovish" makes me lean more towards the killing option, at least for the person who coined it.
there is that too
Anonymous
@PeeHaa yeah just have to do some work here - Can you assign issues?
13:16
@bwoebi Maybe that's what I've been changing with ulimit -n and didn't even realize it.
@JayIsTooCommon I can, but only to php.net people
Normally it's only 256.
@Trowski nah, FD_SETSIZE is a compiletime macro
Anonymous
@PeeHaa no need to rub it in..
:P
I could assign it to myself I guess
Anonymous
13:17
because we're one?
err....
sure
Anonymous
<3
@bwoebi I wonder if the resource ID returned by PHP has nothing to do with the FD number.
@Trowski it isn't related at all
13:19
@bwoebi Right, so then (int) $stream > 1024 is pretty meaningless.
Why did you propose that assert then?
because I confused both things ;-)
I'll have to try more than 1024 simultaneous connections with NativeDriver. That I've probably never done. If that doesn't actually work, meh… then use an ext.
Anonymous
> Most Senate staff ID cards have a photo of a chip printed on them, rather than a real chip.
13:21
omg, I'm reading that thread about HKDF
so much misinformation there
> RFC 5869 clearly states HKDF is a generic key derivation function.

> Omitting salt when key does not have enough entropy is obvious bad practice or mistake.
it's not a derivation function for low entropy keys. One exists for that: PBKDF2. HKDF is for deriving sub-keys from a given high entropy key. The RFC itself states that. It is not designed to "stretch" or compensate for low-entropy keys
@bwoebi @Trowski What do we do with Coroutine::dispose + finally now?
@ircmaxell Maybe you care to deliver "the final blow" to that thread?
I want to stay off-list if possible
Fair enough and somehow expected it
@PeeHaa I don't think we need that.
13:25
leaving last year really had a positive effect on my life and mental state. Not planning on coming back :)
@ircmaxell Yeah, don't. I don't want you get dragged down again :)
@bwoebi Should we merge github.com/amphp/amp/pull/123?
Several have already stated that HKDF is for sub-keys from a high entropy key… Yasuo clearly has a reading-comprehension problem.
@kelunik You know who we are talking about right? :P
13:26
@kelunik yes, please.
@PeeHaa Yes, and I know @NikiC or somebody else with enough karma will revert his changes instantly if he commits them.
How's life btw in general @ircmaxell?
Have a job yet?
@kelunik True if we spot it
going great! No job yet, but getting close with 4 opportunities. I think I'll have an offer by tomorrow for at least 1, possibly 2 of them. Not sure yet what I'm going to do yet, but going well there.
congrats :)
13:28
Ooooh
gratz
@ircmaxell Awesome! Congrats!
Wes
Wes
congrats!
:)
(can explain why the delete at some point, but not for a few weeks)
@ircmaxell Still awesome. :)
13:30
Anyway, congrats ;-) [good that I'm a RO, else I'd missed it :-D]
thanks :)
Anonymous
@ircmaxell if it was to hide the fact that you haven't invited me.. already noted.
@ircmaxell Are the jobs still programming related or did you pick yet another direction like idunno becoming an astronaut?
all Vice President of Engineering, or CTO, or Director of Engineering
Cool
13:31
though 1 is a C#/Python shop, 1 is a Django shop, and 2 are RAILS shops
Wes
Wes
@NikiC yeah a clone would be useful. in two flavors maybe, clone deep (clones node all the sub nodes recursively) and clone self (clones only itself and sets all sub nodes to empty/null) i'm willing to do the change in all the library... should be simple, if you are ok with that. let me know
@tereško nice … I get Libertarian Socialism
@Wes clone self could be done with a clear method which removes all sub-nodes. Then you simply clone and ->clear()
@ircmaxell You didn't consider Europe?
@JayIsTooCommon tbf it's probably because you only wants bieber themes parties
13:34
When I say Europe, I mean, Germany, that's what's left.
@DejanMarjanovic I may wind up there depending on what happens in the US and with immigration when we come back to the US in 2 weeks
and yes, have strongly considered Germany and Netherlands primarially
Anonymous
@PeeHaa that would be v nice
@ircmaxell Oh, it's happening off-US? Where are you at?
@JayIsTooCommon lol, nah
Wes
Wes
@ircmaxell how did you get the context? :P (php-parser) but yeah, though you would create a lot of objects that you are going to delete immediately :P
13:36
@bwoebi I'm in the US. My fiancee is in Brazil. We are doing a for-show ceremony on Friday in Brazil, then the real wedding when we come back to the US in a few weeks
@ircmaxell Awesome, I guess the money is not better or even near than USA, but... :-)
@DejanMarjanovic but the dollars aren't everything. Healthcare is extremely important. As well as less xenophobia. And the rest of the social services. And the autobahn is nice too
@ircmaxell And we are all racists, so basically nobody is racist. Autobahn is awesome.
Especially if you have some Porsche :-)
/me has a BMW M3
@ircmaxell Oh, the show comes before the real event. I'm not used to that here.
13:38
Yeah, I am making less than working remotely for US. But... Germany. (me not a good example)
@ircmaxell Awesome :-)
@bwoebi we have to for legal reasons. The US requires us to enter as Fiancee's, but she can't leave for a while after our legal wedding, and her family wouldn't qualify for US visas nor be able to travel. So we're stuck having to put on a show before hand, and then do a legal ceremony here.
@DejanMarjanovic yeah, I had it on the autobahn when I first got it, but between the winter tires and the breakin period, I couldn't take it over 200km/hr
@ircmaxell that … sounds like some serious bullshit legislation … somehow.
@bwoebi it's massively bullshit
@ircmaxell My car is limited to 110mph, it's from USA, so :-D But here is a picture from BMW factory, when I drove in M4 i.imgur.com/Vwt5RSp.jpg
however, that's the law. we are bound by it, and don't want to risk deportation or being forced to be apart again. So we have to figure out how to live within the system
13:42
@Wes I'm fine with a deepClone(), but that "clone self and clean" doesn't make sense to me
What's that good for?
@DejanMarjanovic nice :). Mine is limited to 155mph, but it's a program away from hitting about 190mph...
Yeah, I can fully understand that given the restrictions…
@NikiC there are cases where you may need to clean without cloning (replacing a body for example). That would give a general method for removing all child nodes from a node.
I don't think that makes sense as a concept
Especially as not all subnodes are optional
fair enough
was thinking more for statement bodies specifically (blocks, etc)
not all sub nodes (meaning not name expressions, etc)
Wes
Wes
13:45
@NikiC could be. it depends on the node, i suppose. what ircmaxell said also
yeah, but there just = []; is enough to clear
which is what I've done up to now ;)
Wes
Wes
yeah it's overkill. i had in mind dom's cloneNode(deep: false) but it doesn't really apply here :B
Can we put a dependency injection from services.yml to a private method in symfony's dic?
Joe
Joe
Hi
13:49
@CoderDudeTwodee dependency injection happens at object's construction time
Joe
Joe
can I say in english : figures for deep explanation
Joe
Joe
no body knows??
@CoderDudeTwodee how is that related?
@CoderDudeTwodee No
private methods are not reachable directly by the dic
13:50
or I could have answered your exact question ;)
@PeeHaa Alright, got it.
You would have to think about whether it should be the dependency of the method instead of the class
Also you can always pass it on the public interface regardless
@FélixGagnon-Grenier They work on setter methods too.
@FélixGagnon-Grenier ohai \o
disk checks finished \o/
16:00 I can start now
13:52
:D
@CoderDudeTwodee yes. However, for myself, I never use setter injection, and rarely use setters at all. I find having mutable objects too dangerous for no real gain.
tonight at 7:25 PM, I'll successfully have lived 27 years. Let's hope I did not jynx myself just now.
Anonymous
Happy Birthday @FélixGagnon-Grenier !
10
@FélixGagnon-Grenier Happy birthday \o/
27 O.o
I know, I am an old turd
13:56
kids these days
Wes
Wes
happy name day! @FélixGagnon-Grenier
@FélixGagnon-Grenier happy happy birthday ;)
Happy birthday @FélixGagnon-Grenier :-)
13:58
I wanted to get you something, but I found out violins are pretty expensive
Anonymous
Are you doing anything special for it @Félix ?
@PeeHaa yes indeed
Anonymous
I love edits.
:D
well, this week I don't think I'll drink myself to fainting, because y'know, I have to work, but I intend on doing that for the next few weekends
@JayIsTooCommon which means... no, nothing special ;)
14:01
@FélixGagnon-Grenier dfveteransofwar.spruz.com/gfile/… .
2
Wes
Wes
@NikiC another thing that would be great to have is string-to-objects builders, e.g.
classMethodByString("private function baz(){ return 100; }"): ClassMethod;
what this would do internally is wrapping the string into a
"<?php class irrelevant { " . $method . " }", parse it, and return $class->stmts[0];
if i can find the time and you think it's a good idea i'll do it
happy birthday, @FélixGagnon-Grenier!
hmm, when I use Davey's gpg key to verify a PHP download I get an error and when I use Joe's it works but says it's not a trusted key
ok, I am heading home now. here is the thing to play with for the end of the day: web.janusvr.com
Anonymous
@FélixGagnon-Grenier noice :P Well have fun anyway
Anonymous
My laptop started screaming ..
Anonymous
Wordpress at it again blog.talya-art.nl/?p=1
Oh wow. This is how old the framework we use is:
> ... requires PHP 5.2.1 or later in order to function correctly.
> Although not yet tested it should work fine with PHP 6.
5
14:31
lol
@Sean is that for real? They added "support" for an unreleased version?
:V By the looks of it, it was built in 2006
Probably hasn't been updated since then either
@kelunik @bwoebi I'm considering just eliminating dispose and just warning "Do not throw in finally blocks in coroutines.
@Trowski What happens if you throw?
@Trowski you mean, do not yield?
@kelunik @bwoebi It will be thrown from the context where the Coroutine object is destructed (or at some other random time when the GC runs). I don't think there's a reliable way to stop that.
@bwoebi Definitely should not yield. That's the case regardless of this discussion.
The problem with throwing in a finally block is that if the generator throws another exception, then throws from finally, the execution context into which that exception is thrown seems unpredictable.
14:43
Ah, well. yeah, just don't throw then.
It's an edge case I was trying to handle with dispose, but rethrowing into the generator to force completion is probably not a great solution either.
right
@JayIsTooCommon Not really. There are a few steps but not difficult.
If we can't allow yield in finally then I'm fine with dispose.
Would be cool to have the same possibilities for async as for sync.
Anonymous
@LeviMorrison alright, I may not need it but will give it a go if I do
Good morning
Did someone try react in php? Stuff like this: github.com/guzzle/promises
...is the rock you've been living under nice? :-P
cool
so here isn't a rock
15:13
!!is Jeeves built with zomgasyncsauce?
I think so.
(for me: issue isn't with react, I just don't do stuff on PHP for long time already) :p
@AlmaDo async stuff in PHP is all grown up now, in userland anyway. We have async/await-like behaviour with generators and everything
what have you been doing anyway?
@DaveRandom so.. what am I doing wrong here: pastebin.com/yTRbHXe7
:p
What does settle do?
all?
15:16
I don't know that API but that unset()/reference thing looks fucky
it's a function from their lib.
/**
 * Returns a promise that is fulfilled when all of the provided promises have
 * been fulfilled or rejected.
 *
 * The returned promise is fulfilled with an array of inspection state arrays.
 *
 * @param mixed $promises Promises or values.
 *
 * @return PromiseInterface
 * @see GuzzleHttp\Promise\inspect for the inspection state array format.
 */`
yep, all() then
settle is a terrible fucking name
but also @AlmaDo it's still executed in a single thread
sleep(2) won't be executed concurrently
it's async, not parallel
@DaveRandom ah yeah, it's needed because I pass reference to the promise itself to callback for resolution. And since I do it in a loop - it will fck things up without unset
@DaveRandom well.. that's external call... sleep isn't important, it's just to simulate a long call
and sleep is done in an external shell script
15:18
Well it is important in that it's not a valid test
Why are you wrapping all that stuff in promises?
@AlmaDo oh right
@PeeHaa task is simple as world: parallelize curl calls :D
oh wait. there's a request function call
wait yeh
15:18
oh yeah
doesn't matter
it's still blocking
you'd need to use a more complex forking API than shell_exec
XY: what are you actually trying to do?
ok, what do I do to simulate it properly? Assuming I need second or two to delay return
in the real code it's a curl
Well the issue is that it's a blocking call
I was hoping this thing will do something like using Thread Runner a-la Java ..
No it's more lightweight than that
15:20
oh yeah..
it's all executed in a single thread
what would you suggest then. pthreads?
it's designed to multiplex I/O
This right here tells me the yield keyword is not the problem
I have an I/O
15:21
@AlmaDo well if what you are doing is multiplexing I/O, then guzzle is fine
2 mins ago, by DaveRandom
XY: what are you actually trying to do?
Ok, I have some stuff which does say 25 external requests. They've done via curl. Can I use it then or not?
Well if you are set on using your existing curl code, you need parallelsim
if you switch that code to "proper" non-blocking I/O, there are several options
curl is just some secure client which has to be that way (binary certs inside)
OK, @kelunik @Trowski what's the status of amp/parallel?
@FélixGagnon-Grenier Happy birthday !!!!!
15:23
in Java I would just go with rx and problems solved on multi-threads by definition
@DaveRandom No idea.
last commit to master was 32 minutes ago
@AlmaDo That one is / will be discontinued.
@kelunik oh.. then any "newer" link?
15:28
@AlmaDo amphp/parallel
But you probably just want amphp/artax I assume
can artax do this external shell calls thingy ?
nope
I thought you wanted to do http requests
@PeeHaa ¯_(ツ)_/¯
15:29
@AlmaDo you can't just load the client certs into another client? :-(
what's an external shell call?
I was not actually paying attention to the thread :D
under the hood it does an http, but through client with certificates to which I don't have access
@bwoebi parallel external binary execution, in this case
those are just some binary data within the client
yeah, @DaveRandom is correct - for that sake we can think of it as just a black-box accessible via shell call and that's it (doesn't matter what it is or what it does - it just returns data)
15:33
Well (from the PoV of amp) you have two choices really @AlmaDo, you can either go for amp/parallel or you can use proc_open() to create streams to the child's stdio fds and use amp directly to monitor those streams
the former would be preferable assuming it's stable enough
Has the fact that callables and strings and bytes are of the same type caused problems for anyone?
wat
@DaveRandom That's what we have amp/process for
okay! I forgot about it indeed
@bwoebi oh I forgot about that
15:34
@PeeHaa I don't mind opening say 25 processes
I don't care if those will be processes, not threads
I just need it in parallel
@AlmaDo Either wrong ping to me or confusing about my wat pointing at tomas
@TomasZubiri Callables of type string are rare in practice (in my experience)
and in PHP a string is just a byte array
ooooh
wops
@DaveRandom Well tbh if it's a [foo:class, 'method'] thing that's annoying as fuck cc @Wes
Wes
Wes
15:36
indeed
@DaveRandom amphp/parallel is mostly about the Worker interface.
Wes
Wes
just use closures please (check php.net/manual/en/closure.fromcallable.php)
Though you can use it for easy-to-write threads as well, but that of course requires pthreads.
I might be missing something, how can I pass myFunc() to MyFunc2() other than MyFunc2("myFunc")?
@DaveRandom I think the API is set, I was planning on tagging a first 0.x after we tag 2.0 of Amp.
Wes
Wes
15:37
if you use callable i hate you :B
@Wes I use them. I don't like the current state they are in, but...
@TomasZubiri How often do you actually do that?
@TomasZubiri what's wrong with that?
@Trowski k
@DaveRandom Strings are kinda icky magic faith driven development
@Trowski yes I realised this when I actually went and looked at it :-P
I basically never do parallel stuff
@PeeHaa true,
Dude
15:41
You can technically do MyFunc2(myFunc::class) but it's pretty shitty and iirc there are edge cases where it doesn't work
that comma
ah good
there was more
certainly doesn't play nice with use function
Wes
Wes
@PeeHaa there is no difference
wait wat
@PeeHaa Just sometimes.
Wes
Wes
15:41
except that callable sucks :B
!!> function foo() {} var_dump(foo::class);
Of course
I forgot what it actually did
hhvm <3
Also I forgot I was dealing with php naming things
@TomasZubiri Why?
Wes
Wes
15:43
@TomasZubiri meh
the only merit hhvm has is that it inspired php7 :B
@Wes Yes, and I hope it inspires php8 too.
56 secs ago, by PeeHaa
@TomasZubiri Why?
Wes
Wes
(sorry to those who developed it and are in the room :B)
@TomasZubiri it's not gonna happen
@DaveRandom Didn't read everything above, but what @AlmaDo is trying to accomplish can be done with proc_open, which is handled really well by amphp/process.
I'm just taking a look at RFCs for callables typed by parameters and return values and such. That's why I'm asking.
15:45
Sure hack has some niceties, but having to wait for feature parity and being under the control of facebook, writing incompatible code makes me think noooooope
@TomasZubiri What do you like so much about hhvm?
If such a thing happened I hope we don't go down the Array(myFunc,Paramter,Parameter Type) road.
Typed callables, Typed arrays and typed parameters.
So generics?
Wes
Wes
callable(int, float): baz is nice syntax over a generic type declaration
Function<ReturnType, ThrowType, Param0Type, Param1Type>
i don't remember which language has that, something jvm based :B
15:48
Also on a somewhat related note. I used to be somewhat against it, but I think I would want throws now
Wes
Wes
me too :P
Would have been nicer if we would have replaced function by the type I think
Or maybe I have been writing in wrong languages lately and am weird
baz(int,float)?
brb
driving home
for Christmas?
15:51
@PeeHaa Is there a consensus on whether exceptions thrown should be part of a function signature?
Lazy services (symfony) not working, I did both:
  composer require symfony/proxy-manager-bridge
  composer require ocramius/proxy-manager
And this: lazy: true
posted on April 24, 2017 by CommitStrip

I used var_dump() instead of dump() in dump(class_implements($service));
@Trowski mmm, I forgot about it :-/
15:56
@DaveRandom It's of interest as a case study for an RFC I don't think I would push it for use at work.
@TomasZubiri oh hell no, it's not really useful for 99.99% of real world use cases in its current form
However one of the points is that project is that it will, eventually, contain an exhaustive test suite that could be easily repurposed to a native implementation
I like that workflow. Does it have a name?
Wes
Wes
@TomasZubiri you can use assert() for 0 cost checks
@TomasZubiri fyi my current thinking for what native support would look like is basically to lift the syntax of interface member declarations (without the visibility modifier) and use that to generate an entry in the class symbol table, so that function Foo(string $foo, int $bar): void; creates a delegate type named Foo which can be type-hinted and would be validated using the default variance rules implemented in that lib

« first day (2382 days earlier)      last day (2791 days later) »