Go also makes it relatively easy to statically compile everything, one of the reasons why it's gaining popularity.
Apart from those two it's highly uncommon: You're supposed to ship sources and compile them on the target system.
To get a sort of forward compatibility you'd need to find compatible sources for all involved userland, or ship them with your sources. The latter is sometimes used in larger projects, to work around distributions having wildly incompatible versions of whatever library you need (Samba, Firefox, LibreOffice e.g.).
It's not all black though: this problem is usually offset by the fact that most Linux software is open source and can be recompiled against the new platform source.
You take some, you give some. The result is quite different but looks the same to the end user.
So the kind-of proper answer to that question is, "if you want to run a popular old application on a popular current distro, there is probably a repository you can pull packages from that will allow you to do it, otherwise it's somewhat of a crapshoot".