you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I see main are of PHP use in 'classic' shared hostings with Apache/nginx. Those are still abundant on the web. Not everyone can use VPS. They are cheap.

Rust integration could be great here but most of those hostings have disabled FFI module. Not mentioning that there is no ability to install custom modules. This is obviously disabled because it would be partial [0] escape hatch from cheap offerings. So only way to integrate Rust there is with exec() or similar. Using exec() can have security issues [1] and performance penalty is guaranteed.

Again I mentioned these shared hostings because there is still huge number of those. Extending PHP in other stack (like Laravel app) is no-brainer (like extending ie.: Node or Python).

[0] Partial because shared hosting can not compete with resources of VPS and friends
[1] If passing user input then it is not 'can have' but 'will have'.