@Girgias@phpc.social avatar

Girgias

@Girgias@phpc.social

I'm a PHP core developer and documentation writer, funded by https://phpc.social/@thephpf
Lead maintainer, and master of typos, for the French translation of the PHP documentation.
BSc in pure mathematics
Photograph/Otaku in my spare time

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Crell, to python
@Crell@phpc.social avatar

Teaching folks the joys of clear and explicit object type definitions. An interesting experience...

Girgias,
@Girgias@phpc.social avatar

@ramsey @Crell The only one I know is FB's one, Pysa, in which they took the lesson learned from Zoncolan (like taint analysis, whose white paper @psalm used).

But I'm guessing there are some competing one.

https://engineering.fb.com/2020/08/07/security/pysa/

sarah, to random
@sarah@phpc.social avatar

My journey of transition and self-discovery https://sarah-savage.com/my-journey-of-transition-and-self-discovery/

This is my "coming out" story.

Girgias,
@Girgias@phpc.social avatar

@sarah > I struggled for many months against the notion that I might be *different [...] *And I oscillated between relief at knowing myself and deep depression at the potential consequences of coming out.

Yeah, very relatable.
Acceptance is step 1.
And there is no how to guide on coming out, nor the perfect time to do so, always something that could be better, not the correct mood, etc.

It is just a leap of faith into the unknown.

But happy to see you on the other side of it. :)

SenseException, to mastodon German
@SenseException@phpc.social avatar

Are there clients out there that do interpret and format ? 🤔

Girgias,
@Girgias@phpc.social avatar

@SenseException I use @elk on my desktop, which does interpret MD.

soatok, to random
@soatok@furry.engineer avatar

Here's a fun idea:

A rust rewrite of the PHP interpreter

Girgias,
@Girgias@phpc.social avatar

@soatok I mean someone is already doing that kinda: https://github.com/Davidflogar/phpl

Girgias, to random
@Girgias@phpc.social avatar

> FRENCH new entrant Kevin Speed has confirmed details of the new train fleet that it plans to order to operate Ilisto commuter services on three high-speed lines in France from 2028.

> Kevin Speed

> Kevin Speed

> Kevin Speed

Girgias,
@Girgias@phpc.social avatar
Girgias, to random
@Girgias@phpc.social avatar

ngl I am slowly losing my mind trying to get stuff done with the NHS :|

ian, to random
@ian@phpc.social avatar

Is there anyone in Kobe/Osaka/Tokyo who can hook me up with a Rakuten Mobile physical or eSIM? Probably impossible since I don't have a Japanese ID card, but would be cool to test all four mobile networks here.

@nauleyco, know anyone?

Girgias,
@Girgias@phpc.social avatar
grmpyprogrammer, (edited ) to random
@grmpyprogrammer@phpc.social avatar

And while I am on the topic, here some challenges I’d like to see other devs take up for PHP:

  • langchain support
  • our own version of numpy
  • abstraction layer around FFI, similar to how FrankenPHP/Swoole provides an implementation/framework for Fiber usage
  • Jupyter notebooks with first-class PHP support

I know there are folks out there looking to sink their teeth into some -adjacent projects

Girgias,
@Girgias@phpc.social avatar

@grmpyprogrammer @anthony The "problem" is that numpy and libraries based on it (like pandas) can't truly work in PHP, as multiplication is assumed to be commutative.

A thing that matrices are famously not.

I really do not have the will power to fight Dmitry on this topic at this point in time (c.f. https://github.com/php/php-src/pull/9218) so if someone wants to drum-up support and possibly write the required RFC, then please do it.

Girgias,
@Girgias@phpc.social avatar

@grmpyprogrammer @anthony The C/C++ is really not hard, it is just modifying one line of code in one specialization: https://github.com/php/php-src/pull/9218/files#diff-773bdb31563a0f907c75068675f6056b25f003e61f46928a31d9837ae107460dL165-R165

One could make it more complete by creating a new specialized multiplication handle for int/float, similar to what addition does. (As + in PHP is not always commutative (because array "addition")).

robotalien, to php

What IS this??? A colon? In my ???

Girgias,
@Girgias@phpc.social avatar
Girgias, to random
@Girgias@phpc.social avatar

I just realised that my talk is up online!
https://www.youtube.com/watch?v=wKfhfvQJLe0

Some more feedback on it would be appreciated, even if I already got some on certain things to improve. :)

auroraeosrose, to random
@auroraeosrose@phpc.social avatar

if every user did just one documentation fix a year - what @ramsey calls "light open source contributions"

We would be light-years ahead

Girgias,
@Girgias@phpc.social avatar

