phel-snake-online

WIP online snake game

Codeberg.org

Running into a thorny issue trying to get Amp v3 and Psalm to play together nicely. Amp v3 support has landed in development, but not yet released (https://github.com/vimeo/psalm/issues/10003).

When I use the dev version of Psalm, `psalm-assert` annotations in the vendor directory are not scanned. i.e. webmozart/assert does not "work" with bleeding edge Psalm. Did some config change? Is there something I can do to get this to work? Legitimate bug?

#php #amphp

AMPHP 3.x support · Issue #10003 · vimeo/psalm

As stated by @weirdan in #7307 Once amp ships a stable release, we would welcome a PR to support 3.0. Version 3.0 is out since December 2022 so I open a request to address the issue. The migration ...

GitHub
AMPHPを実行できる環境を用意する - Qiita

概要PHPで非同期処理の実装を行いたかった。8.1で導入されたFibersが組み込まれており、使用感がよさそうだったAMPHPを使える環境を用意してみたのでまとめます。環境構築dockerでロ…

Qiita

Who ever states that #php is slow lives in the past.

PHP has great libraries for async and/or co-routines.

It's even way faster than NodeJS.

#openswoole #amphp ❤️

Pour l'instant c'est bien cracra mais si ça marche pas trop mal je ferai un petit repo public pour mettre tout ça à dispo  

Qui sait ? Ça peut peut-être intéresser des gens ce type de jouet. 👀

#php #amphp #async #fiber #vosk #stt

What do people like these days for #async in #php?

Not "put in the queue to do later" like send an email

But "do this while I do other things and I'll integrate the results when you're done" like make a few API calls

#amphp or something else?

@heiglandreas I think those projects (i.e., #ReactPHP and #AMPHP) are waiting for the community to discover them and build out these solutions. It’s still very early for them. #PHP

Half of my CI jobs fail due to "Trying to connect to keys.openpgp.org" when using #Phive to download tools.

I would use #Psalm as a Composer dependency, if I could, but it depends on an older version of #AMPHP than my project uses, so I'm installing it with Phive.

But this intermittent error is frustrating me. 🤬

#PHP

Starting to work on some personal projects again after taking a break to do whatever the opposite of burning out is.

Looking over a library I created for testing interactions with Amp's HTTP client. Have a project I'm gonna start working on that will actually utilize this in it's test suite. Time to see if this thing really holds up or not.

#php #amphp

https://github.com/cspray/http-client-test-interceptor

GitHub - cspray/http-client-test-interceptor: A testing framework to mock Requests sent with amphp/http-client

A testing framework to mock Requests sent with amphp/http-client - GitHub - cspray/http-client-test-interceptor: A testing framework to mock Requests sent with amphp/http-client

GitHub
It seems vimeo/psalm requires amphp/amp ^2.4.2, which means I can't start a new project using version 3 of #AMPHP if I also want to use #PsalmPHP. 🙄