« first day (3690 days earlier)      last day (1243 days later) » 
00:00 - 22:0022:00 - 00:00

Wes
12:00 AM
it achieves nothing so far tho :P
 
still though, \o/
 
Wes
now i wonder if i can ever get deadlocking situations
probably not
or like stuff in weird order, if that does even matter
 
 
2 hours later…
1:53 AM
mornin
and happy Sunday.
 
2:38 AM
Goodnight :P happy Saturday evening
 
:p
 
 
2 hours later…
Wes
4:11 AM
is there any helper i can use to create/manage command line commands and arguments, escape them cross platform, and stuff?
 
4:31 AM
@Wes league/climate
 
Wes
nice. thanks
 
Wes
4:51 AM
phpstorm went back to 2016 here :( stackoverflow.com/questions/30108757/…
can't figure out psr4 anymore
 
 
4 hours later…
9:15 AM
FILTER_FLAG_EMAIL_UNICODE is not working correctly ・ *Regular Expressions ・ #80398
 
 
2 hours later…
11:40 AM
Using PharData to create TAR files is super slow (at least 10x slower) ・ *Compression related ・ #80399
 
Wes
12:19 PM
omg i killed the chat, i went to bed, i woke up, and it's still dead
 
o/ :-)
 
Wes
\o :D
 
o/ ^^
 
@Wes I read that as "killed the cat", and started to wonder if this was some weird pun on curiosity..
also, grim
 
Wes
:D
 
12:21 PM
@Wes Sorted? What was it?
 
Wes
could not solve it
 
What's the issue?
 
Wes
it says "namespace doesn't match the psr-4 directory structure".... but it does
 
Is naming convention respected. Is possible that PHPStorm expects strict rules respect about that?
 
12:58 PM
Hi Freinds
I have some question about transaction
Can I ask here?
 
1:16 PM
I am sure there was already talk about it at some point, but are we ever (in the nearish future) going to be able to drop the constructor body @NikiC?
 
@sidoco Go ahead.
 
> Don't ask to ask, just ask
 
Mornings / evenings
 
And a good midday to you too, sir
 
welcome @El_Vanja
nice to meet you
 
1:30 PM
Likewise
 
1:50 PM
2 messages moved to Trash can
@PHPFan people who don't listen to mod feedback, don't get to tell other people to ask questions elsewhere.
 
@DaveRandom Changing profession? :P
 
omfg.....
15
Q: Is there a 'BTC Refund Department'?

Ioanna ArsiI have been scammed 6 months ago. Now someone is calling me from BTC REFUND DEPARTMENT. He said that I have under my name the bitcoins that have been scammed. But the way to take this amount is to synchronise my wallet with the address that the amount is under my name. The issue is that he is ask...

 
@Tpojka tbf I do occasionally need to break into old comms cabs where the key has been lost and stuff so it's not totally gratuitous :-P
 
@DaveRandom still my favorite video of his youtu.be/lod_LUp3ggc
@DaveRandom claim it as a work expense?
 
2:05 PM
don't think I'll get away with that it's $90 :-P
 
Oh neat, he's selling training gear too
 
"Ooooo I want one!" .... remembers in the UK "O wait, will get arrested for carrying it"
 
Illegal to have lockpicks?
 
it'll be in my tools with all the rest of my shit, no-one is going to be searching my tools, I won't be breaking in to places with it :-P
 
@Tiffany There is illegal for policeman to carry a gun. Figure out.
 
2:10 PM
@Tpojka No it's not, it's illegal for untrained police officers to carry firearms.
 
it's illegal for anyone without a license and a good reason for a firearm to have a firearm, it's that simple
 
Googled it, it's "legal" but supposedly if you're pulled over and found to have them, you have to have a very good reason
 
I think the same is probably true of lock picking gear
 
@MarkR Potato, tomato. :P
 
I had one of those transparent training padlocks off amazon a while back, they're cool to see how it works
 
2:13 PM
I think I learned the basics from howstuffworks.com in 199something :-P
I have on occasion successfully managed to pick cabinets and stuff with a screwdriver and a paperclip, although usually you just end up forcing the lock, it generally doesn't matter all that much about damaging it
it would be nice to have some proper tools and be a bit less neanderthal about it
 
