Comparing turing based programming languages
The notion  you are looking for is probably Turing completeness.  All languages that are Turing complete are essentially equivalent in what problems they can solve (at least in principle).   Most general-purpose programming languages are Turing complete.