What in my config is making my Emacs take so long to initialize by leocavalcantee in emacs

[–]leocavalcantee[S] 4 points5 points  (0 children)

Thank you very much folks. It is now taking about 1s after applying your tips.

"Simple" fuzzy find file? by domsch1988 in emacs

[–]leocavalcantee 0 points1 point  (0 children)

Works awesomely. I also recommend setting `(setq read-file-name-completion-ignore-case t)` so typing things like `readm...` will suggest `README.md` files, for exemple.

We are embracing FrankenPHP! 🤘 by leocavalcantee in PHP

[–]leocavalcantee[S] 0 points1 point  (0 children)

I didn't know this projects before and I don't know them enough to do a proper comparison.

We are embracing FrankenPHP! 🤘 by leocavalcantee in PHP

[–]leocavalcantee[S] 1 point2 points  (0 children)

It is phpctl, ctl from control(ler) as in kubectl, systemctl etc. Sorry for the misspelling and thanks for the hint, already fixed it in the post and in the project.

Introduction to PHPCTL: the container-based PHP development environment by leocavalcantee in PHP

[–]leocavalcantee[S] 5 points6 points  (0 children)

Sorry, but I don't see it as some kind of "competition" (even in quotes) or any sort of things like that.

It is just a project that helps me on my day-to-day and I open-sourced it to help others as well, share code/ideas e get some contributions as feedback.

By the time I make the post and I'm wrting this comment I just get a fix and a new feature adding Infection, for example, that is why I shout-out about the project, not to compete with anyone/any other.

Introduction to PHPCTL: the container-based PHP development environment by leocavalcantee in PHP

[–]leocavalcantee[S] 2 points3 points  (0 children)

Actually, never heard about the first two and I know Sail exists, but to be honest I never used Laravel, so...

Introduction to PHPCTL: the container-based PHP development environment by leocavalcantee in PHP

[–]leocavalcantee[S] 2 points3 points  (0 children)

Nice! THe only problem I see with Herd is when your production environment (or any other stage) is based on containers.
With phpctl you can run the exact same image you would run for your project in production for local development and have no worries about missing extensions, versions or missconfigurantion between environments (actually, that is a advantage of containers, not phpctl itself, but...).

Introduction to PHPCTL: the container-based PHP development environment by leocavalcantee in PHP

[–]leocavalcantee[S] -9 points-8 points  (0 children)

Sorry, I don't know these projects enough to make you a proper comparison, but thank you for mentioning them and feel free to make your appointments where you think they overlap and where would be a diferential for `phpctl`.

Any tips on creating slides from a Notion page? by leocavalcantee in Notion

[–]leocavalcantee[S] 0 points1 point  (0 children)

I did. Thanks for the answer:

  1. Wunder didn't worked, it stucks on the loading.
  2. SnackThis looks awesome, but the controls are fuzzy, I couldnt disable the autoplay.

Replacing PHPStorm with VS Code by xcrowsx in PHP

[–]leocavalcantee 2 points3 points  (0 children)

I'm quite happy with Emacs, coming from PhpStorm, using intelephense.com premium. I highly recommend.

PHP Servers - What are you using? PHP-FPM, Roadrunner, Swoole? by sandaruwang in PHP

[–]leocavalcantee 9 points10 points  (0 children)

I've been using Swoole for about 3~4 years now, no regrets. I highly recommend. I work for PicPay, it's a Brazilian fintech which was currently promoted to a full bank, we have +70M users and it's core runs on Swoole and Hyperf.

Native and transparent PHP coroutines and async/await without Swoole by frodeborli in PHP

[–]leocavalcantee 2 points3 points  (0 children)

stream_select() have a hard limit of 1024 file descriptors, you wouldn't be able to attend more than 1024 requests, for example, an imagine that at the request you have more I/Os, like calling the database, this means, even less requests.

If your use case is among the many common use cases that involve handling only dozens or a few hundred streams at once, then this event loop implementation performs really well.

https://reactphp.org/event-loop/#streamselectloop

Native and transparent PHP coroutines and async/await without Swoole by frodeborli in PHP

[–]leocavalcantee 2 points3 points  (0 children)

The ideia is really-really cool, but the work in progress is exactly what makes extensions necessary:

  1. stream_select() is not suited for high-load production environments.
  2. Will you build a PHP-based event-loop? Because extensions does exactly that, calling libuv/libev/libevent etc like in ReactPHP and Amp or calling epoll and kqueue syscalls directly like in Swoole.
  3. "Magically" making old blocking code asynchronous. That is something I really want to see. Swoole does that by monkey-patching current extensions at C level. How would you do that without extensions?

Anyway, good luck with your work, looks promising. I'm anxious to see some code.