Useful skill to have. Never know when you're going to pick someone up someone really hot at the bar, get them home, only to discover they've been locked tight in a chastity belt by their evil stepmum. Lockpicks are a lot easier than a disc grinder, made that mistake before.
 
@MarkR Joke aside, but it is very contradictory concept 'untrained' and 'police officer' in same sentence. It would be reasonable to think that police officer or person with that title is trained for firearms. To be said, I am not such a fan of firearms but having on mind that police officer is untrained for one is more like blowing the mind.
 
yeh but the powertools option is much more fun when drunk
 
I've successfully lockpicked once or twice, but most often I use the credit card trick
 
I've never seen a lock where that would work, ever, idk if it's a property of the UK but every door with that sort of latch on it has a frame constructed so there's a right angle to get round
 
2:18 PM
@Tpojka Not in the UK. Most of our police officers carry, at most, a taser. We have specialist firearms officers which are extremely highly trained and are more like US Swot than line officers.
 
people do some fucking dumb shit though, the number of times I have seen maglocks on the insecure side of the door with a visible wire you could just snip
 
@DaveRandom Yup. I think the latch on my kitchen window is broken, I've tried shimming it every way I can think of but it's got the frame covering it making it all but impossible
 
and often if you take the keypad off the wall and just cut all the wires it power down the lock as well
 
@DaveRandom all this talk about locks reminded me: I still need to buy a lock and helmet for my bike .........
 
@Tpojka "It would be reasonable to think that police officer ... is trained for firearms." Lol, no.
 
2:20 PM
always be suspiscious of a keypad with security screws on it, it shouldn't be possible for me to gain access by removing the keypad from the wall
 
@MarkR Not talking about law of carrying on street, but I would believe they all are trained for use one.
 
we don't train our police to use guns because our criminals don't have guns, broadly
nobody has any guns and no-one gets shot, it's a system that seems to work fairly well
I mean obviously there are a few, which is why there are a few police with guns
 
Again, I am 100 pct for no guns policy but having police officer who didn't learn/train firearm in school (for 2, 3, 4 years?) is slightly ridiculous imho.
 
To compare, more people were killed by police in the US that the total UK muder rate. Yeah, the population sizes are different, but that's......a drastic comparison.
> is slightly ridiculous imho.
laughs in civilised society
 
2:27 PM
@Tpojka It takes years to become a fully trained specialist firearms officer in the UK.
 
it's not like it's forbidden, anyway, there are private clubs and stuff
 
@DaveRandom Point.
 
at what?
 
That you as civilian can go to club and be trained in 2 weeks or less.
 
> can go to club and be trained in 2 weeks or less.
 
2:28 PM
I am a civilian and I have fired a handgun and been clay pigeon shooting a couple of times
@Tpojka yeh but not to own a gun, to fire one on a range at club
I don't get to take it home
 
Who's gonna stop you?
 
The obvious solution is to buy a portable shooting range and deploy it when you need to shoot someone.
 
You have a gun!
 
jesus fuck no. You can be trained how to kill someone in that time, but we kind of require a bit more nuance than that from police offcers, like "how to avoid needing to shoot people" is part of the training.
 
But in same time there is strict rule for police officer can be said that have a knowledge of using firearms.
 
2:30 PM
@PeeHaa specialised police units that have high powered sub-machines who practice a couple of times a week. I recommend avoiding bringing their attention to yourself.
 
@PeeHaa I assume they engineer situations such that you are always outnumbered by other people with guns
 
7 mins ago, by Danack
@Tpojka absolutely no - https://profdev.college.police.uk/professional-profile/authorised-firearms-officer-afo/
@Tpojka I recommend reading the contents of that link. It describes the actual training police are required to get, not just "can you kill someone".
 
as far as I know you don't need a license to kill people
 
basically as a nation we are kind of over guns
 
@Danack Are there low powered sub-machines?
 
2:31 PM
it's usually illegal though
 
weirdly, somehow
this country isn't great at being collectively sensible, but with guns we seem to keep managing it
 
@Danack Thanks but I think we are talking about two things.
 
@PeeHaa yeah, so as not to make much noise on a sonar
 
Good call
 
@PeeHaa yeh there was that one in goldeneye that was like a BB gun
 
