this post was submitted on 10 Jun 2023
87 points (100.0% liked)
Fediverse
18189 readers
59 users here now
A community dedicated to fediverse news and discussion.
Fediverse is a portmanteau of "federation" and "universe".
Getting started on Fediverse;
- What is the fediverse?
- Fediverse Platforms
- How to run your own community
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
kbin looks good but I can't get over the fact that its backend is written in PHP. In the long run, lemmy's Rust backend will probably be way more resource efficient and thus better for hosters. We'll have to see though, since tech stacks aren't the most important thing. But for me a Rust backend is a huge plus.
I'm sure it's fine code, I just can't imagine it'll ever be as efficient as Rust.
Lemmy is not bottlenecked by anything related to the Rust code and neither is Kbin most likely. Modern php is efficient enough for it to not really matter (contrary to Python or Ruby etc.).
Modern PHP is better than PHP5 but it still uses that brain dead execution model where every request starts the entire framework from scratch.
actually that model is now optional thanks to some PHP extensions which can bypass the bootstrap and keep everything running. But it's not something that is always needed, since the share nothing architecture works fine for most use cases
Are you talking about PHP-PM or something else?
I was thinking more about php road runner, which now that I see it its not a php extension but a standalone application server https://roadrunner.dev/
If it can run on PHP8 you get JIT compilation, which should go a long way to closing any gaps (if they exist, which I suspect not).