|
|
|
|
|
by paulriddle
2857 days ago
|
|
Obviously Javascript, Ruby, Golang, Python. Javascript has become a nice language. You can't avoid it in webdev. Rich ecosystem. Languages like Typescript, Elm, Purescript, etc. are close. Ruby is very practical, has everything, very consistent and clean. PHP is not consistent and not clean. Golang is fast and the simplest language that is actually used in the industry. It is dramatically simpler than C. It is the fastest. Python is like Ruby, but even more practical because it has ML and math, whereas Ruby does not. PHP has no place in this world. |
|
Python is surely nice looking, but as it allows redefinition of everything at runtime, it is impossible to optimize at compile time. I think PHP, with the recent type strictness functionality, is better positioned for making way to new developments like meaningfull code analysis, (compile time) optimizations and performant JIT compilers. Python is too dynamic for that, unfortunately. The same holds for JavaScript.
I don't know Ruby well, but I know it is also slow.
The biggest problem with PHP is that it standards library has inconsistent naming. The syntax is very much Java-like. If PHP would shove the standard library into `LegacyPrelude` (and have it automatically loaded like Haskell) it could improve on that as well. This problem is not as fundamental as the other problems in my opinion, although still requiring a major effort to slowly turn to a new `Prelude`.