2:32 PM
@PeeHaa not particularly no - en.wikipedia.org/wiki/… Which is why they require training on "make sure there's no-one behind the person you're shooting at".
 
klobb
 
@DaveRandom heheh
 
@Tpojka yes. You're talking about it being weird that police aren't trained to kill. I'm talking about it being weird that other countries give their police weapons designed to kill without adequate training.
 
Nothing like the good ol grenade launcher to keep people in check :P
 
One thing is to have someone called AFO and completely another to let random person shoot at will in some obscure club. Firearms is same deadly in both cases and with 'AFO' rule policy such clubs should be forbidden. See the point?
 
2:34 PM
> to let random person shoot
that's not the case.
you can't just walk into a gun club....let me check the rules...
 
@Danack You had my disclaimer at first that is good not to have firearms on streets at all.
@Danack Exactly.
And if you have the gun in hand - watch out rest of us if that is time of day or moon...
Not you, but saying that gun is deadly. If I need to [say].
 
yeh, which is why we don't give them to anyone, including police :-P
 
Based on personal experience, even if you go to a shooting range, you need to be either a member or be with a member to purchase ammunition.
 
> Novice probationary members must shoot on a Wednesday evening until adjudged competent. They can then also shoot on Mondays or Fridays provided they do not disturb competition shooters.

The probationary period is 6 months. After which the club’s Management Committee will decide based upon references, police feedback and instructor comments if you can become a full member of the Club.
 
@MarkR yeh and I don't think you are allowed to take it off site without a license to own a gun anyway
 
2:38 PM
So they're supervised by people who run the club, and then get a police check before being allowed to shoot by themselves.
 
@MarkR Wich is still order level lower than regular™ police officer I'd believe.
 
I've never seen a live round outside a range apart from shotgun casings
of which there are a lot round me because I live in the middle of a bunch of farms
 
@Tpojka I'm in the US, so this question is silly, but in the UK, gun laws are vastly different. Anyway, why do their police officers need guns? Training in de-escalation is more important so that a gun isn't needed
 
thankfully the nearest one has now changed hands, because the previous guy used to love rookies so there were basically birds setting off miniature landmines at 3am
 
2:40 PM
I've got family members who've had section 2 licences, and know those with section 1s. It's possible to keep thousands of rounds of shotgun ammo outside a safe. Section 1 ammo has to be secured AFAIK
 
@Danack lol might watch the trilogy today
if you wanna be a big man in a small town, fuck off up the model willage
 
@Tiffany Not sure what is your point but my point is: have policemans with no gun - it's just perfect policy - but in same time they should be trained to use one. Even if they don't carry those. Because - ^any civilian can use it on Wednesdays, Mondays... [take 'any' with caution but pretty accurate qualification]
 
the ones who have guns are trained to use them, the ones who aren't trained haven't got them so don't need to be trained... why would they need training if they don't have access to one?
 
"but in same time they should be trained to use one" - being trained to use one appropriately takes a very long time. Other countries do not train their police to an adequate standard, which is why other countries have problems with the police shooting too many people.
 
@Danack Usually Wednesdays and Mondays for civilian :rolleyes:
 
2:44 PM
not all countries though
 
Just training anyone how to merely kill with a gun, is a stupid attitude.
 
germany has a lot more police with guns I think, and they don't have issues with police shooting people afaik
I'm not 100% on either of those assertions though
 
Do you ever see someone talking about their culture and just think... "How did it get to a point where you think that's normal?"
 
yes, unfortunately it's frequently people within my own culture :-/
 
2:46 PM
@DaveRandom Germany has historically a lot of guns AFAIK
 
@MarkR For me it's reasonable to think that institutions like military and police should have trained [for firearms] people.
 
@DaveRandom yeah, you are also disincentivized of using guns … every time you shoot, an internal investigation is opened whether it's justified
 
@MarkR ....at which point I normally think "hmm, maybe deporting many low level criminals to Australia, and encouraging religious zealots to emigrate to the US, might have had quite an influence on UK society....and Aus + the US".
 
2:47 PM
That's due to our police officers having no specific right to use deadly force.
 
@DaveRandom :P
 
