I think you'll find that they are. Have you seen the Nokia 1 Android Go edition? It's a phone running an Android OS specifically targeted at low memory devices, along with low memory versions of it's apps suite (Google Go, YouTube Go, etc.). When it comes to programming languages, memory usage is usually more dictated by features (e.g. graphics, video) than by the programming language