@auroraeosrose @ramsey Yes, it is easier for me as a maintainer to just merge a typo fix or a small improvement, than to actually go fix the typo myself is someone opens an issue about it.

And this would fix a bunch of issues :D

Girgias, to random
@Girgias@phpc.social avatar

ngl being in possession of a French ID document (my driving licence) while not being French nor living in France any more and wanting to update my details leads to me being very confused.

Might be simpler to exchange my driving licence for a GB one (although this is not required as the UK still accepts EU driving licences, but not vice versa...) but that seems to require proof of ID via my passport, that I can't "just" change because I have British and German dual-citizenship.

Girgias,
@Girgias@phpc.social avatar

Can't say I'm enjoying this administrative hellscape.

cabbey, to php
@cabbey@phpc.social avatar

Does anyone have a better way to write the conditional calls to foo at lines 5-9 of this code? https://3v4l.org/fqCvv The goal is to have the default argument for bar trigger the default argument for foo, but they're different defaults (since one is nullable and the other isn't), and bar should not need to know what foo's default is. (obviously in my real code it's a much more complex signature, and separate classes.)

Girgias,
@Girgias@phpc.social avatar

@cabbey Use func_num_args()?

Girgias,
@Girgias@phpc.social avatar

@cabbey well you can use that function to determine if the call-site passed an argument or not, if not the default value is used in the function body.

It seems like you want different behaviour depending on what arity the function is called which the above function allows you to do e.g. https://3v4l.org/bFjSJ

Girgias,
@Girgias@phpc.social avatar

@cabbey sure for nullable types the null default works just fine.

I have opinions about multiple named parameters, but that's because so many terrible Python APIs are designed like that when they should effectively be multiple functions.

xakan, to php French
@xakan@social.zdx.fr avatar

Moi ce que j'aime avec , c'est que c'est so 2024.

Genre strtoupper(), la fonction censée convertir les caractères en majuscules, ne gère pas du tout les accents.

Ainsi, strtoupper('très') retournera 'TRèS'.

Classe 😅

Girgias,
@Girgias@phpc.social avatar

@xakan Ouais une "chaîne de caractères" en PHP c'est vraiment juste un byte-array. Et tout ce qui commence par str* fonctionne grosso modo que avec les caractères ASCII.

IIRC si tu utilisais setlocale avec la locale FR ça pouvait convertir certain accent.

Mais setlocale c'est vraiment mal foutu donc bon.

Girgias,
@Girgias@phpc.social avatar

@xakan 👍

giantweevil, to 3DPrinting
@giantweevil@beige.party avatar

I never actually made an post on my old account, but now seems like a good time. A beiger time, if you will.

I'm giantweevil, I use he/him pronouns, I like and occasionally I'll do something other people call but I call " hurting computers with "

Sometimes I make memes. Sometimes I make images that are just a long winded pun.

Lately my time has been mostly consumed by

Girgias,
@Girgias@phpc.social avatar

@giantweevil I approve of hurting computers with PHP :p

Girgias, to random
@Girgias@phpc.social avatar

Time to fly back to England after my holiday in Japan.

Not looking forward to the 400 emails that I need to go through :')

xgranade, to random
@xgranade@wandering.shop avatar
Girgias,
@Girgias@phpc.social avatar

@rain @xgranade PHP's patch has technically been available since Tuesday when the fix was committed before tagging the release.

The "proper" release is going to be available today.
It just takes our release process 2 days to go from tagging to publishing.

Girgias,
@Girgias@phpc.social avatar

@rain @xgranade well I've also been on a crusade to fix some of the most egregious behaviour it has.

But thanks, it is pretty good at it's main task (and then some more!)

rooster, to random
@rooster@chaosfem.tw avatar

deleted_by_author

  • Loading...
  • Girgias,
    @Girgias@phpc.social avatar

    @rooster I only started electro before Xmas and oh boi it's such a slow process, 30min at a time every 4 Weeks-ish is... Slow.

    I do see the difference of where it has been done, but did not enjoy learning that part of the reason some of my darker hairs didn't get picked up by the laser are because they are red and/or have a blond tip :|

    And that's ignoring how painful it can get ._.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • kavyap
  • DreamBathrooms
  • osvaldo12
  • magazineikmin
  • InstantRegret
  • everett
  • Youngstown
  • ngwrru68w68
  • slotface
  • rosin
  • GTA5RPClips
  • tester
  • PowerRangers
  • anitta
  • thenastyranch
  • mdbf
  • ethstaker
  • cisconetworking
  • Durango
  • vwfavf
  • normalnudes
  • tacticalgear
  • khanakhh
  • modclub
  • cubers
  • Leos
  • megavids
  • All magazines