@bwoebi yeh, it's not the same but one a similar kind of thing, emergency services have to go through an investigation every time they run a red light or a speed camera and they have to provide proof the emergency call they were responding to, where they had been/were going to etc etc
and I'm pretty sure that every single round is accounted for by armed police
it's certainly big news if the police discharge a weapon in public
 
@bwoebi Any time @DaveRandom shoots, CI/CD is restarted.
 
is that... a euphemism?
 
We should probably talk about something less controversial than guns before it gets out of hand... so... we have one release before 8.0, how about we rename attributes?
 
2:56 PM
I think we should call them "footnotes"
 
@DaveRandom No, joke. :P
 
@DaveRandom compared to US, most definitely
 
transplanting my system disk because by SSD is starting to give me gyp (2-3 BSODs a week now), bbiab ~1hr
 
@MarkR Besides php docblock and doctrine annotations is ther some more widely used system/package that is using @ sign?
 
Most "annotation" system I have seen use it
 
3:12 PM
I mean is there some else concept not counting php docblock and doctrine/annotation?
My thinking is how about examine what is there and set it as constants for PHP with continuation of use of `@`? I think that docblock wouldn't be so much extended in the future. And another thing is custom annotations for doctrine entities. But also some bridge/alias could be used for that.
My thinking is to try to have PHP annotations with `@` and think of how it could be achievable.
 
On an unrelated note: am I the only one who thinks that it's super easy to write unreadable code with match ?
@Tpojka stfu operator?
 
@DaveRandom german police does have the right to shoot to kill for self defense and the number of people shot by police is consistently below 10 every year here.
 
@PeeHaa ?
 
@PeeHaa we don't actually. you are not allowed to own guns unless you are either a hunter or a shooting for sports. even then you are not necessarily allowed to take the guns home, all three things require strict certification. only recently owning of prop guns and very small handguns was made easier
very small handgun in a sense that they usually don't kill, only hurt
 
@PeeHaa You mean if the promotion feature is used?
 
3:31 PM
@PeeHaa something something, the more powerful a language is, the harder it is to tell wtf is going on...
 
@NikiC Aye
@beberlei I thought Germany had a lot of illegal firearms?
 
@PeeHaa not in amounts that would constitute a widespread problem afaik
 
I didn't say there was a problem
 
afaik the few times we had shootings that I remember it was always registered weapons that were stolen or used by someone else
 
I just remember me neighbor's talking about it. About the quantity, not so much abut issues
 
3:43 PM
@Tpojka @ is error suppression, which is still very actively used for a handful of things, it's something that has been discussed a lot :P
err wrong person
colloquially called "stfu operator" to make certain functions stfu
 
lol
 
@Tiffany It almost looks like declare strict vs suppress error choice. It will eventually be thrown from language (I hope) and shouldn't be taken as strong stand.
 
this isn't something I have a lot of knowledge on, I'm speaking from what I've skimmed in previous conversations, but it would require work in figuring out how a few functions should be rewritten so that the amount of errors they throw is .... less annoying for PHP developers
 
I am talking about part "it would require work". :)
 
@Tpojka The only practical way IMHO to transform most remain usages of E_WARNING and co (which are in I/O functions) is to extend the capability of @ so that it can also shut up Exceptions and continue to return the correct failure value (false or null) so that we can then go about changing the warnings into I/O exceptions and then possibly start to force people to use explicit try/catch in PHP 9
The other less practical solution is to build a new I/O API
And nudge people to use that, but then legacy code will be a massive PITA
Also, it's not great for sure, but I don't really see @ as that much of an issue
@cmb seems you broke the Doc Build somehow :p
 
Is it bad practice to have two classes that depend on each other? Such as...
class ApiClient
{
    public function __construct(?ApiCredentials $apiCredentials)
    {
        $this->apiCredentials = $apiCredentials ?? new ApiCredentials($this);
    }
}

class ApiCredentials
{
    public function __construct(?ApiClient $apiClient)
    {
        $this->apiClient = $apiClient ?? new ApiClient($this);
    }

    protected function refreshAccessToken(...)
    {
        $this->apiClient->get(...);
    }
}
It feels dirty but I'm not sure
 
