« first day (4449 days earlier)      last day (723 days later) » 

04:44
@Krzysiek thanks I'll give it a shot
 
2 hours later…
07:13
trying to visualize what Psalm is expecting... which is array<array-key, array-key> ... would that look like $array["key" => "key"];?
07:39
@Tiffany if you want to express explicitly a shape with keys and different types they are designed for then...
array{key:string,id:positive-int,foo:Foo}
I only don't know yet how to make keys optional but am looking for this now so maybe I'll update when I find
yeah, ended up doing /** @var array<int, string> $headers */
it seemed happy with that
Optional keys can be denoted by a trailing `?`, e.g.:


/** @return array{optional?: string, bar: int} */
cheers
also, you should remove the T of object, make it just T
i think class-string already adds it
I find it hard to do properly, never though it to be so problematic, but yeah this is a conditional expression which governs whether the return type is null or not
08:53
class Foo {
    private const FOO = 'foo';
    public const BAR = [self::FOO];
}
var_dump(Foo::BAR);
This is stupid, right?
cause the private has effect only when resolving Foo::FOO explicitly from outer scope
stupid, yes, but correct.

Foo::FOO is only accessed from within Foo.
 
4 hours later…
13:25
@Derick Will Text::trim also remove \0? I don't think it is covered by White_Space
14:17
\0 how y'all been?
<-- Still wallowing, pitifully, in MS Access and SSRS land
14:54
@Krzysiek Good catch. It should also remove \0, of course.
@Krzysiek Can you answer on the ML? Otherwise I'll forget.
15:07
@Derick I would have to setup public email, but I'll remind you later in case ;)
15:19
Also in mb_trim issue, there are other characters discussed, would be nice to have somewhat compatible set of trimmed characters :)
15:36
Morgerns o/
16:03
> just kind of sucks.
English is hard, part 38; is there an equivalent 'strength' phrase that doesn't reference felatio?
You're looking for the antonym of "just kind of sucks"?
No, the same meaning, and same strength. Just more acceptable in formal writing.
It particular, I can't think of a polite phrase that has the same sense of "personal disappointment" rather than "I am making an objective judgement of something."
ChatGPT:
Some synonyms for "it just kind of sucks" that don't use colorful language might include "it's not very good," "it's subpar," or "it's below average." Other words that might be used to describe something that is not very good include "mediocre," "unimpressive," or "lackluster."
/me shrugs
lackluster sounds good.
You may bow to the AI overlord
:D
16:17
I will, when it can count 13 items in a list reliably, and also not lie to my face about how many items are in a list.
I confronted it about giving me a list of 12 things, whilst also saying there were 13 things....and it crashed and became unresponsive.
fyi, the word it left out was 'stank'.
ChatAI wrote:
> On the other hand, using colloquial or informal phrases like "it sucks" may come across as disrespectful or unprofessional
It then completely failed to say why "being professional" is better...
16:33
it's not an AI... it's a chat bot
@Derick I thought it could do other things like solve math and write songs or some such?
Sorry....ChatGPT. Which is hosted on a domain that includes 'OpenAI'.
@Jimbus It's just reproducing what it has learned, using clever math. It doesn't know anything.
It's not learning from experience, so no AI
I've only see a video by someone that had no idea what was going on beyond the surface and haven't played with it at all
16:58
@RemiCollet How do I get remi-repo 8 on centos? Your wizard doesn't have centos (8.x)
@Jimbus well, you can teach it stuff, and it would learn from you.
but that knowledge is kept in the session
which is good, because you don't want people teaching it whatever.
otherwise we endup with Tay 2.0
But it can simulate a Linux environment, apparently
yes, i tried that lol
it runs PHP code!
17:14
So, it is evil.
it is pretty nuts that you can do that, it can handle pretty complex commands, and even mimic HTTP requests with curl ..etc
But it doesn't run any of them
Yea, it just mimics stuff
it doesn't have access to the internet
Correct
Simulation :)
Not actual execution or virtualization
actually, it can connect to itself in it's own imagination and you can tell it to ask stuff to the AI that it is imagining in the imaginary operating system.
gaslighting AI into thinking it's an OS!
17:30
I've seen one video where a doctor used it to write a letter for insurance appeal... but the cited sources it used would have to either be fact-checked or completely replaced by actual sources since it just makes sources up... but actually writing the letter is pretty good
actually used it to write 5 emails in the past two weeks.
it's nice that i can spit out garbage in a non-professional way and it would write me a good email.
........... lol, now I'm wondering if it can write cover letters
yep, just copy paste resume, and job description, and ask it do it, it will! it's pretty good at it.
So how far away are we from Talkie Toaster?
@Tiffany if you do, also get it to read the generated letter, and get it to criticise itself.
17:32
tiktok.com/@tiktokrheumdok/video/7176660771806383403 video of doctor explaining how to use it for insurance appeals
it can also write contracts!
@SaifEddinGmati that.... scares me
the good thing is that you can start a new session, give it the contract it wrote previously, and ask it to find problems in it. :P
Fighting systems of apathetic bureaucracy, I consider good
 
1 hour later…
18:56
Today is 10 years since world's cataclysm. Congratulations to survivors!
19:30
Which one?
mayan calendar I think
19:46
Honestly, it feels like the world goes through a cataclysm every 2 or 3 years at this point
20:27
@Tiffany That one, correct.
20:43
$array = ['a' => 1, 'a' => 2];
PHP should have thrown exception if the array has dup key imo
rather than silently merge the keys
I had full 1 hour of debugging because of this
21:05
static analysis would catch it, I think
and having static analysis as a pre-commit git hook is helpful
...and sometimes leads to toy-throwing-from-pram
21:23
@Mwthreex maybe use an IDE that warns about that type of thing?
@Tpojka Looks like there's another snowpocalypse right around the corner... Friday night will not be a good night for little flag poles in the Midwestern US
 
2 hours later…
23:15
@zeriyoshi fyi, there is what is probably a complicated typo in the RFC "The following functions are deprecated and will be removed in the next version of PHP 8.3."

They don't appear to be currently deprecated, and so couldn't be acceptably removed until at least 8.4. However............
Just because the new randomizer is arguably better, that probably isn't an obvious reason to deprecate the old functions by itself. In particular, the phrase "need to be migrated" is likely to annoy people as they might not agree that code that is working acceptable well for them needs to be updated.
If someone has a program that has been useful for ten years using mt_srand, where would the value be for them in updating it to use a non-globally scoped randomizer?

« first day (4449 days earlier)      last day (723 days later) »