this post was submitted on 10 Jun 2023
18 points (100.0% liked)
Fediverse
18998 readers
1 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
It's still PHP but it's not the unholy spaghetti mess that PHP 5 once was. PHP gets a bad rep for all the shitty websites from the early 2000s that people ended up inheriting from other teams, but modern PHP with typing, classes, and ORMs is quite pleasant to work with.
Take a look through the kbin source, I find it quite readable to the point it may just as well be C# or Java with some dollar signs sprinkled in.
I'm sure it's fine code, I just can't imagine it'll ever be as efficient as Rust.
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).
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.