@Girgias Didn't read discussion before, just meant that people used to use @ in those projects/concepts widely (phpdocblock/doctrine) rather than error supression. But seeing that also some are emotionally tied to such a function (i.e. error suppressing) which is for respect. However, PHP ~9 should enforce strict declaration or anything that is taken as concept of industry standard. I don't have particular issue with @ or #[]
 
4:13 PM
@Tpojka If by strict declaration you mean strict types, I beg to differ for making this mandatory. But honestly it's annoying to no end the whining there has been about not using @ for attributes/annotations
 
@scorgn You most likely do not need circular dependencies in there
 
@scorgn it's very painful.....though sometimes is hard to avoid. I would move apiClient to be a param for refresh token here.
 
@Girgias Mine stops now. :D
 
APICreds should probably be either a value object or a request object
 
@Danack That would make more sense, I was thinking of doing a third class altogether
@PeeHaa What do you mean exactly?
 
4:16 PM
or move refreshAccessToken to somewhere else....and as peehaa said, replace any existing credential object instead of self-updating.
maybe.
 
@cmb Oh good. I did break it. Yay me. :-|
 
Ah so the ApiClient would do the work for replacing the access token? Or I could have AccessTokenManager class or something
 
@scorgn If the API client needs access to the creds and the creds needs access to the client it can just be the same class
The name ApiCredentials (without context) reads more like something that either holds creds or represent a request
 
@PeeHaa It originally was but I felt weird about it being the same class since it was responsible for updating and storing access tokens as well as making requests
 
What kind of client does apiclient represent?
 
4:20 PM
I might in that case just rename the class itself to ApiCredentialsManager
Just an http client
 
Have a different class OauthClient which uses the http client instead
Assuming it's oauth with the refresh token
keep the http client just that, an http client and have other specialized classes / clients for specific use cases
If it is "Just an http client" it probably should not have a dependency on something called ApiCreds
 
cmb
@Girgias did I? Any reference?
 
Might have been @Crell actually
 
@cmb Oh. And now the mailing list is getting spammed about a broken build. At least it started well after my commit yesterday?
 
I'm looking into it
 
4:23 PM
Emails from the doc server
 
Crell broke docs \o/
 
Rite of passage!
@Girgias Let me know what I screwed up. :-/ Travis said everything was green, but...
 
@Crell Normally it build every 6 hours (or is it 4?) so if it built in the mean time wouldn't be yours
 
I still giggle at the "Love, The docs.php.net server"
 
It's been around 18 hours since my commit.
 
4:24 PM
@PeeHaa That makes sense, so then both the OauthClient and the ApiCredentials could use the HttpClient
 
I think the oauthclient itself should be able to handle refreshing tokens
 
cmb
Great, I didn't get this emails (although I did get other mails about commits).
 
*probably
 
@Crell Should be fine then, but cmb pushed various changes which might have conflicted in some way
 
@PeeHaa Did you try compiling ext-fiber on Windows?
 
4:26 PM
Not yet nope
 
That makes sense too then. In that case I don't really need a non-authenticated http client
 
@cmb 12 emails to phpdoc list
 
Started about 25 minutes ago.
 
cmb
yes, seen them on news-web.php.net/php.doc
 
Gotcha
 
4:28 PM
Huh
I can build localy
Seems like the snapshot build is failing to fetch some files
Because it builds on doc-en
 
cmb
I have no idea what's wrong. Even if I delete doc-base/entities/file-entities.ent, it gets re-created, and build works here.
'
 
@scorgn It's pretty hard to tell you what to do and what not to do without looking at what the code does and how it is being used :) My comments above are mostly just guesses how I think you are using it
 
Yeah, maybe a network issue happened, if it pops up again on the next build then we maybe need to look into it
 
cmb
Are the docs built from Git? (log mentions /local/src/phpdoc-git/)
 
They shouldn't? I don't really know how the snapshots work but I would have imagined they get pulled from SVN
 
cmb
4:33 PM
The emails are sent like every minute; never seen that.
 
@PeeHaa I think the config.m4 file needs to be changed. Drop in this one instead and let me know if that works.
 
Yeah that's also strang
 
cmb
Well, maybe related: Git is no longer updated from SVN since several hours.
 
@PeeHaa Understandable but it does make sense in my context. It also helps for future reference on how to structure classes which god knows I need help with lol
 
@cmb Huh? But doc-en is up to date isn't it?
 
cmb
4:35 PM
@Trowski oh, totally forgot about that. I managed to build locally on Windows yesterday, but needed several changes. Hadn't time to look closer into this.
 
@cmb If you could PR those changes I'd greatly appreciate it.
 
:O <3
 
cmb
@Girgias indeed! Seems to have been resolved.
 
wave hands and shouts at systems@php.net
 
systems@php.net: /dev/null
 
4:37 PM
@cmb @Crell @IluTov review for match before merging into trunk? github.com/php/doc-en/pull/206
 
cmb
@Trowski well, not ready for PR, but see gist.github.com/cmb69/d88a91004713fc7a454d9c699edd38dd
 
@cmb lol, shows how much I know about building on Windows (which is zero btw)
 
Give me a few here. Doing something else.
 
cmb
np :) the two open questions: (a) is zend_ce_continuation even needed? (b) what is the equivalent of php_config.h on Windows?
 
I'm in no hurry :) well maybe it's blocking @cmb for the migration guide?
 
4:49 PM
@cmb (a) No, zend_ce_continuation in fiber.h was missed. Pushed it's removal. (b) No clue, not sure why that was there, it compiles without it, so also pushed it's removal.
 
@Girgias 2 small language tweaks. Probably both my fault. :-) Otherwise good to go.
 
Nice :)
 
@cmb git says your patch doesn't apply, so if you could please rebase and PR or send me a new patch :)
 
Oh it's Andreas working on the git docs that's why the list got spammed
 
@cmb Nevermind, fixed it. I can push to a branch if you want to verify it works.
@cmb @PeeHaa Hopefully fixed Windows branch github.com/amphp/ext-fiber/tree/windows
Ugh, it put back the zend_ce_continuation declaration. Just push over that.
 
cmb
5:19 PM
@Trowski windows branch works fine for me. With github.com/amphp/ext-fiber/pull/4, I only 017-nested-schedulers-2.phpt fails:
001+ 5612374
001- 5671234
 
The timing there might be too close.
@cmb What if you change the delay on line 20 and 22 of 017-nested-schedulers-2.phpt from 5 to 10. Does it pass then?
 
cmb
@Trowski yep :)
 
cmb
5:35 PM
Preliminary AppVeyor CI for ext-fiber: gist.github.com/cmb69/2e27d4da00a776ddde7aea8584bd9649
 
@cmb Why was it necessary to redefine ZEND_API to PHP_FIBER_API?
 
cmb
Windows needs declspec(import) when importing from a DLL; haven't investigated closer in this case, but got undefined symbols without that fix when linking.
 
@cmb I think when I've used it in the past it's always been within php-src, so this was defining it: heap.space/xref/php-src/Zend/zend_config.w32.h?r=4daa6805#62
 
@cmb You absolute legend
 
So the undefined symbols outside php-src makes sense now.
 
5:42 PM
What is the reason constructor promotion doesn't work with variadics?
 
> The reason is that in this case the type of the individual arguments (here: string), and the type of the variadic parameter into which they are collected (here: array of string) differ. While we could implicitly give the $strings property an array type for variadic parameters, this makes the transform less transparent.
:( But but but that's exactly what I waaaant :|
And exactly what I asked for
 
If we have typed arrays maybe, but otherwise I agree with the sentiment there.
 
bleh :)
imo vismodifier ...$things is already pretty explicit
 
public Promise ...$promises resulting in public array $promises is not necessarily obvious, particularly when I can later do `$this->promises[] = 'WTF!' later without issue.
 
5:50 PM
Not saying I would say no to typed array or generics for that matter
@Trowski I don't quite understand the last part of the reasoning
I mean that's the case for any promoted property
 
@cmb Guessing that was supposed to be "$dir\LICENSE" in package.ps1?
@PeeHaa The behavior is different. The constructor initially ensures all members of the array are Promises, but the class property doesn't.
 
@Trowski But that's as without promotion
ish
__construct(Promise ...$promises) { $this->promises = $promises; }
I can do whatever I want with the promises property
I assume you are right btw, I just do not see it
I think what I am trying to say is: there is no guarantee regardless of anything when working with arrays
 
cmb
@Trowski nope, should be C:\projects\ext-fiber\LICENSE ($dir refers to the build directory)
@Trowski ah, right, in this case it was about the export, since ZEND_EXPORTS is not defined
 
6:07 PM
@PeeHaa In that example $promises had to be declared as an array, it's more explicit. I think it's more about keeping expectations in check than anything else.
By excluding it, if generics are added and array<Promise> is possible, it can be added. If it promoted to an array<mixed> now that would be a problem later.
 
cmb
\o/
@PeeHaa may want to download the build artifacts: ci.appveyor.com/project/trowski/ext-fiber/history
 
I need to go soon, but if people want to add stuff to the PHP 8 doc tracker I just made ... github.com/php/php-tasks/issues/26
5
 
6:35 PM
Thinking out loud a bit: I could make Fiber::suspend() a keyword. Since there are two arguments, it would be a bit different than something like yield, perhaps suspend ($fiber, $scheduler) { /* Use Fiber object in $fiber */ }
The idea there is the code between the brackets is executed before suspending, setting the variable provided to the Fiber object, and then entering the instance of FiberScheduler given.
Code like this would instead look like suspend ($fiber, Loop::get()) { $this->waiting[$position] = $fiber; }. Does that make sense or is that just weird?
 
many zlib fails with different zlib implementation ・ Zlib related ・ #80400
 
@cmb I want to have your babies
4
 
 
1 hour later…
7:53 PM
ping @Danack
You wanna do a round of league?
Attempt 100 to get us together :P
@Trowski Honestly the fact that I potentially have to deal with the loop is a bit annoying regardless
And yes I see why and yes I see the future being brighter
Speaking of a brighter future. We still in contact with @WyriHaximus?
 
@PeeHaa As an Amp user, you’d never touch the loop.
The low level code of course has to deal with it.
 
All the fiber amp examples I have seen had to touch it
"all"
 
Passing the loop there avoids you having to deal with the loop at the top level, ie, Loop::run()
 
something something magic fix it something :P
But yes I can see why
 
8:07 PM
github.com/PeeHaa/Apperapi random code repo trying out random shit
 
@PeeHaa github.com/amphp/amp/blob/v3/examples/fibers/… ignore the repeat timer as that’s just there to show the loop is not blocked.
 
Next up is actually implementing amphp into all of that
Fibers is going to help my previous project forward regardless
 
Seemed like you were unimpressed before :-P
 
8:20 PM
morning o/
@Trowski I think we should use a named function for the example instead of $callback, something like asyncCompute
 
@Trowski Why?
 
@kelunik I was thinking that myself.
@PeeHaa Since fibers need to deal with a loop yet.
 
Again: I agree with the RFC
 
@PeeHaa Yeah, ok, I wasn’t clear on that before :)
 
8:36 PM
Nein
Fibers are coolstuff
And I know it's the base of cooler stuff
Potentially
 
Potentially. Honestly even if we only got the Fiber API, that’s all we need for fantastic async.
 
I really want the sugar though
I'm an addict
2
But yeah "proper" async is pretty much already a thing
Buuuut nicer interface++
 
@PeeHaa Amp v3 gives you the same high, albeit with a couple more parentheses.
There probably isn’t a point to a keyword for Fiber::suspend, but a method doing something “magical” also feels weird.
 
9:02 PM
@Trowski incorrect. We also need competent developers, and that is a much bigger problem.
 
@DaveRandom Considering I see people screw up async in other languages, I’m not sure there’s a solution to that, lol
 
I've seen people screw up Hello World, async might as well be a moonshot
today, I realised that I can stop mixing up my mouse/keyboard sets if I number them. I am 36 years old, and have had this particular problem for probably 15 years.
2
 
Get gaming peripherals. Put that RGB to work to show which is which \o/
 
9:26 PM
I have them in the room where I sleep, trying reduce lights wherever possible :-P
anyone else got grammarly installed? it seems to screw with the scrolling in SO chat, in anyone has any work around
 
I remember those days. Buy a new computer, spend the next few hours putting electrical tape over the LEDs to avoid my bedroom lighting up like a warzone whenever the disk was read
 
9:46 PM
@MarkR black gaffer tape is where it's at
:-P
 
00:00 - 22:0022:00 - 00:00

« first day (3690 days earlier)      last day (1243 days later) »